From 42f97b99660c6318d7e0ed7e140f8dde621d40ba Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 7 Aug 2026 21:31:18 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Commands/ModelRouterApiGroupCommand.g.cs | 1 + ...rCreateGenerateAudioCommandApiCommand.g.cs | 45 +- ...rCreateGenerateImageCommandApiCommand.g.cs | 45 +- ...rCreateGenerateVideoCommandApiCommand.g.cs | 45 +- ...tRoutersByIdRequestsCommandApiCommand.g.cs | 101 + .../Commands/OrganizationApiGroupCommand.g.cs | 3 + ...ppAuditLogsByEventIdCommandApiCommand.g.cs | 83 + ...ationWebappAuditLogsCommandApiCommand.g.cs | 146 + ...anizationWebappUsageCommandApiCommand.g.cs | 130 + ...ModelRouterClient.CreateGenerateAudio.g.cs | 4 + ...ModelRouterClient.CreateGenerateImage.g.cs | 4 + ...ModelRouterClient.CreateGenerateVideo.g.cs | 4 + ...elRouterClient.GetRoutersByIdRequests.g.cs | 52 + ...Client.GetOrganizationWebappAuditLogs.g.cs | 72 + ...tOrganizationWebappAuditLogsByEventId.g.cs | 44 + ...tionClient.GetOrganizationWebappUsage.g.cs | 64 + ...rtGeneratingClient.CreateTextToSpeech.g.cs | 12 +- ...rtGeneratingClient.CreateVideoToVideo.g.cs | 14 +- .../Runway.IUploadsClient.CreateUploads.g.cs | 14 +- ...onverters.CreateGenerateAudioResponse.g.cs | 72 + ...rateAudioResponseDiscriminatorDryRun.g.cs} | 14 +- ...oResponseDiscriminatorDryRunNullable.g.cs} | 14 +- ...dAudioDryRunRoutingResolvedInputType.g.cs} | 14 +- ...yRunRoutingResolvedInputTypeNullable.g.cs} | 14 +- ...AudioDryRunRoutingResolvedInputVoice.g.cs} | 14 +- ...RunRoutingResolvedInputVoiceNullable.g.cs} | 14 +- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 53 + ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 + ...ioTaskCreatedRoutingResolvedInputType.g.cs | 53 + ...eatedRoutingResolvedInputTypeNullable.g.cs | 60 + ...oTaskCreatedRoutingResolvedInputVoice.g.cs | 53 + ...atedRoutingResolvedInputVoiceNullable.g.cs | 60 + ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 53 + ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 + ...onverters.CreateGenerateImageResponse.g.cs | 72 + ...rateImageResponseDiscriminatorDryRun.g.cs} | 14 +- ...eResponseDiscriminatorDryRunNullable.g.cs} | 14 +- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 53 + ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 + ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 53 + ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 + ...onverters.CreateGenerateVideoResponse.g.cs | 72 + ...rateVideoResponseDiscriminatorDryRun.g.cs} | 14 +- ...oResponseDiscriminatorDryRunNullable.g.cs} | 14 +- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 53 + ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 + ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 53 + ...ngResolvedSettingsOptimizeForNullable.g.cs | 60 + ...nConverters.CreateImageToVideoRequest.g.cs | 35 +- ...eImageToVideoRequestGen45OutputFormat.g.cs | 53 + ...VideoRequestGen45OutputFormatNullable.g.cs | 60 + ...ImageToVideoRequestGen45ProresProfile.g.cs | 53 + ...ideoRequestGen45ProresProfileNullable.g.cs | 60 + ...reateImageToVideoRequestHailuo3Ratio.g.cs} | 14 +- ...geToVideoRequestHailuo3RatioNullable.g.cs} | 14 +- ...eImageToVideoRequestHailuo3Resolution.g.cs | 53 + ...VideoRequestHailuo3ResolutionNullable.g.cs | 60 + ...dance25PromptImagePromptImagePosition.g.cs | 53 + ...romptImagePromptImagePositionNullable.g.cs | 60 + ...ateImageToVideoRequestSeedance25Ratio.g.cs | 53 + ...ToVideoRequestSeedance25RatioNullable.g.cs | 60 + ...nConverters.CreateTextToSpeechRequest.g.cs | 17 +- ...RequestElevenV3ApplyTextNormalization.g.cs | 53 + ...levenV3ApplyTextNormalizationNullable.g.cs | 60 + ...RequestElevenV3VoiceDiscriminatorType.g.cs | 53 + ...levenV3VoiceDiscriminatorTypeNullable.g.cs | 60 + ...levenV3VoiceRunwayPresetVoicePresetId.g.cs | 53 + ...oiceRunwayPresetVoicePresetIdNullable.g.cs | 60 + ...SeedAudioVoiceSeedPresetVoicePresetId.g.cs | 53 + ...oVoiceSeedPresetVoicePresetIdNullable.g.cs | 60 + ...onConverters.CreateTextToVideoRequest.g.cs | 35 +- ...teTextToVideoRequestGen45OutputFormat.g.cs | 53 + ...VideoRequestGen45OutputFormatNullable.g.cs | 60 + ...eTextToVideoRequestGen45ProresProfile.g.cs | 53 + ...ideoRequestGen45ProresProfileNullable.g.cs | 60 + ...CreateTextToVideoRequestHailuo3Ratio.g.cs} | 14 +- ...xtToVideoRequestHailuo3RatioNullable.g.cs} | 14 +- ...teTextToVideoRequestHailuo3Resolution.g.cs | 53 + ...VideoRequestHailuo3ResolutionNullable.g.cs | 60 + ...eateTextToVideoRequestSeedance25Ratio.g.cs | 53 + ...ToVideoRequestSeedance25RatioNullable.g.cs | 60 + ...nConverters.CreateVideoToVideoRequest.g.cs | 32 +- ...CreateVideoToVideoRequestHailuo3Ratio.g.cs | 53 + ...deoToVideoRequestHailuo3RatioNullable.g.cs | 60 + ...eVideoToVideoRequestHailuo3Resolution.g.cs | 53 + ...VideoRequestHailuo3ResolutionNullable.g.cs | 60 + ...eateVideoToVideoRequestSeedance25Mode.g.cs | 53 + ...oToVideoRequestSeedance25ModeNullable.g.cs | 60 + ...ateVideoToVideoRequestSeedance25Ratio.g.cs | 53 + ...ToVideoRequestSeedance25RatioNullable.g.cs | 60 + ...deoToVideoRequestVariant1OutputFormat.g.cs | 53 + ...eoRequestVariant1OutputFormatNullable.g.cs | 60 + ...eoToVideoRequestVariant1ProresProfile.g.cs | 53 + ...oRequestVariant1ProresProfileNullable.g.cs | 60 + ...nizationWebappAuditLogsResponseAction.g.cs | 53 + ...WebappAuditLogsResponseActionNullable.g.cs | 60 + ...WebappAuditLogsResponseDataItemAction.g.cs | 53 + ...ditLogsResponseDataItemActionNullable.g.cs | 60 + ...zationWebappUsageResponseDataItemType.g.cs | 53 + ...bappUsageResponseDataItemTypeNullable.g.cs | 60 + ...RequestsResponseDataItemEmptiedByItem.g.cs | 53 + ...ResponseDataItemEmptiedByItemNullable.g.cs | 60 + ...DataItemPipelineItemDiscriminatorType.g.cs | 53 + ...PipelineItemDiscriminatorTypeNullable.g.cs | 60 + ...nseDataItemPipelineItemVariant1Filter.g.cs | 53 + ...temPipelineItemVariant1FilterNullable.g.cs | 60 + ...seDataItemPipelineItemVariant3Outcome.g.cs | 53 + ...emPipelineItemVariant3OutcomeNullable.g.cs | 60 + ...rsRequestsResponseDataItemReasonCode2.g.cs | 53 + ...tsResponseDataItemReasonCode2Nullable.g.cs | 60 + ...RoutersRequestsResponseDataItemStatus.g.cs | 53 + ...equestsResponseDataItemStatusNullable.g.cs | 60 + .../Runway.JsonConverters.PipelineItem.g.cs | 87 + .../Runway.JsonConverters.Voice10.g.cs | 28 +- .../Runway.JsonConverters.Voice11.g.cs | 28 +- .../Runway.JsonConverters.Voice12.g.cs | 28 +- .../Runway.JsonConverters.Voice13.g.cs | 28 +- .../Runway.JsonConverters.Voice14.g.cs | 28 +- .../Runway.JsonConverters.Voice15.g.cs | 28 +- .../Runway.JsonConverters.Voice16.g.cs | 28 +- .../Runway.JsonConverters.Voice17.g.cs | 72 + .../Runway.JsonConverters.Voice4.g.cs | 36 +- .../Runway.JsonConverters.Voice5.g.cs | 44 +- .../Runway.JsonConverters.Voice6.g.cs | 28 +- .../Runway.JsonConverters.Voice7.g.cs | 28 +- .../Runway.JsonConverters.Voice8.g.cs | 28 +- .../Runway.JsonConverters.Voice9.g.cs | 28 +- .../Runway.JsonSerializerContext.g.cs | 3263 +++++- .../Runway.JsonSerializerContextTypes.g.cs | 2696 +++-- ...ModelRouterClient.CreateGenerateAudio.g.cs | 42 + ...ModelRouterClient.CreateGenerateImage.g.cs | 42 + ...ModelRouterClient.CreateGenerateVideo.g.cs | 42 + ...elRouterClient.GetRoutersByIdRequests.g.cs | 468 + ...els.CreateAvatarsResponseAvatarFailed.g.cs | 6 +- ...CreateAvatarsResponseAvatarProcessing.g.cs | 6 +- ...dels.CreateAvatarsResponseAvatarReady.g.cs | 6 +- ...ls.CreateCharacterPerformanceResponse.g.cs | 14 +- ...s.CreateCharacterPerformanceResponse2.g.cs | 30 +- ...ateCharacterPerformanceResponse3.Json.g.cs | 141 + ...s.CreateCharacterPerformanceResponse3.g.cs | 45 + ...PerformanceResponseEstimatedCost.Json.g.cs | 141 + ...acterPerformanceResponseEstimatedCost.g.cs | 47 + ...haracterPerformanceResponseIssue.Json.g.cs | 141 + ...eateCharacterPerformanceResponseIssue.g.cs | 71 + ...aracterPerformanceResponseIssue2.Json.g.cs | 141 + ...ateCharacterPerformanceResponseIssue2.g.cs | 19 + ...way.Models.CreateGenerateAudioRequest.g.cs | 13 +- ...odels.CreateGenerateAudioRequestInput.g.cs | 6 +- ...dels.CreateGenerateAudioResponse.Json.g.cs | 6 +- ...ay.Models.CreateGenerateAudioResponse.g.cs | 300 +- ...ls.CreateGenerateAudioResponse4.Json.g.cs} | 26 +- ...y.Models.CreateGenerateAudioResponse4.g.cs | 45 + ...erateAudioResponseDiscriminator.Json.g.cs} | 26 +- ...ateGenerateAudioResponseDiscriminator.g.cs | 45 + ...erateAudioResponseDiscriminatorDryRun.g.cs | 51 + ...eAudioResponseRoutedAudioDryRun.Json.g.cs} | 26 +- ...enerateAudioResponseRoutedAudioDryRun.g.cs | 69 + ...ResponseRoutedAudioDryRunRouting.Json.g.cs | 141 + ...udioResponseRoutedAudioDryRunRouting.g.cs} | 33 +- ...dioDryRunRoutingCapacityFallback.Json.g.cs | 141 + ...tedAudioDryRunRoutingCapacityFallback.g.cs | 59 + ...dAudioDryRunRoutingEstimatedCost.Json.g.cs | 141 + ...outedAudioDryRunRoutingEstimatedCost.g.cs} | 10 +- ...dAudioDryRunRoutingResolvedInput.Json.g.cs | 141 + ...outedAudioDryRunRoutingResolvedInput.g.cs} | 22 +- ...dAudioDryRunRoutingResolvedInputType.g.cs} | 16 +- ...AudioDryRunRoutingResolvedInputVoice.g.cs} | 24 +- ...dioDryRunRoutingResolvedSettings.Json.g.cs | 141 + ...edAudioDryRunRoutingResolvedSettings.g.cs} | 16 +- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 57 + ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 + ...nRoutingResolvedSettingsPriceCeiling.g.cs} | 2 +- ...oResponseRoutedAudioTaskCreated.Json.g.cs} | 26 +- ...teAudioResponseRoutedAudioTaskCreated.g.cs | 69 + ...nseRoutedAudioTaskCreatedRouting.Json.g.cs | 141 + ...ResponseRoutedAudioTaskCreatedRouting.g.cs | 118 + ...skCreatedRoutingCapacityFallback.Json.g.cs | 141 + ...dioTaskCreatedRoutingCapacityFallback.g.cs | 59 + ...oTaskCreatedRoutingEstimatedCost.Json.g.cs | 141 + ...dAudioTaskCreatedRoutingEstimatedCost.g.cs | 47 + ...oTaskCreatedRoutingResolvedInput.Json.g.cs | 141 + ...dAudioTaskCreatedRoutingResolvedInput.g.cs | 61 + ...ioTaskCreatedRoutingResolvedInputType.g.cs | 51 + ...oTaskCreatedRoutingResolvedInputVoice.g.cs | 63 + ...skCreatedRoutingResolvedSettings.Json.g.cs | 141 + ...dioTaskCreatedRoutingResolvedSettings.g.cs | 59 + ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 57 + ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 + ...edRoutingResolvedSettingsPriceCeiling.g.cs | 19 + ...nseRoutingResolvedSettingsOptimizeFor.g.cs | 57 - ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 - ...s.CreateGenerateAudioResponseVariant1.g.cs | 4 +- ...rateAudioResponseVariant1PipelineItem.g.cs | 28 +- ...dioResponseVariant1PipelineItemFilter.g.cs | 12 +- ...way.Models.CreateGenerateImageRequest.g.cs | 13 +- ...dels.CreateGenerateImageResponse.Json.g.cs | 6 +- ...ay.Models.CreateGenerateImageResponse.g.cs | 300 +- ...ls.CreateGenerateImageResponse4.Json.g.cs} | 26 +- ...y.Models.CreateGenerateImageResponse4.g.cs | 45 + ...erateImageResponseDiscriminator.Json.g.cs} | 26 +- ...ateGenerateImageResponseDiscriminator.g.cs | 45 + ...erateImageResponseDiscriminatorDryRun.g.cs | 51 + ...eImageResponseRoutedImageDryRun.Json.g.cs} | 26 +- ...enerateImageResponseRoutedImageDryRun.g.cs | 69 + ...ResponseRoutedImageDryRunRouting.Json.g.cs | 141 + ...mageResponseRoutedImageDryRunRouting.g.cs} | 33 +- ...ageDryRunRoutingCapacityFallback.Json.g.cs | 141 + ...tedImageDryRunRoutingCapacityFallback.g.cs | 59 + ...dImageDryRunRoutingEstimatedCost.Json.g.cs | 141 + ...outedImageDryRunRoutingEstimatedCost.g.cs} | 10 +- ...dImageDryRunRoutingResolvedInput.Json.g.cs | 141 + ...outedImageDryRunRoutingResolvedInput.g.cs} | 10 +- ...ageDryRunRoutingResolvedSettings.Json.g.cs | 141 + ...edImageDryRunRoutingResolvedSettings.g.cs} | 16 +- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 57 + ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 + ...nRoutingResolvedSettingsPriceCeiling.g.cs} | 2 +- ...eResponseRoutedImageTaskCreated.Json.g.cs} | 26 +- ...teImageResponseRoutedImageTaskCreated.g.cs | 69 + ...nseRoutedImageTaskCreatedRouting.Json.g.cs | 141 + ...ResponseRoutedImageTaskCreatedRouting.g.cs | 118 + ...skCreatedRoutingCapacityFallback.Json.g.cs | 141 + ...ageTaskCreatedRoutingCapacityFallback.g.cs | 59 + ...eTaskCreatedRoutingEstimatedCost.Json.g.cs | 141 + ...dImageTaskCreatedRoutingEstimatedCost.g.cs | 47 + ...eTaskCreatedRoutingResolvedInput.Json.g.cs | 141 + ...dImageTaskCreatedRoutingResolvedInput.g.cs | 71 + ...skCreatedRoutingResolvedSettings.Json.g.cs | 141 + ...ageTaskCreatedRoutingResolvedSettings.g.cs | 59 + ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 57 + ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 + ...edRoutingResolvedSettingsPriceCeiling.g.cs | 19 + ...nseRoutingResolvedSettingsOptimizeFor.g.cs | 57 - ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 - ...s.CreateGenerateImageResponseVariant1.g.cs | 4 +- ...rateImageResponseVariant1PipelineItem.g.cs | 28 +- ...ageResponseVariant1PipelineItemFilter.g.cs | 12 +- ...way.Models.CreateGenerateVideoRequest.g.cs | 13 +- ...dels.CreateGenerateVideoResponse.Json.g.cs | 6 +- ...ay.Models.CreateGenerateVideoResponse.g.cs | 300 +- ...ls.CreateGenerateVideoResponse4.Json.g.cs} | 26 +- ...y.Models.CreateGenerateVideoResponse4.g.cs | 45 + ...erateVideoResponseDiscriminator.Json.g.cs} | 26 +- ...ateGenerateVideoResponseDiscriminator.g.cs | 45 + ...erateVideoResponseDiscriminatorDryRun.g.cs | 51 + ...eVideoResponseRoutedVideoDryRun.Json.g.cs} | 26 +- ...enerateVideoResponseRoutedVideoDryRun.g.cs | 69 + ...ResponseRoutedVideoDryRunRouting.Json.g.cs | 141 + ...ideoResponseRoutedVideoDryRunRouting.g.cs} | 33 +- ...deoDryRunRoutingCapacityFallback.Json.g.cs | 141 + ...tedVideoDryRunRoutingCapacityFallback.g.cs | 59 + ...dVideoDryRunRoutingEstimatedCost.Json.g.cs | 141 + ...outedVideoDryRunRoutingEstimatedCost.g.cs} | 10 +- ...dVideoDryRunRoutingResolvedInput.Json.g.cs | 141 + ...outedVideoDryRunRoutingResolvedInput.g.cs} | 10 +- ...deoDryRunRoutingResolvedSettings.Json.g.cs | 141 + ...edVideoDryRunRoutingResolvedSettings.g.cs} | 16 +- ...RunRoutingResolvedSettingsOptimizeFor.g.cs | 57 + ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 + ...nRoutingResolvedSettingsPriceCeiling.g.cs} | 2 +- ...oResponseRoutedVideoTaskCreated.Json.g.cs} | 26 +- ...teVideoResponseRoutedVideoTaskCreated.g.cs | 69 + ...nseRoutedVideoTaskCreatedRouting.Json.g.cs | 141 + ...ResponseRoutedVideoTaskCreatedRouting.g.cs | 118 + ...skCreatedRoutingCapacityFallback.Json.g.cs | 141 + ...deoTaskCreatedRoutingCapacityFallback.g.cs | 59 + ...oTaskCreatedRoutingEstimatedCost.Json.g.cs | 141 + ...dVideoTaskCreatedRoutingEstimatedCost.g.cs | 47 + ...oTaskCreatedRoutingResolvedInput.Json.g.cs | 141 + ...dVideoTaskCreatedRoutingResolvedInput.g.cs | 71 + ...skCreatedRoutingResolvedSettings.Json.g.cs | 141 + ...deoTaskCreatedRoutingResolvedSettings.g.cs | 59 + ...tedRoutingResolvedSettingsOptimizeFor.g.cs | 57 + ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 + ...edRoutingResolvedSettingsPriceCeiling.g.cs | 19 + ...nseRoutingResolvedSettingsOptimizeFor.g.cs | 57 - ...tingResolvedSettingsPriceCeiling.Json.g.cs | 141 - ...s.CreateGenerateVideoResponseVariant1.g.cs | 4 +- ...rateVideoResponseVariant1PipelineItem.g.cs | 28 +- ...deoResponseVariant1PipelineItemFilter.g.cs | 12 +- ...nway.Models.CreateImageToVideoRequest.g.cs | 149 +- ...ImageToVideoRequestDiscriminatorModel.g.cs | 16 +- ...Models.CreateImageToVideoRequestGen45.g.cs | 24 + ...eImageToVideoRequestGen45OutputFormat.g.cs | 57 + ...ImageToVideoRequestGen45ProresProfile.g.cs | 75 + ...CreateImageToVideoRequestHailuo3.Json.g.cs | 141 + ...dels.CreateImageToVideoRequestHailuo3.g.cs | 116 + ...stHailuo3PromptImageVariant2Item.Json.g.cs | 141 + ...RequestHailuo3PromptImageVariant2Item.g.cs | 19 + ...CreateImageToVideoRequestHailuo3Ratio.g.cs | 81 + ...equestHailuo3ReferenceAudioItem.Json.g.cs} | 26 +- ...VideoRequestHailuo3ReferenceAudioItem.g.cs | 72 + ...eImageToVideoRequestHailuo3Resolution.g.cs | 51 + ...ls.CreateImageToVideoRequestSeedance2.g.cs | 4 +- ...ateImageToVideoRequestSeedance25.Json.g.cs | 141 + ...s.CreateImageToVideoRequestSeedance25.g.cs | 116 + ...Seedance25PromptImagePromptImage.Json.g.cs | 141 + ...uestSeedance25PromptImagePromptImage.g.cs} | 32 +- ...dance25PromptImagePromptImagePosition.g.cs | 51 + ...ateImageToVideoRequestSeedance25Ratio.g.cs | 111 + ...uestSeedance25ReferenceAudioItem.Json.g.cs | 141 + ...eoRequestSeedance25ReferenceAudioItem.g.cs | 72 + ...reateImageToVideoRequestSeedance2Fast.g.cs | 4 +- ...reateImageToVideoRequestSeedance2Mini.g.cs | 4 +- ....Models.CreateImageToVideoRequestVeo3.g.cs | 103 - ...ls.CreateImageToVideoRequestVeo3Ratio.g.cs | 63 - ...way.Models.CreateImageToVideoResponse.g.cs | 14 +- ...ay.Models.CreateImageToVideoResponse2.g.cs | 30 +- ...els.CreateImageToVideoResponse3.Json.g.cs} | 26 +- ...ay.Models.CreateImageToVideoResponse3.g.cs | 45 + ...mageToVideoResponseEstimatedCost.Json.g.cs | 141 + ...eateImageToVideoResponseEstimatedCost.g.cs | 47 + ....CreateImageToVideoResponseIssue.Json.g.cs | 141 + ...odels.CreateImageToVideoResponseIssue.g.cs | 71 + ...CreateImageToVideoResponseIssue2.Json.g.cs | 141 + ...dels.CreateImageToVideoResponseIssue2.g.cs | 19 + ...way.Models.CreateImageUpscaleResponse.g.cs | 14 +- ...ay.Models.CreateImageUpscaleResponse2.g.cs | 30 +- ...dels.CreateImageUpscaleResponse3.Json.g.cs | 141 + ...ay.Models.CreateImageUpscaleResponse3.g.cs | 45 + ...mageUpscaleResponseEstimatedCost.Json.g.cs | 141 + ...eateImageUpscaleResponseEstimatedCost.g.cs | 47 + ....CreateImageUpscaleResponseIssue.Json.g.cs | 141 + ...odels.CreateImageUpscaleResponseIssue.g.cs | 71 + ...CreateImageUpscaleResponseIssue2.Json.g.cs | 141 + ...dels.CreateImageUpscaleResponseIssue2.g.cs | 19 + ....CreateOrganizationUsageResponseModel.g.cs | 12 + ...ionUsageResponseResultUsedCreditModel.g.cs | 12 + ...s.CreateRecipesAdLocalizationResponse.g.cs | 14 +- ....CreateRecipesAdLocalizationResponse2.g.cs | 30 +- ...teRecipesAdLocalizationResponse3.Json.g.cs | 141 + ....CreateRecipesAdLocalizationResponse3.g.cs | 45 + ...ocalizationResponseEstimatedCost.Json.g.cs | 141 + ...esAdLocalizationResponseEstimatedCost.g.cs | 47 + ...cipesAdLocalizationResponseIssue.Json.g.cs | 141 + ...ateRecipesAdLocalizationResponseIssue.g.cs | 71 + ...ipesAdLocalizationResponseIssue2.Json.g.cs | 141 + ...teRecipesAdLocalizationResponseIssue2.g.cs | 19 + ...ateRecipesMarketingStockImageResponse.g.cs | 14 +- ...teRecipesMarketingStockImageResponse2.g.cs | 30 +- ...ipesMarketingStockImageResponse3.Json.g.cs | 141 + ...teRecipesMarketingStockImageResponse3.g.cs | 45 + ...gStockImageResponseEstimatedCost.Json.g.cs | 141 + ...ketingStockImageResponseEstimatedCost.g.cs | 47 + ...MarketingStockImageResponseIssue.Json.g.cs | 141 + ...cipesMarketingStockImageResponseIssue.g.cs | 71 + ...arketingStockImageResponseIssue2.Json.g.cs | 141 + ...ipesMarketingStockImageResponseIssue2.g.cs | 19 + ...s.CreateRecipesMultiShotVideoResponse.g.cs | 14 +- ....CreateRecipesMultiShotVideoResponse2.g.cs | 30 +- ...teRecipesMultiShotVideoResponse3.Json.g.cs | 141 + ....CreateRecipesMultiShotVideoResponse3.g.cs | 45 + ...tiShotVideoResponseEstimatedCost.Json.g.cs | 141 + ...esMultiShotVideoResponseEstimatedCost.g.cs | 47 + ...cipesMultiShotVideoResponseIssue.Json.g.cs | 141 + ...ateRecipesMultiShotVideoResponseIssue.g.cs | 71 + ...ipesMultiShotVideoResponseIssue2.Json.g.cs | 141 + ...teRecipesMultiShotVideoResponseIssue2.g.cs | 19 + ...Models.CreateRecipesProductAdResponse.g.cs | 14 +- ...odels.CreateRecipesProductAdResponse2.g.cs | 30 +- ....CreateRecipesProductAdResponse3.Json.g.cs | 141 + ...odels.CreateRecipesProductAdResponse3.g.cs | 45 + ...esProductAdResponseEstimatedCost.Json.g.cs | 141 + ...RecipesProductAdResponseEstimatedCost.g.cs | 47 + ...ateRecipesProductAdResponseIssue.Json.g.cs | 141 + ...s.CreateRecipesProductAdResponseIssue.g.cs | 71 + ...teRecipesProductAdResponseIssue2.Json.g.cs | 141 + ....CreateRecipesProductAdResponseIssue2.g.cs | 19 + ...teRecipesProductCampaignImageResponse.g.cs | 14 +- ...eRecipesProductCampaignImageResponse2.g.cs | 30 +- ...pesProductCampaignImageResponse3.Json.g.cs | 141 + ...eRecipesProductCampaignImageResponse3.g.cs | 45 + ...mpaignImageResponseEstimatedCost.Json.g.cs | 141 + ...uctCampaignImageResponseEstimatedCost.g.cs | 47 + ...roductCampaignImageResponseIssue.Json.g.cs | 141 + ...ipesProductCampaignImageResponseIssue.g.cs | 71 + ...oductCampaignImageResponseIssue2.Json.g.cs | 141 + ...pesProductCampaignImageResponseIssue2.g.cs | 19 + ...dels.CreateRecipesProductSwapResponse.g.cs | 14 +- ...els.CreateRecipesProductSwapResponse2.g.cs | 30 +- ...reateRecipesProductSwapResponse3.Json.g.cs | 141 + ...els.CreateRecipesProductSwapResponse3.g.cs | 45 + ...ProductSwapResponseEstimatedCost.Json.g.cs | 141 + ...cipesProductSwapResponseEstimatedCost.g.cs | 47 + ...eRecipesProductSwapResponseIssue.Json.g.cs | 141 + ...CreateRecipesProductSwapResponseIssue.g.cs | 71 + ...RecipesProductSwapResponseIssue2.Json.g.cs | 141 + ...reateRecipesProductSwapResponseIssue2.g.cs | 19 + ...odels.CreateRecipesProductUgcResponse.g.cs | 14 +- ...dels.CreateRecipesProductUgcResponse2.g.cs | 30 +- ...CreateRecipesProductUgcResponse3.Json.g.cs | 141 + ...dels.CreateRecipesProductUgcResponse3.g.cs | 45 + ...sProductUgcResponseEstimatedCost.Json.g.cs | 141 + ...ecipesProductUgcResponseEstimatedCost.g.cs | 47 + ...teRecipesProductUgcResponseIssue.Json.g.cs | 141 + ....CreateRecipesProductUgcResponseIssue.g.cs | 71 + ...eRecipesProductUgcResponseIssue2.Json.g.cs | 141 + ...CreateRecipesProductUgcResponseIssue2.g.cs | 19 + ...y.Models.CreateRoutersRequestSettings.g.cs | 13 +- ...teRoutersRequestSettingsFallback.Json.g.cs | 141 + ....CreateRoutersRequestSettingsFallback.g.cs | 46 + ....Models.CreateRoutersResponseSettings.g.cs | 11 + ...eRoutersResponseSettingsFallback.Json.g.cs | 141 + ...CreateRoutersResponseSettingsFallback.g.cs | 46 + ...nway.Models.CreateSoundEffectResponse.g.cs | 14 +- ...way.Models.CreateSoundEffectResponse2.g.cs | 30 +- ...odels.CreateSoundEffectResponse3.Json.g.cs | 141 + ...way.Models.CreateSoundEffectResponse3.g.cs | 45 + ...SoundEffectResponseEstimatedCost.Json.g.cs | 141 + ...reateSoundEffectResponseEstimatedCost.g.cs | 47 + ...s.CreateSoundEffectResponseIssue.Json.g.cs | 141 + ...Models.CreateSoundEffectResponseIssue.g.cs | 71 + ....CreateSoundEffectResponseIssue2.Json.g.cs | 141 + ...odels.CreateSoundEffectResponseIssue2.g.cs | 19 + ...y.Models.CreateSpeechToSpeechResponse.g.cs | 14 +- ....Models.CreateSpeechToSpeechResponse2.g.cs | 30 +- ...ls.CreateSpeechToSpeechResponse3.Json.g.cs | 141 + ....Models.CreateSpeechToSpeechResponse3.g.cs | 45 + ...echToSpeechResponseEstimatedCost.Json.g.cs | 141 + ...teSpeechToSpeechResponseEstimatedCost.g.cs | 47 + ...reateSpeechToSpeechResponseIssue.Json.g.cs | 141 + ...els.CreateSpeechToSpeechResponseIssue.g.cs | 71 + ...eateSpeechToSpeechResponseIssue2.Json.g.cs | 141 + ...ls.CreateSpeechToSpeechResponseIssue2.g.cs | 19 + ...CreateTextToImageRequestSeedream5Lite.g.cs | 11 + ...nway.Models.CreateTextToImageResponse.g.cs | 14 +- ...way.Models.CreateTextToImageResponse2.g.cs | 30 +- ...dels.CreateTextToImageResponse3.Json.g.cs} | 26 +- ...way.Models.CreateTextToImageResponse3.g.cs | 45 + ...TextToImageResponseEstimatedCost.Json.g.cs | 141 + ...reateTextToImageResponseEstimatedCost.g.cs | 47 + ...s.CreateTextToImageResponseIssue.Json.g.cs | 141 + ...Models.CreateTextToImageResponseIssue.g.cs | 71 + ....CreateTextToImageResponseIssue2.Json.g.cs | 141 + ...odels.CreateTextToImageResponseIssue2.g.cs | 19 + ...nway.Models.CreateTextToSpeechRequest.g.cs | 91 +- ...TextToSpeechRequestDiscriminatorModel.g.cs | 6 + ...reateTextToSpeechRequestElevenV3.Json.g.cs | 141 + ...els.CreateTextToSpeechRequestElevenV3.g.cs | 158 + ...RequestElevenV3ApplyTextNormalization.g.cs | 57 + ...equestElevenV3VoiceDiscriminator.Json.g.cs | 141 + ...eechRequestElevenV3VoiceDiscriminator.g.cs | 45 + ...RequestElevenV3VoiceDiscriminatorType.g.cs | 45 + ...stElevenV3VoiceRunwayPresetVoice.Json.g.cs | 141 + ...RequestElevenV3VoiceRunwayPresetVoice.g.cs | 70 + ...levenV3VoiceRunwayPresetVoicePresetId.g.cs | 333 + ...ls.CreateTextToSpeechRequestSeedAudio.g.cs | 5 +- ...equestSeedAudioVoiceDiscriminatorType.g.cs | 6 + ...estSeedAudioVoiceSeedPresetVoice.Json.g.cs | 141 + ...hRequestSeedAudioVoiceSeedPresetVoice.g.cs | 70 + ...SeedAudioVoiceSeedPresetVoicePresetId.g.cs | 159 + ...way.Models.CreateTextToSpeechResponse.g.cs | 14 +- ...ay.Models.CreateTextToSpeechResponse2.g.cs | 30 +- ...dels.CreateTextToSpeechResponse3.Json.g.cs | 141 + ...ay.Models.CreateTextToSpeechResponse3.g.cs | 45 + ...extToSpeechResponseEstimatedCost.Json.g.cs | 141 + ...eateTextToSpeechResponseEstimatedCost.g.cs | 47 + ....CreateTextToSpeechResponseIssue.Json.g.cs | 141 + ...odels.CreateTextToSpeechResponseIssue.g.cs | 71 + ...CreateTextToSpeechResponseIssue2.Json.g.cs | 141 + ...dels.CreateTextToSpeechResponseIssue2.g.cs | 19 + ...unway.Models.CreateTextToVideoRequest.g.cs | 149 +- ...eTextToVideoRequestDiscriminatorModel.g.cs | 16 +- ....Models.CreateTextToVideoRequestGen45.g.cs | 24 + ...teTextToVideoRequestGen45OutputFormat.g.cs | 57 + ...eTextToVideoRequestGen45ProresProfile.g.cs | 75 + ....CreateTextToVideoRequestHailuo3.Json.g.cs | 141 + ...odels.CreateTextToVideoRequestHailuo3.g.cs | 137 + ....CreateTextToVideoRequestHailuo3Ratio.g.cs | 81 + ...xtToVideoRequestHailuo3Reference.Json.g.cs | 141 + ...ateTextToVideoRequestHailuo3Reference.g.cs | 50 + ...RequestHailuo3ReferenceAudioItem.Json.g.cs | 141 + ...VideoRequestHailuo3ReferenceAudioItem.g.cs | 72 + ...ideoRequestHailuo3ReferenceVideo.Json.g.cs | 141 + ...xtToVideoRequestHailuo3ReferenceVideo.g.cs | 72 + ...teTextToVideoRequestHailuo3Resolution.g.cs | 51 + ...els.CreateTextToVideoRequestSeedance2.g.cs | 4 +- ...eateTextToVideoRequestSeedance25.Json.g.cs | 141 + ...ls.CreateTextToVideoRequestSeedance25.g.cs | 125 + ...eateTextToVideoRequestSeedance25Ratio.g.cs | 111 + ...oVideoRequestSeedance25Reference.Json.g.cs | 141 + ...TextToVideoRequestSeedance25Reference.g.cs | 50 + ...uestSeedance25ReferenceAudioItem.Json.g.cs | 141 + ...eoRequestSeedance25ReferenceAudioItem.g.cs | 72 + ...oRequestSeedance25ReferenceVideo.Json.g.cs | 141 + ...oVideoRequestSeedance25ReferenceVideo.g.cs | 72 + ...CreateTextToVideoRequestSeedance2Fast.g.cs | 4 +- ...CreateTextToVideoRequestSeedance2Mini.g.cs | 4 +- ...y.Models.CreateTextToVideoRequestVeo3.g.cs | 93 - ...els.CreateTextToVideoRequestVeo3Ratio.g.cs | 63 - ...nway.Models.CreateTextToVideoResponse.g.cs | 14 +- ...way.Models.CreateTextToVideoResponse2.g.cs | 30 +- ...odels.CreateTextToVideoResponse3.Json.g.cs | 141 + ...way.Models.CreateTextToVideoResponse3.g.cs | 45 + ...TextToVideoResponseEstimatedCost.Json.g.cs | 141 + ...reateTextToVideoResponseEstimatedCost.g.cs | 47 + ...s.CreateTextToVideoResponseIssue.Json.g.cs | 141 + ...Models.CreateTextToVideoResponseIssue.g.cs | 71 + ....CreateTextToVideoResponseIssue2.Json.g.cs | 141 + ...odels.CreateTextToVideoResponseIssue2.g.cs | 19 + ...nway.Models.CreateVideoToVideoRequest.g.cs | 174 +- ...VideoToVideoRequestDiscriminatorModel.g.cs | 12 + ...CreateVideoToVideoRequestHailuo3.Json.g.cs | 141 + ...dels.CreateVideoToVideoRequestHailuo3.g.cs | 140 + ...CreateVideoToVideoRequestHailuo3Ratio.g.cs | 81 + ...eoToVideoRequestHailuo3Reference.Json.g.cs | 141 + ...teVideoToVideoRequestHailuo3Reference.g.cs | 50 + ...RequestHailuo3ReferenceAudioItem.Json.g.cs | 141 + ...VideoRequestHailuo3ReferenceAudioItem.g.cs | 72 + ...ideoRequestHailuo3ReferenceVideo.Json.g.cs | 141 + ...eoToVideoRequestHailuo3ReferenceVideo.g.cs | 72 + ...eVideoToVideoRequestHailuo3Resolution.g.cs | 51 + ...ls.CreateVideoToVideoRequestSeedance2.g.cs | 4 +- ...ateVideoToVideoRequestSeedance25.Json.g.cs | 141 + ...s.CreateVideoToVideoRequestSeedance25.g.cs | 166 + ...eateVideoToVideoRequestSeedance25Mode.g.cs | 52 + ...ateVideoToVideoRequestSeedance25Ratio.g.cs | 111 + ...oVideoRequestSeedance25Reference.Json.g.cs | 141 + ...ideoToVideoRequestSeedance25Reference.g.cs | 50 + ...uestSeedance25ReferenceAudioItem.Json.g.cs | 141 + ...eoRequestSeedance25ReferenceAudioItem.g.cs | 72 + ...oRequestSeedance25ReferenceVideo.Json.g.cs | 141 + ...oVideoRequestSeedance25ReferenceVideo.g.cs | 72 + ...reateVideoToVideoRequestSeedance2Fast.g.cs | 4 +- ...reateVideoToVideoRequestSeedance2Mini.g.cs | 4 +- ...els.CreateVideoToVideoRequestVariant1.g.cs | 24 + ...deoToVideoRequestVariant1OutputFormat.g.cs | 57 + ...eoToVideoRequestVariant1ProresProfile.g.cs | 75 + ...way.Models.CreateVideoToVideoResponse.g.cs | 14 +- ...ay.Models.CreateVideoToVideoResponse2.g.cs | 30 +- ...dels.CreateVideoToVideoResponse3.Json.g.cs | 141 + ...ay.Models.CreateVideoToVideoResponse3.g.cs | 45 + ...ideoToVideoResponseEstimatedCost.Json.g.cs | 141 + ...eateVideoToVideoResponseEstimatedCost.g.cs | 47 + ....CreateVideoToVideoResponseIssue.Json.g.cs | 141 + ...odels.CreateVideoToVideoResponseIssue.g.cs | 71 + ...CreateVideoToVideoResponseIssue2.Json.g.cs | 141 + ...dels.CreateVideoToVideoResponseIssue2.g.cs | 19 + ...way.Models.CreateVideoUpscaleResponse.g.cs | 14 +- ...ay.Models.CreateVideoUpscaleResponse2.g.cs | 30 +- ...dels.CreateVideoUpscaleResponse3.Json.g.cs | 141 + ...ay.Models.CreateVideoUpscaleResponse3.g.cs | 45 + ...ideoUpscaleResponseEstimatedCost.Json.g.cs | 141 + ...eateVideoUpscaleResponseEstimatedCost.g.cs | 47 + ....CreateVideoUpscaleResponseIssue.Json.g.cs | 141 + ...odels.CreateVideoUpscaleResponseIssue.g.cs | 71 + ...CreateVideoUpscaleResponseIssue2.Json.g.cs | 141 + ...dels.CreateVideoUpscaleResponseIssue2.g.cs | 19 + ...way.Models.CreateVoiceDubbingResponse.g.cs | 14 +- ...ay.Models.CreateVoiceDubbingResponse2.g.cs | 30 +- ...dels.CreateVoiceDubbingResponse3.Json.g.cs | 141 + ...ay.Models.CreateVoiceDubbingResponse3.g.cs | 45 + ...oiceDubbingResponseEstimatedCost.Json.g.cs | 141 + ...eateVoiceDubbingResponseEstimatedCost.g.cs | 47 + ....CreateVoiceDubbingResponseIssue.Json.g.cs | 141 + ...odels.CreateVoiceDubbingResponseIssue.g.cs | 71 + ...CreateVoiceDubbingResponseIssue2.Json.g.cs | 141 + ...dels.CreateVoiceDubbingResponseIssue2.g.cs | 19 + ...y.Models.CreateVoiceIsolationResponse.g.cs | 14 +- ....Models.CreateVoiceIsolationResponse2.g.cs | 30 +- ...ls.CreateVoiceIsolationResponse3.Json.g.cs | 141 + ....Models.CreateVoiceIsolationResponse3.g.cs | 45 + ...ceIsolationResponseEstimatedCost.Json.g.cs | 141 + ...teVoiceIsolationResponseEstimatedCost.g.cs | 47 + ...reateVoiceIsolationResponseIssue.Json.g.cs | 141 + ...els.CreateVoiceIsolationResponseIssue.g.cs | 71 + ...eateVoiceIsolationResponseIssue2.Json.g.cs | 141 + ...ls.CreateVoiceIsolationResponseIssue2.g.cs | 19 + ...Models.GetAvatarsResponseAvatarFailed.g.cs | 6 +- ...ls.GetAvatarsResponseAvatarProcessing.g.cs | 6 +- ....Models.GetAvatarsResponseAvatarReady.g.cs | 6 +- ...etAvatarsResponseDataItemAvatarFailed.g.cs | 6 +- ...atarsResponseDataItemAvatarProcessing.g.cs | 6 +- ...GetAvatarsResponseDataItemAvatarReady.g.cs | 6 +- ...anizationWebappAuditLogsResponse.Json.g.cs | 141 + ...etOrganizationWebappAuditLogsResponse.g.cs | 70 + ...nizationWebappAuditLogsResponse2.Json.g.cs | 141 + ...tOrganizationWebappAuditLogsResponse2.g.cs | 198 + ...nizationWebappAuditLogsResponse3.Json.g.cs | 141 + ...tOrganizationWebappAuditLogsResponse3.g.cs | 45 + ...nizationWebappAuditLogsResponseAction.g.cs | 459 + ...ebappAuditLogsResponseActorEmail.Json.g.cs | 141 + ...tionWebappAuditLogsResponseActorEmail.g.cs | 19 + ...ppAuditLogsResponseActorUsername.Json.g.cs | 141 + ...nWebappAuditLogsResponseActorUsername.g.cs | 19 + ...nWebappAuditLogsResponseDataItem.Json.g.cs | 141 + ...zationWebappAuditLogsResponseDataItem.g.cs | 130 + ...WebappAuditLogsResponseDataItemAction.g.cs | 459 + ...itLogsResponseDataItemActorEmail.Json.g.cs | 141 + ...ppAuditLogsResponseDataItemActorEmail.g.cs | 19 + ...ogsResponseDataItemActorUsername.Json.g.cs | 141 + ...uditLogsResponseDataItemActorUsername.g.cs | 19 + ...nWebappAuditLogsResponseMetadata.Json.g.cs | 141 + ...zationWebappAuditLogsResponseMetadata.g.cs | 296 + ...pAuditLogsResponseMetadataAmount.Json.g.cs | 141 + ...WebappAuditLogsResponseMetadataAmount.g.cs | 19 + ...tLogsResponseMetadataApplication.Json.g.cs | 141 + ...pAuditLogsResponseMetadataApplication.g.cs | 19 + ...ditLogsResponseMetadataAssetName.Json.g.cs | 141 + ...appAuditLogsResponseMetadataAssetName.g.cs | 19 + ...eMetadataDefaultTaskNameTemplate.Json.g.cs | 141 + ...sponseMetadataDefaultTaskNameTemplate.g.cs | 19 + ...ditLogsResponseMetadataGroupName.Json.g.cs | 141 + ...appAuditLogsResponseMetadataGroupName.g.cs | 19 + ...LogsResponseMetadataHardSpendCap.Json.g.cs | 141 + ...AuditLogsResponseMetadataHardSpendCap.g.cs | 19 + ...ogsResponseMetadataInvitedMember.Json.g.cs | 141 + ...uditLogsResponseMetadataInvitedMember.g.cs | 19 + ...tLogsResponseMetadataLoginMethod.Json.g.cs | 141 + ...pAuditLogsResponseMetadataLoginMethod.g.cs | 19 + ...tLogsResponseMetadataMemberEmail.Json.g.cs | 141 + ...pAuditLogsResponseMetadataMemberEmail.g.cs | 19 + ...ppAuditLogsResponseMetadataModel.Json.g.cs | 141 + ...nWebappAuditLogsResponseMetadataModel.g.cs | 19 + ...AuditLogsResponseMetadataNewRole.Json.g.cs | 141 + ...ebappAuditLogsResponseMetadataNewRole.g.cs | 19 + ...AuditLogsResponseMetadataNewUser.Json.g.cs | 141 + ...ebappAuditLogsResponseMetadataNewUser.g.cs | 19 + ...ditLogsResponseMetadataOperation.Json.g.cs | 141 + ...appAuditLogsResponseMetadataOperation.g.cs | 19 + ...appAuditLogsResponseMetadataPlan.Json.g.cs | 141 + ...onWebappAuditLogsResponseMetadataPlan.g.cs | 19 + ...uditLogsResponseMetadataPlatform.Json.g.cs | 141 + ...bappAuditLogsResponseMetadataPlatform.g.cs | 19 + ...LogsResponseMetadataPreviousRole.Json.g.cs | 141 + ...AuditLogsResponseMetadataPreviousRole.g.cs | 19 + ...ogsResponseMetadataRemovedMember.Json.g.cs | 141 + ...uditLogsResponseMetadataRemovedMember.g.cs | 19 + ...appAuditLogsResponseMetadataRole.Json.g.cs | 141 + ...onWebappAuditLogsResponseMetadataRole.g.cs | 19 + ...sponseMetadataSharedWithProjects.Json.g.cs | 141 + ...ogsResponseMetadataSharedWithProjects.g.cs | 19 + ...ponseMetadataSharedWithWorkspace.Json.g.cs | 141 + ...gsResponseMetadataSharedWithWorkspace.g.cs | 19 + ...uditLogsResponseMetadataSpendCap.Json.g.cs | 141 + ...bappAuditLogsResponseMetadataSpendCap.g.cs | 19 + ...uditLogsResponseMetadataTagColor.Json.g.cs | 141 + ...bappAuditLogsResponseMetadataTagColor.g.cs | 19 + ...AuditLogsResponseMetadataTagName.Json.g.cs | 141 + ...ebappAuditLogsResponseMetadataTagName.g.cs | 19 + ...LogsResponseMetadataTargetMember.Json.g.cs | 141 + ...AuditLogsResponseMetadataTargetMember.g.cs | 19 + ...ditLogsResponseMetadataWorkspace.Json.g.cs | 141 + ...appAuditLogsResponseMetadataWorkspace.g.cs | 19 + ...onseMetadataWorkspaceDescription.Json.g.cs | 141 + ...sResponseMetadataWorkspaceDescription.g.cs | 19 + ...tLogsResponseMetadataWorkspaceId.Json.g.cs | 141 + ...pAuditLogsResponseMetadataWorkspaceId.g.cs | 19 + ...ogsResponseMetadataWorkspaceName.Json.g.cs | 141 + ...uditLogsResponseMetadataWorkspaceName.g.cs | 19 + ...ResponseMetadataWorkspacePicture.Json.g.cs | 141 + ...tLogsResponseMetadataWorkspacePicture.g.cs | 19 + ...ebappAuditLogsResponseNextCursor.Json.g.cs | 141 + ...tionWebappAuditLogsResponseNextCursor.g.cs | 19 + ...WebappAuditLogsResponseRequestId.Json.g.cs | 141 + ...ationWebappAuditLogsResponseRequestId.g.cs | 19 + ...ebappAuditLogsResponseResourceId.Json.g.cs | 141 + ...tionWebappAuditLogsResponseResourceId.g.cs | 19 + ...appAuditLogsResponseResourceType.Json.g.cs | 141 + ...onWebappAuditLogsResponseResourceType.g.cs | 19 + ...WebappAuditLogsResponseUserAgent.Json.g.cs | 141 + ...ationWebappAuditLogsResponseUserAgent.g.cs | 19 + ...tOrganizationWebappUsageResponse.Json.g.cs | 141 + ...ls.GetOrganizationWebappUsageResponse.g.cs | 70 + ...ationWebappUsageResponseDataItem.Json.g.cs | 141 + ...ganizationWebappUsageResponseDataItem.g.cs | 120 + ...zationWebappUsageResponseDataItemType.g.cs | 51 + ...ionWebappUsageResponseNextCursor.Json.g.cs | 141 + ...nizationWebappUsageResponseNextCursor.g.cs | 19 + ...odels.GetRoutersRequestsResponse.Json.g.cs | 141 + ...way.Models.GetRoutersRequestsResponse.g.cs | 70 + ...tRoutersRequestsResponseDataItem.Json.g.cs | 141 + ...ls.GetRoutersRequestsResponseDataItem.g.cs | 160 + ...RequestsResponseDataItemEmptiedByItem.g.cs | 69 + ...ResponseDataItemEstimatedCredits.Json.g.cs | 141 + ...uestsResponseDataItemEstimatedCredits.g.cs | 19 + ...ersRequestsResponseDataItemModel.Json.g.cs | 141 + ...tRoutersRequestsResponseDataItemModel.g.cs | 19 + ...ataItemPipelineItemDiscriminator.Json.g.cs | 141 + ...onseDataItemPipelineItemDiscriminator.g.cs | 45 + ...DataItemPipelineItemDiscriminatorType.g.cs | 57 + ...onseDataItemPipelineItemVariant1.Json.g.cs | 141 + ...sResponseDataItemPipelineItemVariant1.g.cs | 70 + ...nseDataItemPipelineItemVariant1Filter.g.cs | 69 + ...onseDataItemPipelineItemVariant2.Json.g.cs | 141 + ...sResponseDataItemPipelineItemVariant2.g.cs | 69 + ...onseDataItemPipelineItemVariant3.Json.g.cs | 141 + ...sResponseDataItemPipelineItemVariant3.g.cs | 70 + ...seDataItemPipelineItemVariant3Outcome.g.cs | 63 + ...RequestsResponseDataItemProvider.Json.g.cs | 141 + ...utersRequestsResponseDataItemProvider.g.cs | 19 + ...rsRequestsResponseDataItemReason.Json.g.cs | 141 + ...RoutersRequestsResponseDataItemReason.g.cs | 19 + ...questsResponseDataItemReasonCode.Json.g.cs | 141 + ...ersRequestsResponseDataItemReasonCode.g.cs | 19 + ...rsRequestsResponseDataItemReasonCode2.g.cs | 69 + ...RoutersRequestsResponseDataItemStatus.g.cs | 69 + ...rsRequestsResponseDataItemTaskId.Json.g.cs | 141 + ...RoutersRequestsResponseDataItemTaskId.g.cs | 19 + ...outersRequestsResponseNextCursor.Json.g.cs | 141 + ....GetRoutersRequestsResponseNextCursor.g.cs | 19 + ...ls.GetRoutersResponseDataItemSettings.g.cs | 11 + ...ResponseDataItemSettingsFallback.Json.g.cs | 141 + ...utersResponseDataItemSettingsFallback.g.cs | 46 + ...way.Models.GetRoutersResponseSettings.g.cs | 11 + ...tRoutersResponseSettingsFallback.Json.g.cs | 141 + ...ls.GetRoutersResponseSettingsFallback.g.cs | 46 + ...unway.Models.GetTasksResponseVariant1.g.cs | 12 + ...sksResponseVariant1EstimatedCost.Json.g.cs | 141 + ...GetTasksResponseVariant1EstimatedCost.g.cs | 47 + ...unway.Models.GetTasksResponseVariant2.g.cs | 12 + ...sksResponseVariant2EstimatedCost.Json.g.cs | 141 + ...GetTasksResponseVariant2EstimatedCost.g.cs | 47 + ...unway.Models.GetTasksResponseVariant3.g.cs | 12 + ...els.GetTasksResponseVariant3Cost.Json.g.cs | 141 + ...y.Models.GetTasksResponseVariant3Cost.g.cs | 47 + ...unway.Models.GetTasksResponseVariant4.g.cs | 12 + ...sksResponseVariant4EstimatedCost.Json.g.cs | 141 + ...GetTasksResponseVariant4EstimatedCost.g.cs | 47 + ...unway.Models.GetTasksResponseVariant5.g.cs | 12 + ...els.GetTasksResponseVariant5Cost.Json.g.cs | 141 + ...y.Models.GetTasksResponseVariant5Cost.g.cs | 47 + ...unway.Models.GetTasksResponseVariant6.g.cs | 12 + ...els.GetTasksResponseVariant6Cost.Json.g.cs | 141 + ...y.Models.GetTasksResponseVariant6Cost.g.cs | 47 + ...dels.PatchAvatarsResponseAvatarFailed.g.cs | 6 +- ....PatchAvatarsResponseAvatarProcessing.g.cs | 6 +- ...odels.PatchAvatarsResponseAvatarReady.g.cs | 6 +- ...ay.Models.PatchRoutersRequestSettings.g.cs | 13 +- ...chRoutersRequestSettingsFallback.Json.g.cs | 141 + ...s.PatchRoutersRequestSettingsFallback.g.cs | 46 + ...y.Models.PatchRoutersResponseSettings.g.cs | 11 + ...hRoutersResponseSettingsFallback.Json.g.cs | 141 + ....PatchRoutersResponseSettingsFallback.g.cs | 46 + .../Runway.Models.PipelineItem.Json.g.cs | 141 + .../Generated/Runway.Models.PipelineItem.g.cs | 386 + .../Generated/Runway.Models.Voice10.g.cs | 60 +- .../Generated/Runway.Models.Voice11.g.cs | 60 +- .../Generated/Runway.Models.Voice12.g.cs | 60 +- .../Generated/Runway.Models.Voice13.g.cs | 60 +- .../Generated/Runway.Models.Voice14.g.cs | 60 +- .../Generated/Runway.Models.Voice15.g.cs | 60 +- .../Generated/Runway.Models.Voice16.g.cs | 60 +- .../Generated/Runway.Models.Voice17.Json.g.cs | 141 + .../Generated/Runway.Models.Voice17.g.cs | 303 + .../Generated/Runway.Models.Voice4.g.cs | 104 +- .../Generated/Runway.Models.Voice5.g.cs | 140 +- .../Generated/Runway.Models.Voice6.g.cs | 60 +- .../Generated/Runway.Models.Voice7.g.cs | 60 +- .../Generated/Runway.Models.Voice8.g.cs | 60 +- .../Generated/Runway.Models.Voice9.g.cs | 60 +- ...Client.GetOrganizationWebappAuditLogs.g.cs | 519 + ...tOrganizationWebappAuditLogsByEventId.g.cs | 491 + ...tionClient.GetOrganizationWebappUsage.g.cs | 499 + ...pesClient.CreateRecipesAdLocalization.g.cs | 45 +- ...ient.CreateRecipesMarketingStockImage.g.cs | 45 +- ...pesClient.CreateRecipesMultiShotVideo.g.cs | 45 +- ....RecipesClient.CreateRecipesProductAd.g.cs | 45 +- ...ent.CreateRecipesProductCampaignImage.g.cs | 45 +- ...ecipesClient.CreateRecipesProductSwap.g.cs | 45 +- ...RecipesClient.CreateRecipesProductUgc.g.cs | 45 +- ...tingClient.CreateCharacterPerformance.g.cs | 45 +- ...rtGeneratingClient.CreateImageToVideo.g.cs | 45 +- ...rtGeneratingClient.CreateImageUpscale.g.cs | 45 +- ...artGeneratingClient.CreateSoundEffect.g.cs | 45 +- ...GeneratingClient.CreateSpeechToSpeech.g.cs | 45 +- ...artGeneratingClient.CreateTextToImage.g.cs | 45 +- ...rtGeneratingClient.CreateTextToSpeech.g.cs | 57 +- ...artGeneratingClient.CreateTextToVideo.g.cs | 45 +- ...rtGeneratingClient.CreateVideoToVideo.g.cs | 59 +- ...rtGeneratingClient.CreateVideoUpscale.g.cs | 45 +- ...rtGeneratingClient.CreateVoiceDubbing.g.cs | 45 +- ...GeneratingClient.CreateVoiceIsolation.g.cs | 45 +- .../Runway.UploadsClient.CreateUploads.g.cs | 14 +- src/libs/Runway/openapi.json | 9893 ++++++++++++----- 775 files changed, 67558 insertions(+), 6908 deletions(-) create mode 100644 src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdRequestsCommandApiCommand.g.cs create mode 100644 src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsByEventIdCommandApiCommand.g.cs create mode 100644 src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsCommandApiCommand.g.cs create mode 100644 src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappUsageCommandApiCommand.g.cs create mode 100644 src/libs/Runway/Generated/Runway.IModelRouterClient.GetRoutersByIdRequests.g.cs create mode 100644 src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappAuditLogs.g.cs create mode 100644 src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappUsage.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponse.g.cs rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs => Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs} (75%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullable.g.cs => Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullable.g.cs} (76%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs => Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs} (71%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullable.g.cs => Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullable.g.cs} (72%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs => Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs} (70%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable.g.cs => Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullable.g.cs} (72%) create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponse.g.cs rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs => Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRun.g.cs} (72%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullable.g.cs => Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullable.g.cs} (74%) create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs => Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs} (72%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs => Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs} (74%) create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormat.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfile.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullable.g.cs rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateImageToVideoRequestVeo3Ratio.g.cs => Runway.JsonConverters.CreateImageToVideoRequestHailuo3Ratio.g.cs} (79%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullable.g.cs => Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullable.g.cs} (80%) create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Resolution.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormat.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfile.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullable.g.cs rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateTextToVideoRequestVeo3Ratio.g.cs => Runway.JsonConverters.CreateTextToVideoRequestHailuo3Ratio.g.cs} (76%) rename src/libs/Runway/Generated/{Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullable.g.cs => Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullable.g.cs} (77%) create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Resolution.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Resolution.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Mode.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormat.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfile.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseAction.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2Nullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatus.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullable.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.PipelineItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.JsonConverters.Voice17.g.cs create mode 100644 src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersByIdRequests.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRouting.Json.g.cs => Runway.Models.CreateGenerateAudioResponse4.Json.g.cs} (91%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.Json.g.cs => Runway.Models.CreateGenerateAudioResponseDiscriminator.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.Json.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRouting.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.g.cs} (73%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.g.cs} (77%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.g.cs} (73%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs} (54%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs} (59%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.g.cs} (76%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.g.cs} (83%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.Json.g.cs => Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRouting.Json.g.cs => Runway.Models.CreateGenerateImageResponse4.Json.g.cs} (91%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.Json.g.cs => Runway.Models.CreateGenerateImageResponseDiscriminator.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminatorDryRun.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.Json.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRouting.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.g.cs} (73%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.g.cs} (77%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.g.cs} (86%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.g.cs} (76%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.g.cs} (83%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.Json.g.cs => Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs => Runway.Models.CreateGenerateVideoResponse4.Json.g.cs} (91%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs => Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRouting.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs} (73%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs} (77%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs} (87%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs} (76%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs} (83%) rename src/libs/Runway/Generated/{Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs => Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs} (89%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45OutputFormat.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45ProresProfile.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Ratio.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.Json.g.cs => Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs} (84%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Resolution.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.Json.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.g.cs => Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.g.cs} (65%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3Ratio.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateImageToVideoRequestVeo3.Json.g.cs => Runway.Models.CreateImageToVideoResponse3.Json.g.cs} (88%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.g.cs rename src/libs/Runway/Generated/{Runway.Models.CreateTextToVideoRequestVeo3.Json.g.cs => Runway.Models.CreateTextToImageResponse3.Json.g.cs} (88%) create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45OutputFormat.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45ProresProfile.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Resolution.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.g.cs delete mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Resolution.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Mode.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Ratio.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1OutputFormat.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1ProresProfile.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseAction.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorUsername.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorUsername.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadata.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadata.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataApplication.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataApplication.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAssetName.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAssetName.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataGroupName.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataGroupName.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataModel.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataModel.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewRole.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewRole.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewUser.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewUser.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataOperation.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataOperation.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlan.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlan.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlatform.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlatform.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRole.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRole.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagColor.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagColor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagName.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagName.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseNextCursor.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseNextCursor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseRequestId.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseRequestId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceId.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceType.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseUserAgent.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseUserAgent.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponse.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponse.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItemType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponse.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponse.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemModel.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemModel.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReason.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReason.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode2.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemStatus.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseNextCursor.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseNextCursor.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.PipelineItem.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.PipelineItem.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.Voice17.Json.g.cs create mode 100644 src/libs/Runway/Generated/Runway.Models.Voice17.g.cs create mode 100644 src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogs.g.cs create mode 100644 src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs create mode 100644 src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappUsage.g.cs diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs index b7277e4c..28e8cc0d 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs @@ -17,6 +17,7 @@ public static Command Create() command.Subcommands.Add(ModelRouterEditRoutersByIdCommandApiCommand.Create()); command.Subcommands.Add(ModelRouterGetRoutersCommandApiCommand.Create()); command.Subcommands.Add(ModelRouterGetRoutersByIdCommandApiCommand.Create()); + command.Subcommands.Add(ModelRouterGetRoutersByIdRequestsCommandApiCommand.Create()); return command; } } \ No newline at end of file diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateAudioCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateAudioCommandApiCommand.g.cs index 2d66b8fd..c61880fa 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateAudioCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateAudioCommandApiCommand.g.cs @@ -21,12 +21,32 @@ internal static partial class ModelRouterCreateGenerateAudioCommandApiCommand 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 audio generation input. 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.CreateGenerateAudioResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -54,14 +74,36 @@ public static Command Create() Start an audio generation task using a saved Model Router config instead of naming a model. Set input.type to speech to speak promptText verbatim, or audio to generate audio described by promptText."); 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); @@ -69,6 +111,7 @@ await CliRuntime.RunAsync(async () => var response = await client.ModelRouter.CreateGenerateAudioAsync( xRunwayVersion: xRunwayVersion, configId: configId, + dryRun: dryRun, input: input, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateImageCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateImageCommandApiCommand.g.cs index 5b7928d2..38b6812a 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateImageCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateImageCommandApiCommand.g.cs @@ -21,12 +21,32 @@ internal static partial class ModelRouterCreateGenerateImageCommandApiCommand 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 image generation input. 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.CreateGenerateImageResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) { @@ -54,14 +74,36 @@ public static Command Create() Start an image 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); @@ -69,6 +111,7 @@ await CliRuntime.RunAsync(async () => var response = await client.ModelRouter.CreateGenerateImageAsync( xRunwayVersion: xRunwayVersion, configId: configId, + dryRun: dryRun, input: input, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateVideoCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateVideoCommandApiCommand.g.cs index e94945c7..b4717599 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateVideoCommandApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateGenerateVideoCommandApiCommand.g.cs @@ -21,12 +21,32 @@ internal static partial class ModelRouterCreateGenerateVideoCommandApiCommand 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) { @@ -54,14 +74,36 @@ public static Command Create() 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); @@ -69,6 +111,7 @@ await CliRuntime.RunAsync(async () => var response = await client.ModelRouter.CreateGenerateVideoAsync( xRunwayVersion: xRunwayVersion, configId: configId, + dryRun: dryRun, input: input, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdRequestsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdRequestsCommandApiCommand.g.cs new file mode 100644 index 00000000..57436a0d --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdRequestsCommandApiCommand.g.cs @@ -0,0 +1,101 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class ModelRouterGetRoutersByIdRequestsCommandApiCommand +{ + private static Argument Id { get; } = new( + name: @"id") + { + Description = @"The Model Router's primary key ID (UUID).", + }; + + 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.GetRoutersRequestsResponse 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.GetRoutersRequestsResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"get-routers-by-id-requests", @"List Model Router requests +Paginated routing history for live Model Router requests (successful routes and failures). Playground dry runs are not recorded."); + command.Arguments.Add(Id); + command.Options.Add(Cursor); + command.Options.Add(Limit); + command.Options.Add(XRunwayVersion); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var id = parseResult.GetRequiredValue(Id); + 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.GetRoutersByIdRequestsAsync( + id: id, + 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/cli/Runway.Cli/GeneratedApi/Commands/OrganizationApiGroupCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationApiGroupCommand.g.cs index 6fc75990..73a9c093 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationApiGroupCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationApiGroupCommand.g.cs @@ -11,6 +11,9 @@ public static Command Create() var command = new Command(@"organization", @"Organization endpoint commands."); command.Subcommands.Add(OrganizationCreateOrganizationUsageCommandApiCommand.Create()); command.Subcommands.Add(OrganizationGetOrganizationCommandApiCommand.Create()); + command.Subcommands.Add(OrganizationGetOrganizationWebappAuditLogsCommandApiCommand.Create()); + command.Subcommands.Add(OrganizationGetOrganizationWebappAuditLogsByEventIdCommandApiCommand.Create()); + command.Subcommands.Add(OrganizationGetOrganizationWebappUsageCommandApiCommand.Create()); return command; } } \ No newline at end of file diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsByEventIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsByEventIdCommandApiCommand.g.cs new file mode 100644 index 00000000..c30350c3 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsByEventIdCommandApiCommand.g.cs @@ -0,0 +1,83 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class OrganizationGetOrganizationWebappAuditLogsByEventIdCommandApiCommand +{ + private static Argument EventId { get; } = new( + name: @"event-id") + { + Description = @"The `eventId` of an entry returned by the list endpoint.", + }; + + private static Option OrganizationId { get; } = new( + name: @"--organization-id") + { + Description = @"Organization to report on. Optional when this API project is linked to a single organization; required when it is linked to more than one.", + }; + + 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.GetOrganizationWebappAuditLogsResponse2 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.GetOrganizationWebappAuditLogsResponse2 value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"get-organization-webapp-audit-logs-by-event-id", @"Get a linked workspace audit log entry +Get a single audit log entry, including its metadata and forensic details, for a linked Runway workspace you administer. Authorized via the account link between this API project and the workspace."); + command.Arguments.Add(EventId); + command.Options.Add(OrganizationId); + command.Options.Add(XRunwayVersion); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var eventId = parseResult.GetRequiredValue(EventId); + var organizationId = parseResult.GetValue(OrganizationId); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Organization.GetOrganizationWebappAuditLogsByEventIdAsync( + eventId: eventId, + organizationId: organizationId, + 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/OrganizationGetOrganizationWebappAuditLogsCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsCommandApiCommand.g.cs new file mode 100644 index 00000000..01d2ebe2 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappAuditLogsCommandApiCommand.g.cs @@ -0,0 +1,146 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class OrganizationGetOrganizationWebappAuditLogsCommandApiCommand +{ + 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 OrganizationId { get; } = new( + name: @"--organization-id") + { + Description = @"Organization to report on. Optional when this API project is linked to a single organization; required when it is linked to more than one.", + }; + + private static Option WorkspaceIds { get; } = new( + name: @"--workspace-ids") + { + Description = @"Restrict results to these workspace IDs, as a comma-separated list of up to 50 IDs. Defaults to every workspace you administer in the organization.", + }; + + private static Option Actions { get; } = new( + name: @"--actions") + { + Description = @"Restrict results to these audit log actions, as a comma-separated list of up to 50 actions. Allowed values: `UserLogin`, `PasswordChanged`, `EmailChangeRequested`, `EmailChanged`, `UserRegistered`, `UserAccountDeleted`, `WorkspaceCreated`, `WorkspaceDeleted`, `MemberInvited`, `MemberRemoved`, `MemberRoleChanged`, `InviteAccepted`, `TeamSettingsUpdated`, `InviteLinkToggled`, `UserGroupCreated`, `UserGroupDeleted`, `UserGroupMemberAdded`, `UserGroupMemberRemoved`, `SSOLogin`, `SSOUserProvisioned`, `SSOConfigCreated`, `SSOUserAutoAddedToTeam`, `SSODomainRegistrationCloned`, `AssetCreated`, `AssetUpdated`, `AssetDeleted`, `AssetDownloaded`, `AssetShared`, `AssetUnshared`, `PermissionGranted`, `PermissionUpdated`, `PermissionRevoked`, `PermissionAccepted`, `SubscriptionCancelled`, `SubscriptionPlanSwitched`, `CreditsTransferred`, `SeatsTransferred`, `SessionShared`, `SessionUnshared`, `VideoProjectShared`, `VideoProjectUnshared`, `BrandKitShared`, `BrandKitUnshared`, `AgentCustomSkillCreated`, `AgentCustomSkillDeleted`, `AgentCustomSkillShared`, `AgentCustomSkillUnshared`, `AgentSessionShared`, `AgentSessionUnshared`, `AgentConnectorLinkTokenCreated`, `AgentConnectorConnected`, `AgentConnectorDisconnected`, `AgentConnectorAssetExported`, `AgentConnectorSessionEnabled`, `AgentConnectorSessionDisabled`, `GenerationCreated`, `AccountLinkCreated`, `AccountLinkDeleted`, `OrganizationSettingsUpdated`, `OrganizationDisabledModelsUpdated`, `WorkspaceCountryLockUpdated`, `WorkspaceTagCreated`, `WorkspaceTagUpdated`, `WorkspaceTagDeleted`, `WorkspaceTagAssigned`, `WorkspaceTagUnassigned`, `MeteredBillingConfigUpdated`, `MeteredBillingRefillTriggered`, `MeteredBillingRetryTriggered`, `EnterpriseSpendCapEnforcementUpdated`.", + }; + + private static Option ActorEmails { get; } = new( + name: @"--actor-emails") + { + Description = @"Restrict results to entries performed by the users with these emails, as a comma-separated list of up to 50 emails.", + }; + + private static Option From { get; } = new( + name: @"--from") + { + Description = @"Start of the time window (inclusive), ISO-8601 datetime.", + }; + + private static Option To { get; } = new( + name: @"--to") + { + Description = @"End of the time window (exclusive), ISO-8601 datetime.", + }; + + 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.GetOrganizationWebappAuditLogsResponse 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.GetOrganizationWebappAuditLogsResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"get-organization-webapp-audit-logs", @"List linked workspace audit logs +List audit log entries for the linked Runway workspaces you administer, newest first. Authorized via the account link between this API project and the workspace."); + command.Options.Add(Cursor); + command.Options.Add(Limit); + command.Options.Add(OrganizationId); + command.Options.Add(WorkspaceIds); + command.Options.Add(Actions); + command.Options.Add(ActorEmails); + command.Options.Add(From); + command.Options.Add(To); + 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 organizationId = parseResult.GetValue(OrganizationId); + var workspaceIds = parseResult.GetValue(WorkspaceIds); + var actions = parseResult.GetValue(Actions); + var actorEmails = parseResult.GetValue(ActorEmails); + var from = parseResult.GetValue(From); + var to = parseResult.GetValue(To); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Organization.GetOrganizationWebappAuditLogsAsync( + cursor: cursor, + limit: limit, + organizationId: organizationId, + workspaceIds: workspaceIds, + actions: actions, + actorEmails: actorEmails, + from: from, + to: to, + 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/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappUsageCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappUsageCommandApiCommand.g.cs new file mode 100644 index 00000000..1b9c2294 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/OrganizationGetOrganizationWebappUsageCommandApiCommand.g.cs @@ -0,0 +1,130 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class OrganizationGetOrganizationWebappUsageCommandApiCommand +{ + 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 From { get; } = new( + name: @"--from") + { + Description = @"Start of the time window (inclusive), ISO-8601 datetime.", + Required = true, + }; + + private static Option To { get; } = new( + name: @"--to") + { + Description = @"End of the time window (exclusive), ISO-8601 datetime. A `cursor` can only narrow this window, never extend it past `to`.", + Required = true, + }; + + private static Option OrganizationId { get; } = new( + name: @"--organization-id") + { + Description = @"Organization to report on. Optional when this API project is linked to a single organization; required when it is linked to more than one.", + }; + + private static Option WorkspaceIds { get; } = new( + name: @"--workspace-ids") + { + Description = @"Restrict results to these workspace IDs, as a comma-separated list. Defaults to every workspace you administer in the organization.", + }; + + 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.GetOrganizationWebappUsageResponse 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.GetOrganizationWebappUsageResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"get-organization-webapp-usage", @"List linked workspace usage +List per-generation credit-usage rows for the linked Runway workspaces you administer, newest first. Unlike `/v1/organization/usage` (this API project's own usage), this reports usage from the workspace linked to this API project. Authorized via that account link."); + command.Options.Add(Cursor); + command.Options.Add(Limit); + command.Options.Add(From); + command.Options.Add(To); + command.Options.Add(OrganizationId); + command.Options.Add(WorkspaceIds); + 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 from = parseResult.GetRequiredValue(From); + var to = parseResult.GetRequiredValue(To); + var organizationId = parseResult.GetValue(OrganizationId); + var workspaceIds = parseResult.GetValue(WorkspaceIds); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Organization.GetOrganizationWebappUsageAsync( + cursor: cursor, + limit: limit, + from: from, + to: to, + organizationId: organizationId, + workspaceIds: workspaceIds, + 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.IModelRouterClient.CreateGenerateAudio.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateAudio.g.cs index 7b9e3307..8119c183 100644 --- a/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateAudio.g.cs +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateAudio.g.cs @@ -48,6 +48,9 @@ public partial interface IModelRouterClient /// /// 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 audio generation input. The router selects a model and maps these options to it. /// @@ -58,6 +61,7 @@ public partial interface IModelRouterClient string configId, global::Runway.CreateGenerateAudioRequestInput input, string xRunwayVersion = "2024-11-06", + bool? dryRun = default, global::Runway.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateImage.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateImage.g.cs index 842dd58b..31012b09 100644 --- a/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateImage.g.cs +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateImage.g.cs @@ -48,6 +48,9 @@ public partial interface IModelRouterClient /// /// 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 image generation input. The router selects a model and maps these options to it. /// @@ -58,6 +61,7 @@ public partial interface IModelRouterClient string configId, global::Runway.CreateGenerateImageRequestInput input, string xRunwayVersion = "2024-11-06", + bool? dryRun = default, global::Runway.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateVideo.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateVideo.g.cs index 3ec36998..4304b042 100644 --- a/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateGenerateVideo.g.cs @@ -48,6 +48,9 @@ public partial interface IModelRouterClient /// /// 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. /// @@ -58,6 +61,7 @@ public partial interface IModelRouterClient 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); } diff --git a/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRoutersByIdRequests.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRoutersByIdRequests.g.cs new file mode 100644 index 00000000..6c0877c6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRoutersByIdRequests.g.cs @@ -0,0 +1,52 @@ +#nullable enable + +namespace Runway +{ + public partial interface IModelRouterClient + { + /// + /// List Model Router requests
+ /// Paginated routing history for live Model Router requests (successful routes and failures). Playground dry runs are not recorded. + ///
+ /// + /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task GetRoutersByIdRequestsAsync( + global::System.Guid id, + int limit, + string? cursor = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Model Router requests
+ /// Paginated routing history for live Model Router requests (successful routes and failures). Playground dry runs are not recorded. + ///
+ /// + /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task> GetRoutersByIdRequestsAsResponseAsync( + global::System.Guid id, + 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.IOrganizationClient.GetOrganizationWebappAuditLogs.g.cs b/src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappAuditLogs.g.cs new file mode 100644 index 00000000..66b3776d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappAuditLogs.g.cs @@ -0,0 +1,72 @@ +#nullable enable + +namespace Runway +{ + public partial interface IOrganizationClient + { + /// + /// List linked workspace audit logs
+ /// List audit log entries for the linked Runway workspaces you administer, newest first. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task GetOrganizationWebappAuditLogsAsync( + int limit, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string? actions = default, + string? actorEmails = default, + global::System.DateTime? from = default, + global::System.DateTime? to = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List linked workspace audit logs
+ /// List audit log entries for the linked Runway workspaces you administer, newest first. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task> GetOrganizationWebappAuditLogsAsResponseAsync( + int limit, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string? actions = default, + string? actorEmails = default, + global::System.DateTime? from = default, + global::System.DateTime? to = 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.IOrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs b/src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs new file mode 100644 index 00000000..592e0c80 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs @@ -0,0 +1,44 @@ +#nullable enable + +namespace Runway +{ + public partial interface IOrganizationClient + { + /// + /// Get a linked workspace audit log entry
+ /// Get a single audit log entry, including its metadata and forensic details, for a linked Runway workspace you administer. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// + /// 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 GetOrganizationWebappAuditLogsByEventIdAsync( + global::System.Guid eventId, + global::System.Guid? organizationId = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get a linked workspace audit log entry
+ /// Get a single audit log entry, including its metadata and forensic details, for a linked Runway workspace you administer. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// + /// 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> GetOrganizationWebappAuditLogsByEventIdAsResponseAsync( + global::System.Guid eventId, + global::System.Guid? organizationId = 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.IOrganizationClient.GetOrganizationWebappUsage.g.cs b/src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappUsage.g.cs new file mode 100644 index 00000000..375d49fa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IOrganizationClient.GetOrganizationWebappUsage.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +namespace Runway +{ + public partial interface IOrganizationClient + { + /// + /// List linked workspace usage
+ /// List per-generation credit-usage rows for the linked Runway workspaces you administer, newest first. Unlike `/v1/organization/usage` (this API project's own usage), this reports usage from the workspace linked to this API project. Authorized via that account link. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task GetOrganizationWebappUsageAsync( + int limit, + global::System.DateTime from, + global::System.DateTime to, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List linked workspace usage
+ /// List per-generation credit-usage rows for the linked Runway workspaces you administer, newest first. Unlike `/v1/organization/usage` (this API project's own usage), this reports usage from the workspace linked to this API project. Authorized via that account link. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task> GetOrganizationWebappUsageAsResponseAsync( + int limit, + global::System.DateTime from, + global::System.DateTime to, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = 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.IStartGeneratingClient.CreateTextToSpeech.g.cs b/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateTextToSpeech.g.cs index ed47f0a4..5136d8e8 100644 --- a/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateTextToSpeech.g.cs +++ b/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateTextToSpeech.g.cs @@ -22,12 +22,14 @@ public partial interface IStartGeneratingClient /// const client = new RunwayML();
/// const task = await client.textToSpeech
/// .create({
- /// model: 'eleven_multilingual_v2',
- /// promptText: 'The quick brown fox jumps over the lazy dog',
+ /// model: 'eleven_v3',
+ /// promptText: '[laughs] The quick brown fox jumps over the lazy dog',
/// voice: {
/// type: 'runway-preset',
/// presetId: 'Leslie',
/// },
+ /// stability: 0.5,
+ /// languageCode: 'en',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -56,12 +58,14 @@ public partial interface IStartGeneratingClient /// const client = new RunwayML();
/// const task = await client.textToSpeech
/// .create({
- /// model: 'eleven_multilingual_v2',
- /// promptText: 'The quick brown fox jumps over the lazy dog',
+ /// model: 'eleven_v3',
+ /// promptText: '[laughs] The quick brown fox jumps over the lazy dog',
/// voice: {
/// type: 'runway-preset',
/// presetId: 'Leslie',
/// },
+ /// stability: 0.5,
+ /// languageCode: 'en',
/// })
/// .waitForTaskOutput();
/// console.log(task); diff --git a/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateVideoToVideo.g.cs b/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateVideoToVideo.g.cs index f2b0524d..6abc3e42 100644 --- a/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateVideoToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.IStartGeneratingClient.CreateVideoToVideo.g.cs @@ -22,16 +22,15 @@ public partial interface IStartGeneratingClient /// const client = new RunwayML();
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: 'https://example.com/bunny.mp4',
/// promptText: 'string',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -60,16 +59,15 @@ public partial interface IStartGeneratingClient /// const client = new RunwayML();
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: 'https://example.com/bunny.mp4',
/// promptText: 'string',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); diff --git a/src/libs/Runway/Generated/Runway.IUploadsClient.CreateUploads.g.cs b/src/libs/Runway/Generated/Runway.IUploadsClient.CreateUploads.g.cs index 4e2b0905..5f36df9a 100644 --- a/src/libs/Runway/Generated/Runway.IUploadsClient.CreateUploads.g.cs +++ b/src/libs/Runway/Generated/Runway.IUploadsClient.CreateUploads.g.cs @@ -28,16 +28,15 @@ public partial interface IUploadsClient /// // Use the runwayUri in generation requests
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: uploadUri,
/// promptText: 'Add the easter elements to the cat video',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -72,16 +71,15 @@ public partial interface IUploadsClient /// // Use the runwayUri in generation requests
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: uploadUri,
/// promptText: 'Add the easter elements to the cat video',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponse.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponse.g.cs new file mode 100644 index 00000000..e9f86c24 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponse.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Runway.JsonConverters +{ + /// + public class CreateGenerateAudioResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponse 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.CreateGenerateAudioResponseDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioResponseDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? @false = default; + if (discriminator?.DryRun == global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun.False) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated)}"); + @false = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? @true = default; + if (discriminator?.DryRun == global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun.True) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun)}"); + @true = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Runway.CreateGenerateAudioResponse( + discriminator?.DryRun, + @false, + + @true + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponse 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.CreateGenerateAudioResponseRoutedAudioTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.False!, typeInfo); + } + else if (value.IsTrue) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun).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.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs similarity index 75% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs index 551ef62c..56ffcf65 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType Read( + public override global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateAudioResponseRoutingResolvedInputTypeExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateGenerateAudioResponseDiscriminatorDryRunExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType)numValue; + return (global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType); + return default(global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType value, + global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseDiscriminatorDryRunExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullable.g.cs similarity index 76% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullable.g.cs index 167d2b33..9f9ca9ca 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateAudioResponseDiscriminatorDryRunNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType? Read( + public override global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJ var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateAudioResponseRoutingResolvedInputTypeExtensions.ToEnum(stringValue); + return global::Runway.CreateGenerateAudioResponseDiscriminatorDryRunExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJ case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType)numValue; + return (global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType?); + return default(global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJ /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType? value, + global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseDiscriminatorDryRunExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs similarity index 71% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs index ee15e3e9..12d1bf33 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice Read( + public override global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoiceExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice)numValue; + return (global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice); + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice value, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoiceExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullable.g.cs similarity index 72% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullable.g.cs index 0ff17ee1..84e51e15 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor? Read( + public override global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + return global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor)numValue; + return (global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor?); + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor? value, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs similarity index 70% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs index 2b19a7ae..cb8199f7 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor Read( + public override global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor)numValue; + return (global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor); + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor value, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullable.g.cs similarity index 72% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullable.g.cs index 43b531be..68c7e87d 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice? Read( + public override global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoiceExtensions.ToEnum(stringValue); + return global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice)numValue; + return (global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice?); + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateGenerateAudioResponseRoutingResolvedInputVoiceNullable /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice? value, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoiceExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..9405af00 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs new file mode 100644 index 00000000..c4e82fc3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs new file mode 100644 index 00000000..b5f8b8e4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullable.g.cs new file mode 100644 index 00000000..5c75186e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs new file mode 100644 index 00000000..072391de --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullable.g.cs new file mode 100644 index 00000000..bf0eda3d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..245db063 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs new file mode 100644 index 00000000..90c6f387 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponse.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponse.g.cs new file mode 100644 index 00000000..9d441a04 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponse.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Runway.JsonConverters +{ + /// + public class CreateGenerateImageResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateImageResponse 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.CreateGenerateImageResponseDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateImageResponseDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? @false = default; + if (discriminator?.DryRun == global::Runway.CreateGenerateImageResponseDiscriminatorDryRun.False) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated)}"); + @false = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Runway.CreateGenerateImageResponseRoutedImageDryRun? @true = default; + if (discriminator?.DryRun == global::Runway.CreateGenerateImageResponseDiscriminatorDryRun.True) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun)}"); + @true = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Runway.CreateGenerateImageResponse( + discriminator?.DryRun, + @false, + + @true + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateImageResponse 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.CreateGenerateImageResponseRoutedImageTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.False!, typeInfo); + } + else if (value.IsTrue) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun).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.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRun.g.cs similarity index 72% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRun.g.cs index 50475e60..255b2f23 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRun.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateImageResponseDiscriminatorDryRunJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor Read( + public override global::Runway.CreateGenerateImageResponseDiscriminatorDryRun Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateGenerateImageResponseDiscriminatorDryRunExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor)numValue; + return (global::Runway.CreateGenerateImageResponseDiscriminatorDryRun)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor); + return default(global::Runway.CreateGenerateImageResponseDiscriminatorDryRun); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor value, + global::Runway.CreateGenerateImageResponseDiscriminatorDryRun value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateGenerateImageResponseDiscriminatorDryRunExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullable.g.cs similarity index 74% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullable.g.cs index 319dffca..759313f6 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateImageResponseDiscriminatorDryRunNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor? Read( + public override global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + return global::Runway.CreateGenerateImageResponseDiscriminatorDryRunExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor)numValue; + return (global::Runway.CreateGenerateImageResponseDiscriminatorDryRun)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor?); + return default(global::Runway.CreateGenerateImageResponseDiscriminatorDryRun?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor? value, + global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateGenerateImageResponseDiscriminatorDryRunExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..cd58566f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs new file mode 100644 index 00000000..abdc385d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..61bdbf06 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs new file mode 100644 index 00000000..44dac1c4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.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 00000000..d0e9f74b --- /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.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs similarity index 72% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs index c5795e50..c55fbd37 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor Read( + public override global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor)numValue; + return (global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor); + return default(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor value, + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs similarity index 74% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs index 04dc3609..743a07de 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? Read( + public override global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + return global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor)numValue; + return (global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor?); + return default(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? value, + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.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 00000000..975d2c0f --- /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 00000000..d35495af --- /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 00000000..3e853576 --- /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 00000000..692c9e26 --- /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.CreateImageToVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequest.g.cs index 0e9ffa3d..3fdd6b44 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequest.g.cs @@ -49,6 +49,13 @@ public class CreateImageToVideoRequestJsonConverter : global::System.Text.Json.S throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateImageToVideoRequestVeo31Fast)}"); veo31Fast = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Runway.CreateImageToVideoRequestHailuo3? hailuo3 = default; + if (discriminator?.Model == global::Runway.CreateImageToVideoRequestDiscriminatorModel.Hailuo3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestHailuo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateImageToVideoRequestHailuo3)}"); + hailuo3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Runway.CreateImageToVideoRequestHappyhorse10? happyhorse10 = default; if (discriminator?.Model == global::Runway.CreateImageToVideoRequestDiscriminatorModel.Happyhorse10) { @@ -84,12 +91,12 @@ public class CreateImageToVideoRequestJsonConverter : global::System.Text.Json.S throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateImageToVideoRequestGeminiOmniFlash)}"); geminiOmniFlash = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.CreateImageToVideoRequestVeo3? veo3 = default; - if (discriminator?.Model == global::Runway.CreateImageToVideoRequestDiscriminatorModel.Veo3) + global::Runway.CreateImageToVideoRequestSeedance25? seedance25 = default; + if (discriminator?.Model == global::Runway.CreateImageToVideoRequestDiscriminatorModel.Seedance25) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestVeo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateImageToVideoRequestVeo3)}"); - veo3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestSeedance25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateImageToVideoRequestSeedance25)}"); + seedance25 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Runway.CreateImageToVideoRequest( @@ -102,6 +109,8 @@ public class CreateImageToVideoRequestJsonConverter : global::System.Text.Json.S veo31Fast, + hailuo3, + happyhorse10, seedance2, @@ -112,7 +121,7 @@ public class CreateImageToVideoRequestJsonConverter : global::System.Text.Json.S geminiOmniFlash, - veo3 + seedance25 ); return __value; @@ -151,6 +160,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateImageToVideoRequestVeo31Fast).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Veo31Fast!, typeInfo); } + else if (value.IsHailuo3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestHailuo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateImageToVideoRequestHailuo3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hailuo3!, typeInfo); + } else if (value.IsHappyhorse10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestHappyhorse10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -181,11 +196,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateImageToVideoRequestGeminiOmniFlash).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.GeminiOmniFlash!, typeInfo); } - else if (value.IsVeo3) + else if (value.IsSeedance25) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestVeo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateImageToVideoRequestVeo3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Veo3!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateImageToVideoRequestSeedance25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateImageToVideoRequestSeedance25).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Seedance25!, typeInfo); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormat.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormat.g.cs new file mode 100644 index 00000000..1195411c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestGen45OutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestGen45OutputFormat 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.CreateImageToVideoRequestGen45OutputFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestGen45OutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestGen45OutputFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestGen45OutputFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestGen45OutputFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullable.g.cs new file mode 100644 index 00000000..58caac13 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestGen45OutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestGen45OutputFormat? 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.CreateImageToVideoRequestGen45OutputFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestGen45OutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestGen45OutputFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestGen45OutputFormat? 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.CreateImageToVideoRequestGen45OutputFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfile.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfile.g.cs new file mode 100644 index 00000000..2379e3d5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfile.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestGen45ProresProfileJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestGen45ProresProfile 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.CreateImageToVideoRequestGen45ProresProfileExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestGen45ProresProfile)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestGen45ProresProfile); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestGen45ProresProfile value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestGen45ProresProfileExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullable.g.cs new file mode 100644 index 00000000..5dce4871 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestGen45ProresProfileNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestGen45ProresProfile? 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.CreateImageToVideoRequestGen45ProresProfileExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestGen45ProresProfile)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestGen45ProresProfile?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestGen45ProresProfile? 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.CreateImageToVideoRequestGen45ProresProfileExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestVeo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Ratio.g.cs similarity index 79% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestVeo3Ratio.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Ratio.g.cs index ccd45a1e..5bbee8d7 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestVeo3Ratio.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Ratio.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateImageToVideoRequestVeo3RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateImageToVideoRequestHailuo3RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateImageToVideoRequestVeo3Ratio Read( + public override global::Runway.CreateImageToVideoRequestHailuo3Ratio Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateImageToVideoRequestVeo3RatioJsonConverter : global::Sy var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateImageToVideoRequestVeo3RatioExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateImageToVideoRequestHailuo3RatioExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateImageToVideoRequestVeo3RatioJsonConverter : global::Sy case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateImageToVideoRequestVeo3Ratio)numValue; + return (global::Runway.CreateImageToVideoRequestHailuo3Ratio)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateImageToVideoRequestVeo3Ratio); + return default(global::Runway.CreateImageToVideoRequestHailuo3Ratio); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateImageToVideoRequestVeo3RatioJsonConverter : global::Sy /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateImageToVideoRequestVeo3Ratio value, + global::Runway.CreateImageToVideoRequestHailuo3Ratio value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateImageToVideoRequestVeo3RatioExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestHailuo3RatioExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullable.g.cs similarity index 80% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullable.g.cs index 5078aef2..413e4dcd 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateImageToVideoRequestVeo3RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateImageToVideoRequestHailuo3RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateImageToVideoRequestVeo3Ratio? Read( + public override global::Runway.CreateImageToVideoRequestHailuo3Ratio? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateImageToVideoRequestVeo3RatioNullableJsonConverter : gl var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateImageToVideoRequestVeo3RatioExtensions.ToEnum(stringValue); + return global::Runway.CreateImageToVideoRequestHailuo3RatioExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateImageToVideoRequestVeo3RatioNullableJsonConverter : gl case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateImageToVideoRequestVeo3Ratio)numValue; + return (global::Runway.CreateImageToVideoRequestHailuo3Ratio)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateImageToVideoRequestVeo3Ratio?); + return default(global::Runway.CreateImageToVideoRequestHailuo3Ratio?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateImageToVideoRequestVeo3RatioNullableJsonConverter : gl /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateImageToVideoRequestVeo3Ratio? value, + global::Runway.CreateImageToVideoRequestHailuo3Ratio? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateImageToVideoRequestVeo3RatioExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestHailuo3RatioExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Resolution.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Resolution.g.cs new file mode 100644 index 00000000..0a8b3e28 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3Resolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestHailuo3ResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestHailuo3Resolution 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.CreateImageToVideoRequestHailuo3ResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestHailuo3Resolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestHailuo3Resolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestHailuo3Resolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestHailuo3ResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullable.g.cs new file mode 100644 index 00000000..9446c51a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestHailuo3ResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestHailuo3Resolution? 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.CreateImageToVideoRequestHailuo3ResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestHailuo3Resolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestHailuo3Resolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestHailuo3Resolution? 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.CreateImageToVideoRequestHailuo3ResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs new file mode 100644 index 00000000..5b6f7945 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition 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.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullable.g.cs new file mode 100644 index 00000000..58b6fc70 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition? 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.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition? 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.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25Ratio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25Ratio.g.cs new file mode 100644 index 00000000..56a57b8e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25Ratio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestSeedance25RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestSeedance25Ratio 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.CreateImageToVideoRequestSeedance25RatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestSeedance25Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestSeedance25Ratio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestSeedance25Ratio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateImageToVideoRequestSeedance25RatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullable.g.cs new file mode 100644 index 00000000..f51f94e5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateImageToVideoRequestSeedance25RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateImageToVideoRequestSeedance25Ratio? 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.CreateImageToVideoRequestSeedance25RatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateImageToVideoRequestSeedance25Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateImageToVideoRequestSeedance25Ratio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateImageToVideoRequestSeedance25Ratio? 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.CreateImageToVideoRequestSeedance25RatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequest.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequest.g.cs index 51017613..face7e9e 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequest.g.cs @@ -35,12 +35,21 @@ public class CreateTextToSpeechRequestJsonConverter : global::System.Text.Json.S throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2)}"); elevenMultilingualV2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Runway.CreateTextToSpeechRequestElevenV3? elevenV3 = default; + if (discriminator?.Model == global::Runway.CreateTextToSpeechRequestDiscriminatorModel.ElevenV3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestElevenV3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToSpeechRequestElevenV3)}"); + elevenV3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Runway.CreateTextToSpeechRequest( discriminator?.Model, seedAudio, - elevenMultilingualV2 + elevenMultilingualV2, + + elevenV3 ); return __value; @@ -67,6 +76,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ElevenMultilingualV2!, typeInfo); } + else if (value.IsElevenV3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestElevenV3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToSpeechRequestElevenV3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ElevenV3!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs new file mode 100644 index 00000000..3181c0a1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization 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.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullable.g.cs new file mode 100644 index 00000000..516ab1a1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization? 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.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization? 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.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs new file mode 100644 index 00000000..084da896 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..d4b614de --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType? 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType? 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs new file mode 100644 index 00000000..967c58be --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullable.g.cs new file mode 100644 index 00000000..0cefc12d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId? 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId? 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs new file mode 100644 index 00000000..cae732f3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullable.g.cs new file mode 100644 index 00000000..a1043286 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId? 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId? 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequest.g.cs index c1fd404b..dbd461fa 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequest.g.cs @@ -42,6 +42,13 @@ public class CreateTextToVideoRequestJsonConverter : global::System.Text.Json.Se throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToVideoRequestVeo31Fast)}"); veo31Fast = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Runway.CreateTextToVideoRequestHailuo3? hailuo3 = default; + if (discriminator?.Model == global::Runway.CreateTextToVideoRequestDiscriminatorModel.Hailuo3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestHailuo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToVideoRequestHailuo3)}"); + hailuo3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Runway.CreateTextToVideoRequestHappyhorse10? happyhorse10 = default; if (discriminator?.Model == global::Runway.CreateTextToVideoRequestDiscriminatorModel.Happyhorse10) { @@ -77,12 +84,12 @@ public class CreateTextToVideoRequestJsonConverter : global::System.Text.Json.Se throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToVideoRequestGeminiOmniFlash)}"); geminiOmniFlash = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.CreateTextToVideoRequestVeo3? veo3 = default; - if (discriminator?.Model == global::Runway.CreateTextToVideoRequestDiscriminatorModel.Veo3) + global::Runway.CreateTextToVideoRequestSeedance25? seedance25 = default; + if (discriminator?.Model == global::Runway.CreateTextToVideoRequestDiscriminatorModel.Seedance25) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestVeo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToVideoRequestVeo3)}"); - veo3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestSeedance25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToVideoRequestSeedance25)}"); + seedance25 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Runway.CreateTextToVideoRequest( @@ -93,6 +100,8 @@ public class CreateTextToVideoRequestJsonConverter : global::System.Text.Json.Se veo31Fast, + hailuo3, + happyhorse10, seedance2, @@ -103,7 +112,7 @@ public class CreateTextToVideoRequestJsonConverter : global::System.Text.Json.Se geminiOmniFlash, - veo3 + seedance25 ); return __value; @@ -136,6 +145,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToVideoRequestVeo31Fast).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Veo31Fast!, typeInfo); } + else if (value.IsHailuo3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestHailuo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToVideoRequestHailuo3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hailuo3!, typeInfo); + } else if (value.IsHappyhorse10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestHappyhorse10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -166,11 +181,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToVideoRequestGeminiOmniFlash).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.GeminiOmniFlash!, typeInfo); } - else if (value.IsVeo3) + else if (value.IsSeedance25) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestVeo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToVideoRequestVeo3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Veo3!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToVideoRequestSeedance25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToVideoRequestSeedance25).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Seedance25!, typeInfo); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormat.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormat.g.cs new file mode 100644 index 00000000..8dba93ad --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestGen45OutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestGen45OutputFormat 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.CreateTextToVideoRequestGen45OutputFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestGen45OutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestGen45OutputFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestGen45OutputFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToVideoRequestGen45OutputFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullable.g.cs new file mode 100644 index 00000000..24200aa6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestGen45OutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestGen45OutputFormat? 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.CreateTextToVideoRequestGen45OutputFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestGen45OutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestGen45OutputFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestGen45OutputFormat? 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.CreateTextToVideoRequestGen45OutputFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfile.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfile.g.cs new file mode 100644 index 00000000..8a4d7044 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfile.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestGen45ProresProfileJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestGen45ProresProfile 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.CreateTextToVideoRequestGen45ProresProfileExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestGen45ProresProfile)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestGen45ProresProfile); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestGen45ProresProfile value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToVideoRequestGen45ProresProfileExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullable.g.cs new file mode 100644 index 00000000..5c20ba7a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestGen45ProresProfileNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestGen45ProresProfile? 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.CreateTextToVideoRequestGen45ProresProfileExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestGen45ProresProfile)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestGen45ProresProfile?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestGen45ProresProfile? 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.CreateTextToVideoRequestGen45ProresProfileExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestVeo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Ratio.g.cs similarity index 76% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestVeo3Ratio.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Ratio.g.cs index fb3d87b3..d4753342 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestVeo3Ratio.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Ratio.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateTextToVideoRequestVeo3RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateTextToVideoRequestHailuo3RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateTextToVideoRequestVeo3Ratio Read( + public override global::Runway.CreateTextToVideoRequestHailuo3Ratio Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateTextToVideoRequestVeo3RatioJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateTextToVideoRequestVeo3RatioExtensions.ToEnum(stringValue) ?? default; + return global::Runway.CreateTextToVideoRequestHailuo3RatioExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateTextToVideoRequestVeo3RatioJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateTextToVideoRequestVeo3Ratio)numValue; + return (global::Runway.CreateTextToVideoRequestHailuo3Ratio)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateTextToVideoRequestVeo3Ratio); + return default(global::Runway.CreateTextToVideoRequestHailuo3Ratio); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateTextToVideoRequestVeo3RatioJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateTextToVideoRequestVeo3Ratio value, + global::Runway.CreateTextToVideoRequestHailuo3Ratio value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Runway.CreateTextToVideoRequestVeo3RatioExtensions.ToValueString(value)); + writer.WriteStringValue(global::Runway.CreateTextToVideoRequestHailuo3RatioExtensions.ToValueString(value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullable.g.cs similarity index 77% rename from src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullable.g.cs rename to src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullable.g.cs index 0fe066a1..a84a35b4 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullable.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullable.g.cs @@ -3,10 +3,10 @@ namespace Runway.JsonConverters { /// - public sealed class CreateTextToVideoRequestVeo3RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateTextToVideoRequestHailuo3RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Runway.CreateTextToVideoRequestVeo3Ratio? Read( + public override global::Runway.CreateTextToVideoRequestHailuo3Ratio? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class CreateTextToVideoRequestVeo3RatioNullableJsonConverter : glo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Runway.CreateTextToVideoRequestVeo3RatioExtensions.ToEnum(stringValue); + return global::Runway.CreateTextToVideoRequestHailuo3RatioExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateTextToVideoRequestVeo3RatioNullableJsonConverter : glo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Runway.CreateTextToVideoRequestVeo3Ratio)numValue; + return (global::Runway.CreateTextToVideoRequestHailuo3Ratio)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Runway.CreateTextToVideoRequestVeo3Ratio?); + return default(global::Runway.CreateTextToVideoRequestHailuo3Ratio?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateTextToVideoRequestVeo3RatioNullableJsonConverter : glo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Runway.CreateTextToVideoRequestVeo3Ratio? value, + global::Runway.CreateTextToVideoRequestHailuo3Ratio? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Runway.CreateTextToVideoRequestVeo3RatioExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Runway.CreateTextToVideoRequestHailuo3RatioExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Resolution.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Resolution.g.cs new file mode 100644 index 00000000..f1db9676 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3Resolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestHailuo3ResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestHailuo3Resolution 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.CreateTextToVideoRequestHailuo3ResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestHailuo3Resolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestHailuo3Resolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestHailuo3Resolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToVideoRequestHailuo3ResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullable.g.cs new file mode 100644 index 00000000..8f89059f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestHailuo3ResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestHailuo3Resolution? 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.CreateTextToVideoRequestHailuo3ResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestHailuo3Resolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestHailuo3Resolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestHailuo3Resolution? 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.CreateTextToVideoRequestHailuo3ResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25Ratio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25Ratio.g.cs new file mode 100644 index 00000000..44d13fa8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25Ratio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestSeedance25RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestSeedance25Ratio 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.CreateTextToVideoRequestSeedance25RatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestSeedance25Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestSeedance25Ratio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestSeedance25Ratio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateTextToVideoRequestSeedance25RatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullable.g.cs new file mode 100644 index 00000000..e519f07f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateTextToVideoRequestSeedance25RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateTextToVideoRequestSeedance25Ratio? 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.CreateTextToVideoRequestSeedance25RatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateTextToVideoRequestSeedance25Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateTextToVideoRequestSeedance25Ratio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateTextToVideoRequestSeedance25Ratio? 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.CreateTextToVideoRequestSeedance25RatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequest.g.cs index 2596e1ba..25e08b33 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequest.g.cs @@ -28,6 +28,13 @@ public class CreateVideoToVideoRequestJsonConverter : global::System.Text.Json.S throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateVideoToVideoRequestVariant1)}"); aleph2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Runway.CreateVideoToVideoRequestHailuo3? hailuo3 = default; + if (discriminator?.Model == global::Runway.CreateVideoToVideoRequestDiscriminatorModel.Hailuo3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateVideoToVideoRequestHailuo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateVideoToVideoRequestHailuo3)}"); + hailuo3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Runway.CreateVideoToVideoRequestSeedance2? seedance2 = default; if (discriminator?.Model == global::Runway.CreateVideoToVideoRequestDiscriminatorModel.Seedance2) { @@ -56,18 +63,29 @@ public class CreateVideoToVideoRequestJsonConverter : global::System.Text.Json.S throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateVideoToVideoRequestGeminiOmniFlash)}"); geminiOmniFlash = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Runway.CreateVideoToVideoRequestSeedance25? seedance25 = default; + if (discriminator?.Model == global::Runway.CreateVideoToVideoRequestDiscriminatorModel.Seedance25) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateVideoToVideoRequestSeedance25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateVideoToVideoRequestSeedance25)}"); + seedance25 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Runway.CreateVideoToVideoRequest( discriminator?.Model, aleph2, + hailuo3, + seedance2, seedance2Fast, seedance2Mini, - geminiOmniFlash + geminiOmniFlash, + + seedance25 ); return __value; @@ -88,6 +106,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateVideoToVideoRequestVariant1).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Aleph2!, typeInfo); } + else if (value.IsHailuo3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateVideoToVideoRequestHailuo3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateVideoToVideoRequestHailuo3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hailuo3!, typeInfo); + } else if (value.IsSeedance2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateVideoToVideoRequestSeedance2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -112,6 +136,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateVideoToVideoRequestGeminiOmniFlash).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.GeminiOmniFlash!, typeInfo); } + else if (value.IsSeedance25) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateVideoToVideoRequestSeedance25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateVideoToVideoRequestSeedance25).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Seedance25!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Ratio.g.cs new file mode 100644 index 00000000..7f13f5e6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Ratio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestHailuo3RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestHailuo3Ratio 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.CreateVideoToVideoRequestHailuo3RatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestHailuo3Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestHailuo3Ratio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestHailuo3Ratio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateVideoToVideoRequestHailuo3RatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullable.g.cs new file mode 100644 index 00000000..a98262a5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestHailuo3RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestHailuo3Ratio? 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.CreateVideoToVideoRequestHailuo3RatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestHailuo3Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestHailuo3Ratio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestHailuo3Ratio? 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.CreateVideoToVideoRequestHailuo3RatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Resolution.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Resolution.g.cs new file mode 100644 index 00000000..5b42da36 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3Resolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestHailuo3ResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestHailuo3Resolution 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.CreateVideoToVideoRequestHailuo3ResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestHailuo3Resolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestHailuo3Resolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestHailuo3Resolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateVideoToVideoRequestHailuo3ResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullable.g.cs new file mode 100644 index 00000000..15b6b8ed --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestHailuo3ResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestHailuo3Resolution? 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.CreateVideoToVideoRequestHailuo3ResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestHailuo3Resolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestHailuo3Resolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestHailuo3Resolution? 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.CreateVideoToVideoRequestHailuo3ResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Mode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Mode.g.cs new file mode 100644 index 00000000..1fd56c0f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Mode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestSeedance25ModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestSeedance25Mode 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.CreateVideoToVideoRequestSeedance25ModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestSeedance25Mode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestSeedance25Mode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestSeedance25Mode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateVideoToVideoRequestSeedance25ModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullable.g.cs new file mode 100644 index 00000000..f661752c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestSeedance25ModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestSeedance25Mode? 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.CreateVideoToVideoRequestSeedance25ModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestSeedance25Mode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestSeedance25Mode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestSeedance25Mode? 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.CreateVideoToVideoRequestSeedance25ModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Ratio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Ratio.g.cs new file mode 100644 index 00000000..23195656 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25Ratio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestSeedance25RatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestSeedance25Ratio 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.CreateVideoToVideoRequestSeedance25RatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestSeedance25Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestSeedance25Ratio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestSeedance25Ratio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateVideoToVideoRequestSeedance25RatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullable.g.cs new file mode 100644 index 00000000..0b35b7ff --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestSeedance25RatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestSeedance25Ratio? 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.CreateVideoToVideoRequestSeedance25RatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestSeedance25Ratio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestSeedance25Ratio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestSeedance25Ratio? 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.CreateVideoToVideoRequestSeedance25RatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormat.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormat.g.cs new file mode 100644 index 00000000..22ae7125 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormat.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestVariant1OutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestVariant1OutputFormat 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.CreateVideoToVideoRequestVariant1OutputFormatExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestVariant1OutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestVariant1OutputFormat); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestVariant1OutputFormat value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateVideoToVideoRequestVariant1OutputFormatExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullable.g.cs new file mode 100644 index 00000000..f6a23093 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestVariant1OutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestVariant1OutputFormat? 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.CreateVideoToVideoRequestVariant1OutputFormatExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestVariant1OutputFormat)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestVariant1OutputFormat?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestVariant1OutputFormat? 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.CreateVideoToVideoRequestVariant1OutputFormatExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfile.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfile.g.cs new file mode 100644 index 00000000..e2def0dc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfile.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestVariant1ProresProfileJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestVariant1ProresProfile 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.CreateVideoToVideoRequestVariant1ProresProfileExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestVariant1ProresProfile)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestVariant1ProresProfile); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestVariant1ProresProfile value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateVideoToVideoRequestVariant1ProresProfileExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullable.g.cs new file mode 100644 index 00000000..cdee1051 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateVideoToVideoRequestVariant1ProresProfileNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateVideoToVideoRequestVariant1ProresProfile? 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.CreateVideoToVideoRequestVariant1ProresProfileExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateVideoToVideoRequestVariant1ProresProfile)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateVideoToVideoRequestVariant1ProresProfile?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateVideoToVideoRequestVariant1ProresProfile? 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.CreateVideoToVideoRequestVariant1ProresProfileExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseAction.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseAction.g.cs new file mode 100644 index 00000000..4fbd5a78 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseAction.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetOrganizationWebappAuditLogsResponseActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetOrganizationWebappAuditLogsResponseAction 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.GetOrganizationWebappAuditLogsResponseActionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetOrganizationWebappAuditLogsResponseAction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetOrganizationWebappAuditLogsResponseAction); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetOrganizationWebappAuditLogsResponseAction value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetOrganizationWebappAuditLogsResponseActionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullable.g.cs new file mode 100644 index 00000000..4c0d62d7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetOrganizationWebappAuditLogsResponseActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetOrganizationWebappAuditLogsResponseAction? 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.GetOrganizationWebappAuditLogsResponseActionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetOrganizationWebappAuditLogsResponseAction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetOrganizationWebappAuditLogsResponseAction?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetOrganizationWebappAuditLogsResponseAction? 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.GetOrganizationWebappAuditLogsResponseActionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs new file mode 100644 index 00000000..bedbb99d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction 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.GetOrganizationWebappAuditLogsResponseDataItemActionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullable.g.cs new file mode 100644 index 00000000..7ab8cc94 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetOrganizationWebappAuditLogsResponseDataItemActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction? 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.GetOrganizationWebappAuditLogsResponseDataItemActionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction? 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.GetOrganizationWebappAuditLogsResponseDataItemActionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemType.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemType.g.cs new file mode 100644 index 00000000..9a22f400 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetOrganizationWebappUsageResponseDataItemTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetOrganizationWebappUsageResponseDataItemType 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.GetOrganizationWebappUsageResponseDataItemTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetOrganizationWebappUsageResponseDataItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetOrganizationWebappUsageResponseDataItemType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetOrganizationWebappUsageResponseDataItemType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetOrganizationWebappUsageResponseDataItemTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullable.g.cs new file mode 100644 index 00000000..fdfcbf88 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetOrganizationWebappUsageResponseDataItemTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetOrganizationWebappUsageResponseDataItemType? 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.GetOrganizationWebappUsageResponseDataItemTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetOrganizationWebappUsageResponseDataItemType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetOrganizationWebappUsageResponseDataItemType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetOrganizationWebappUsageResponseDataItemType? 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.GetOrganizationWebappUsageResponseDataItemTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs new file mode 100644 index 00000000..4da95927 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemEmptiedByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem 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.GetRoutersRequestsResponseDataItemEmptiedByItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullable.g.cs new file mode 100644 index 00000000..ab35d137 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemEmptiedByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem? 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.GetRoutersRequestsResponseDataItemEmptiedByItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem? 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.GetRoutersRequestsResponseDataItemEmptiedByItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs new file mode 100644 index 00000000..524dd800 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..e018f9ef --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs new file mode 100644 index 00000000..6ff33f7a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullable.g.cs new file mode 100644 index 00000000..621ba3fb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs new file mode 100644 index 00000000..031be9c1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullable.g.cs new file mode 100644 index 00000000..dc513b02 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2.g.cs new file mode 100644 index 00000000..92256b54 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemReasonCode2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemReasonCode2 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.GetRoutersRequestsResponseDataItemReasonCode2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemReasonCode2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemReasonCode2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemReasonCode2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersRequestsResponseDataItemReasonCode2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2Nullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2Nullable.g.cs new file mode 100644 index 00000000..7f4079d0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemReasonCode2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemReasonCode2? 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.GetRoutersRequestsResponseDataItemReasonCode2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemReasonCode2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemReasonCode2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemReasonCode2? 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.GetRoutersRequestsResponseDataItemReasonCode2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatus.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatus.g.cs new file mode 100644 index 00000000..600c2af8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemStatus 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.GetRoutersRequestsResponseDataItemStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersRequestsResponseDataItemStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullable.g.cs new file mode 100644 index 00000000..4c4c059b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersRequestsResponseDataItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersRequestsResponseDataItemStatus? 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.GetRoutersRequestsResponseDataItemStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersRequestsResponseDataItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersRequestsResponseDataItemStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersRequestsResponseDataItemStatus? 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.GetRoutersRequestsResponseDataItemStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PipelineItem.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PipelineItem.g.cs new file mode 100644 index 00000000..c8da4dc3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PipelineItem.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Runway.JsonConverters +{ + /// + public class PipelineItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PipelineItem 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? filter = default; + if (discriminator?.Type == global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Filter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1)}"); + filter = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? capacity = default; + if (discriminator?.Type == global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Capacity) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2)}"); + capacity = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? rank = default; + if (discriminator?.Type == global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Rank) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3)}"); + rank = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Runway.PipelineItem( + discriminator?.Type, + filter, + + capacity, + + rank + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PipelineItem 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.IsFilter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Filter!, typeInfo); + } + else if (value.IsCapacity) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Capacity!, typeInfo); + } + else if (value.IsRank) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Rank!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice10.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice10.g.cs index 74fc3c3a..14b6c481 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice10.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice10.g.cs @@ -17,22 +17,22 @@ public class Voice10JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType.Custom) + global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice11.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice11.g.cs index 2b451427..8f955777 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice11.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice11.g.cs @@ -17,22 +17,22 @@ public class Voice11JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType.Custom) + global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice12.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice12.g.cs index 1727c0ff..5499ae08 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice12.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice12.g.cs @@ -17,22 +17,22 @@ public class Voice12JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType.Custom) + global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice13.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice13.g.cs index 1475b2e3..d13bb3cd 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice13.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice13.g.cs @@ -17,22 +17,22 @@ public class Voice13JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType.Custom) + global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice14.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice14.g.cs index 2f783dcd..dbac64dc 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice14.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice14.g.cs @@ -17,22 +17,22 @@ public class Voice14JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType.Custom) + global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice15.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice15.g.cs index 9438015f..bd7635fd 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice15.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice15.g.cs @@ -17,22 +17,22 @@ public class Voice15JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType.Custom) + global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice16.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice16.g.cs index d1effe84..dcc363e0 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice16.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice16.g.cs @@ -17,22 +17,22 @@ public class Voice16JsonConverter : global::System.Text.Json.Serialization.JsonC var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType.Custom) + global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice17.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice17.g.cs new file mode 100644 index 00000000..a5eb1c0d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice17.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Runway.JsonConverters +{ + /// + public class Voice17JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.Voice17 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.PatchAvatarsResponseAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); + runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Runway.Voice17( + discriminator?.Type, + runwayLivePreset, + + custom + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.Voice17 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.IsRunwayLivePreset) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); + } + else if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice4.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice4.g.cs index 90780be9..888d5728 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice4.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice4.g.cs @@ -17,28 +17,28 @@ public class Voice4JsonConverter : global::System.Text.Json.Serialization.JsonCo var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? preset = default; - if (discriminator?.Type == global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType.Preset) + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? seedPreset = default; + if (discriminator?.Type == global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.SeedPreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice)}"); - preset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice)}"); + seedPreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? referenceAudio = default; - if (discriminator?.Type == global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType.ReferenceAudio) + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? referenceAudio = default; + if (discriminator?.Type == global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.ReferenceAudio) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice)}"); referenceAudio = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Runway.Voice4( discriminator?.Type, - preset, + seedPreset, referenceAudio ); @@ -55,16 +55,16 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsPreset) + if (value.IsSeedPreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Preset!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SeedPreset!, typeInfo); } else if (value.IsReferenceAudio) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReferenceAudio!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice5.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice5.g.cs index b366ee21..a091a8d2 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice5.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice5.g.cs @@ -17,30 +17,30 @@ public class Voice5JsonConverter : global::System.Text.Json.Serialization.JsonCo var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? preset = default; + if (discriminator?.Type == global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType.Preset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); - runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice)}"); + preset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType.Custom) + global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? referenceAudio = default; + if (discriminator?.Type == global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType.ReferenceAudio) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse)}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice)}"); + referenceAudio = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::Runway.Voice5( discriminator?.Type, - runwayLivePreset, + preset, - custom + referenceAudio ); return __value; @@ -55,17 +55,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsRunwayLivePreset) + if (value.IsPreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Preset!, typeInfo); } - else if (value.IsCustom) + else if (value.IsReferenceAudio) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ReferenceAudio!, typeInfo); } } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice6.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice6.g.cs index 1db66ecd..baa84d1f 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice6.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice6.g.cs @@ -17,22 +17,22 @@ public class Voice6JsonConverter : global::System.Text.Json.Serialization.JsonCo var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType.Custom) + global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice7.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice7.g.cs index 144445f8..06730842 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice7.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice7.g.cs @@ -17,22 +17,22 @@ public class Voice7JsonConverter : global::System.Text.Json.Serialization.JsonCo var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType.Custom) + global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice8.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice8.g.cs index b1e9c6b4..dded0b3e 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice8.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice8.g.cs @@ -17,22 +17,22 @@ public class Voice8JsonConverter : global::System.Text.Json.Serialization.JsonCo var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType.Custom) + global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.Voice9.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.Voice9.g.cs index b877a3fa..4476ed31 100644 --- a/src/libs/Runway/Generated/Runway.JsonConverters.Voice9.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonConverters.Voice9.g.cs @@ -17,22 +17,22 @@ public class Voice9JsonConverter : global::System.Text.Json.Serialization.JsonCo var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; - if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType.RunwayLivePreset) + global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset = default; + if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType.RunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse)}"); runwayLivePreset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom = default; - if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType.Custom) + global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom = default; + if (discriminator?.Type == global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType.Custom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse)}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } @@ -57,14 +57,14 @@ public override void Write( if (value.IsRunwayLivePreset) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunwayLivePreset!, typeInfo); } else if (value.IsCustom) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); } } diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs index 76461632..451a2cec 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs @@ -97,6 +97,14 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioNullableJsonConverter), @@ -121,6 +129,14 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionNullableJsonConverter), @@ -153,9 +169,13 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter), - typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelJsonConverter), @@ -169,6 +189,14 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioNullableJsonConverter), @@ -177,6 +205,14 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioNullableJsonConverter), @@ -197,9 +233,9 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioJsonConverter), - typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelJsonConverter), @@ -213,6 +249,22 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioNullableJsonConverter), @@ -225,6 +277,14 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelJsonConverter), typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelNullableJsonConverter), @@ -361,6 +421,10 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeNullableJsonConverter), @@ -377,6 +441,18 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelNullableJsonConverter), @@ -729,9 +805,17 @@ namespace Runway typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1PipelineItemFilterJsonConverter), @@ -741,9 +825,17 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterJsonConverter), @@ -753,17 +845,33 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterJsonConverter), @@ -773,6 +881,18 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), @@ -813,6 +933,30 @@ namespace Runway typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2JsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2NullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), @@ -873,11 +1017,13 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestJsonConverter), + typeof(global::Runway.JsonConverters.Voice4JsonConverter), + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestJsonConverter), typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestJsonConverter), - typeof(global::Runway.JsonConverters.Voice4JsonConverter), + typeof(global::Runway.JsonConverters.Voice5JsonConverter), typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestJsonConverter), @@ -887,20 +1033,20 @@ namespace Runway typeof(global::Runway.JsonConverters.DataItemJsonConverter), - typeof(global::Runway.JsonConverters.Voice5JsonConverter), - typeof(global::Runway.JsonConverters.Voice6JsonConverter), typeof(global::Runway.JsonConverters.Voice7JsonConverter), - typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), - typeof(global::Runway.JsonConverters.Voice8JsonConverter), + typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), + typeof(global::Runway.JsonConverters.Voice9JsonConverter), typeof(global::Runway.JsonConverters.Voice10JsonConverter), + typeof(global::Runway.JsonConverters.Voice11JsonConverter), + typeof(global::Runway.JsonConverters.AvatarVariant1JsonConverter), typeof(global::Runway.JsonConverters.GetAvatarConversationsResponse2JsonConverter), @@ -913,24 +1059,32 @@ namespace Runway typeof(global::Runway.JsonConverters.GetAvatarsResponse2JsonConverter), - typeof(global::Runway.JsonConverters.Voice11JsonConverter), - typeof(global::Runway.JsonConverters.Voice12JsonConverter), typeof(global::Runway.JsonConverters.Voice13JsonConverter), - typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), - typeof(global::Runway.JsonConverters.Voice14JsonConverter), + typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), + typeof(global::Runway.JsonConverters.Voice15JsonConverter), typeof(global::Runway.JsonConverters.Voice16JsonConverter), + typeof(global::Runway.JsonConverters.Voice17JsonConverter), + typeof(global::Runway.JsonConverters.GetRealtimeSessionsResponseJsonConverter), typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseJsonConverter), + + typeof(global::Runway.JsonConverters.PipelineItemJsonConverter), + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -947,6 +1101,8 @@ namespace Runway typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), @@ -957,7 +1113,7 @@ namespace Runway typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), - typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), @@ -971,12 +1127,50 @@ namespace Runway typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -1078,6 +1272,8 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45Ratio), TypeInfoPropertyName = "CreateImageToVideoRequestGen45Ratio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45ContentModeration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45ContentModerationPublicFigureThreshold), TypeInfoPropertyName = "CreateImageToVideoRequestGen45ContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45OutputFormat), TypeInfoPropertyName = "CreateImageToVideoRequestGen45OutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45ProresProfile), TypeInfoPropertyName = "CreateImageToVideoRequestGen45ProresProfile2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen4Turbo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListCreateImageToVideoRequestGen4TurboPromptImagePromptImage2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1097,6 +1293,12 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition), TypeInfoPropertyName = "CreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastRatio), TypeInfoPropertyName = "CreateImageToVideoRequestVeo31FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHailuo3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHailuo3Resolution), TypeInfoPropertyName = "CreateImageToVideoRequestHailuo3Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHailuo3Ratio), TypeInfoPropertyName = "CreateImageToVideoRequestHailuo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHappyhorse10))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListCreateImageToVideoRequestHappyhorse10PromptImagePromptImage2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1131,11 +1333,14 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGeminiOmniFlashPromptImagePromptImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGeminiOmniFlashRatio), TypeInfoPropertyName = "CreateImageToVideoRequestGeminiOmniFlashRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListCreateImageToVideoRequestVeo3PromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo3Ratio), TypeInfoPropertyName = "CreateImageToVideoRequestVeo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>), TypeInfoPropertyName = "AnyOfStringIListCreateImageToVideoRequestSeedance25PromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition), TypeInfoPropertyName = "CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25Ratio), TypeInfoPropertyName = "CreateImageToVideoRequestSeedance25Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25ReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestDiscriminatorModel), TypeInfoPropertyName = "CreateImageToVideoRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequest), TypeInfoPropertyName = "CreateTextToVideoRequest2")] @@ -1143,10 +1348,21 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45Ratio), TypeInfoPropertyName = "CreateTextToVideoRequestGen45Ratio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45ContentModeration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold), TypeInfoPropertyName = "CreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45OutputFormat), TypeInfoPropertyName = "CreateTextToVideoRequestGen45OutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45ProresProfile), TypeInfoPropertyName = "CreateTextToVideoRequestGen45ProresProfile2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31Ratio), TypeInfoPropertyName = "CreateTextToVideoRequestVeo31Ratio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31Fast))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31FastRatio), TypeInfoPropertyName = "CreateTextToVideoRequestVeo31FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3Resolution), TypeInfoPropertyName = "CreateTextToVideoRequestHailuo3Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3Ratio), TypeInfoPropertyName = "CreateTextToVideoRequestHailuo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3Reference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3ReferenceVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3ReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHappyhorse10))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHappyhorse10Ratio), TypeInfoPropertyName = "CreateTextToVideoRequestHappyhorse10Ratio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2))] @@ -1175,8 +1391,14 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2MiniReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGeminiOmniFlash))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGeminiOmniFlashRatio), TypeInfoPropertyName = "CreateTextToVideoRequestGeminiOmniFlashRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo3Ratio), TypeInfoPropertyName = "CreateTextToVideoRequestVeo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance25))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance25Ratio), TypeInfoPropertyName = "CreateTextToVideoRequestSeedance25Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance25Reference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance25ReferenceVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance25ReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestDiscriminatorModel), TypeInfoPropertyName = "CreateTextToVideoRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequest), TypeInfoPropertyName = "CreateVideoToVideoRequest2")] @@ -1190,6 +1412,17 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1TargetAspectRatio), TypeInfoPropertyName = "CreateVideoToVideoRequestVariant1TargetAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1ContentModeration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold), TypeInfoPropertyName = "CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1OutputFormat), TypeInfoPropertyName = "CreateVideoToVideoRequestVariant1OutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1ProresProfile), TypeInfoPropertyName = "CreateVideoToVideoRequestVariant1ProresProfile2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3Resolution), TypeInfoPropertyName = "CreateVideoToVideoRequestHailuo3Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3Ratio), TypeInfoPropertyName = "CreateVideoToVideoRequestHailuo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3Reference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3ReferenceVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3ReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2Ratio), TypeInfoPropertyName = "CreateVideoToVideoRequestSeedance2Ratio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1217,6 +1450,15 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestGeminiOmniFlash))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestGeminiOmniFlashReference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25Mode), TypeInfoPropertyName = "CreateVideoToVideoRequestSeedance25Mode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25Ratio), TypeInfoPropertyName = "CreateVideoToVideoRequestSeedance25Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25Reference))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25ReferenceVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25ReferenceAudioItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestDiscriminatorModel), TypeInfoPropertyName = "CreateVideoToVideoRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequest), TypeInfoPropertyName = "CreateTextToImageRequest2")] @@ -1311,6 +1553,9 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechRequestDiscriminatorModel), TypeInfoPropertyName = "CreateSpeechToSpeechRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequest), TypeInfoPropertyName = "CreateTextToSpeechRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice4), TypeInfoPropertyName = "Voice42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId), TypeInfoPropertyName = "CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType), TypeInfoPropertyName = "CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType2")] @@ -1320,6 +1565,12 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId), TypeInfoPropertyName = "CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorType), TypeInfoPropertyName = "CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId), TypeInfoPropertyName = "CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType), TypeInfoPropertyName = "CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization), TypeInfoPropertyName = "CreateTextToSpeechRequestElevenV3ApplyTextNormalization2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestDiscriminatorModel), TypeInfoPropertyName = "CreateTextToSpeechRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingRequest), TypeInfoPropertyName = "CreateVoiceDubbingRequest2")] @@ -1362,7 +1613,7 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputType), TypeInfoPropertyName = "CreateGenerateAudioRequestInputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice4), TypeInfoPropertyName = "Voice42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice5), TypeInfoPropertyName = "Voice52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetId), TypeInfoPropertyName = "CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice))] @@ -1422,63 +1673,6 @@ namespace Runway [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))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromVoiceFromText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromVoiceFromTextModel), TypeInfoPropertyName = "CreateVoicesRequestFromVoiceFromTextModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromDiscriminatorType), TypeInfoPropertyName = "CreateVoicesRequestFromDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewRequestModel), TypeInfoPropertyName = "CreateVoicesPreviewRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.NodeOutputs), TypeInfoPropertyName = "NodeOutputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputPrimitive))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfStringDoubleBoolean2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputVideo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType), TypeInfoPropertyName = "CreateWorkflowsRequestNodeOutputsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsSort), TypeInfoPropertyName = "GetDocumentsSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsOrder), TypeInfoPropertyName = "GetDocumentsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem), TypeInfoPropertyName = "DataItem2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice5), TypeInfoPropertyName = "Voice52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice6), TypeInfoPropertyName = "Voice62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice7), TypeInfoPropertyName = "Voice72")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus), TypeInfoPropertyName = "GetAvatarsResponseDataItemDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponse), TypeInfoPropertyName = "CreateAvatarsResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessing))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1574,6 +1768,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioNullableJsonConverter), @@ -1598,6 +1800,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionNullableJsonConverter), @@ -1630,9 +1840,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelJsonConverter), @@ -1646,6 +1860,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioNullableJsonConverter), @@ -1654,6 +1876,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioNullableJsonConverter), @@ -1674,9 +1904,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioJsonConverter), - typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelJsonConverter), @@ -1690,6 +1920,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioNullableJsonConverter), @@ -1702,6 +1948,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelJsonConverter), typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelNullableJsonConverter), @@ -1838,6 +2092,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeNullableJsonConverter), @@ -1854,6 +2112,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelNullableJsonConverter), @@ -2206,9 +2476,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1PipelineItemFilterJsonConverter), @@ -2218,9 +2496,17 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterJsonConverter), @@ -2230,17 +2516,33 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterJsonConverter), @@ -2250,6 +2552,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), @@ -2290,6 +2604,30 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2JsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2NullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), @@ -2350,11 +2688,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestJsonConverter), + typeof(global::Runway.JsonConverters.Voice4JsonConverter), + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestJsonConverter), typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestJsonConverter), - typeof(global::Runway.JsonConverters.Voice4JsonConverter), + typeof(global::Runway.JsonConverters.Voice5JsonConverter), typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestJsonConverter), @@ -2364,20 +2704,20 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.DataItemJsonConverter), - typeof(global::Runway.JsonConverters.Voice5JsonConverter), - typeof(global::Runway.JsonConverters.Voice6JsonConverter), typeof(global::Runway.JsonConverters.Voice7JsonConverter), - typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), - typeof(global::Runway.JsonConverters.Voice8JsonConverter), - typeof(global::Runway.JsonConverters.Voice9JsonConverter), + typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), + + typeof(global::Runway.JsonConverters.Voice9JsonConverter), typeof(global::Runway.JsonConverters.Voice10JsonConverter), + typeof(global::Runway.JsonConverters.Voice11JsonConverter), + typeof(global::Runway.JsonConverters.AvatarVariant1JsonConverter), typeof(global::Runway.JsonConverters.GetAvatarConversationsResponse2JsonConverter), @@ -2390,24 +2730,32 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.GetAvatarsResponse2JsonConverter), - typeof(global::Runway.JsonConverters.Voice11JsonConverter), - typeof(global::Runway.JsonConverters.Voice12JsonConverter), typeof(global::Runway.JsonConverters.Voice13JsonConverter), - typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), - typeof(global::Runway.JsonConverters.Voice14JsonConverter), + typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), + typeof(global::Runway.JsonConverters.Voice15JsonConverter), typeof(global::Runway.JsonConverters.Voice16JsonConverter), + typeof(global::Runway.JsonConverters.Voice17JsonConverter), + typeof(global::Runway.JsonConverters.GetRealtimeSessionsResponseJsonConverter), typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseJsonConverter), + + typeof(global::Runway.JsonConverters.PipelineItemJsonConverter), + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -2424,6 +2772,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>), @@ -2434,7 +2784,7 @@ 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), @@ -2448,29 +2798,126 @@ 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), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] + [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.CreateRoutersRequestSettingsFallback))] + [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.PatchRoutersRequestSettingsFallback))] + [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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromVoiceFromText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromVoiceFromTextModel), TypeInfoPropertyName = "CreateVoicesRequestFromVoiceFromTextModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromDiscriminatorType), TypeInfoPropertyName = "CreateVoicesRequestFromDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewRequestModel), TypeInfoPropertyName = "CreateVoicesPreviewRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.NodeOutputs), TypeInfoPropertyName = "NodeOutputs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputPrimitive))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfStringDoubleBoolean2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType), TypeInfoPropertyName = "CreateWorkflowsRequestNodeOutputsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsSort), TypeInfoPropertyName = "GetDocumentsSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsOrder), TypeInfoPropertyName = "GetDocumentsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem), TypeInfoPropertyName = "DataItem2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice6), TypeInfoPropertyName = "Voice62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReady))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice7), TypeInfoPropertyName = "Voice72")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice8), TypeInfoPropertyName = "Voice82")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus), TypeInfoPropertyName = "GetAvatarsResponseDataItemDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponse), TypeInfoPropertyName = "CreateAvatarsResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice9), TypeInfoPropertyName = "Voice92")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType), TypeInfoPropertyName = "CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice9), TypeInfoPropertyName = "Voice92")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice10), TypeInfoPropertyName = "Voice102")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType), TypeInfoPropertyName = "CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice10), TypeInfoPropertyName = "Voice102")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice11), TypeInfoPropertyName = "Voice112")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse))] @@ -2544,21 +2991,21 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDiscriminatorStatus), TypeInfoPropertyName = "GetAvatarConversationsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponse2), TypeInfoPropertyName = "GetAvatarsResponse22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice11), TypeInfoPropertyName = "Voice112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice12), TypeInfoPropertyName = "Voice122")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice12), TypeInfoPropertyName = "Voice122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice13), TypeInfoPropertyName = "Voice132")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType), TypeInfoPropertyName = "GetAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice13), TypeInfoPropertyName = "Voice132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice14), TypeInfoPropertyName = "Voice142")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse))] @@ -2568,21 +3015,21 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDiscriminatorStatus), TypeInfoPropertyName = "GetAvatarsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponse), TypeInfoPropertyName = "PatchAvatarsResponse2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice14), TypeInfoPropertyName = "Voice142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice15), TypeInfoPropertyName = "Voice152")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType), TypeInfoPropertyName = "PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice15), TypeInfoPropertyName = "Voice152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice16), TypeInfoPropertyName = "Voice162")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType), TypeInfoPropertyName = "PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice16), TypeInfoPropertyName = "Voice162")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice17), TypeInfoPropertyName = "Voice172")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse))] @@ -2618,44 +3065,111 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus), TypeInfoPropertyName = "GetRealtimeSessionsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponse), TypeInfoPropertyName = "GetTasksResponse2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant1EstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant2EstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant3Cost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant4EstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant5Cost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseVariant6Cost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseDiscriminatorStatus), TypeInfoPropertyName = "GetTasksResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfStringDouble2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateCharacterPerformanceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateCharacterPerformanceResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateCharacterPerformanceResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateCharacterPerformanceResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateCharacterPerformanceResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSoundEffectResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSoundEffectResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSoundEffectResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSoundEffectResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSoundEffectResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRouting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse), TypeInfoPropertyName = "CreateGenerateVideoResponse2")] + [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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback))] + [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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback))] + [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.AnyOf), TypeInfoPropertyName = "AnyOfCreateGenerateVideoResponseVariant1CreateGenerateVideoResponseVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -2665,12 +3179,24 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant1EmptiedByItem), TypeInfoPropertyName = "CreateGenerateVideoResponseVariant1EmptiedByItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRouting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponse), TypeInfoPropertyName = "CreateGenerateImageResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseDiscriminatorDryRun), TypeInfoPropertyName = "CreateGenerateImageResponseDiscriminatorDryRun2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfCreateGenerateImageResponseVariant1CreateGenerateImageResponseVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -2680,14 +3206,28 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant1EmptiedByItem), TypeInfoPropertyName = "CreateGenerateImageResponseVariant1EmptiedByItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRouting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutingResolvedInputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutingResolvedInputVoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponse), TypeInfoPropertyName = "CreateGenerateAudioResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice), TypeInfoPropertyName = "CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun), TypeInfoPropertyName = "CreateGenerateAudioResponseDiscriminatorDryRun2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfCreateGenerateAudioResponseVariant1CreateGenerateAudioResponseVariant22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -2697,6 +3237,19 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant1EmptiedByItem), TypeInfoPropertyName = "CreateGenerateAudioResponseVariant1EmptiedByItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponse4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappUsageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappUsageResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappUsageResponseDataItemType), TypeInfoPropertyName = "GetOrganizationWebappUsageResponseDataItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction), TypeInfoPropertyName = "GetOrganizationWebappAuditLogsResponseDataItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponseAction), TypeInfoPropertyName = "GetOrganizationWebappAuditLogsResponseAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponse3))] [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))] @@ -2719,19 +3272,47 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponseEstimatedCost))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponseIssue))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponse3))] [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))] @@ -2740,175 +3321,1382 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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.GetRoutersResponseDataItemSettingsFallback))] [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.CreateRoutersResponseSettingsFallback))] [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.GetRoutersResponseSettingsFallback))] [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")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemVoiceProcessing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemVoiceReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemVoiceFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemDiscriminatorStatus), TypeInfoPropertyName = "GetVoicesResponseDataItemDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponse2), TypeInfoPropertyName = "GetVoicesResponse22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseVoiceProcessing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseVoiceReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseVoiceFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDiscriminatorStatus), TypeInfoPropertyName = "GetVoicesResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponse), TypeInfoPropertyName = "PatchVoicesResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseVoiceProcessing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseVoiceReady))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseVoiceFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseDiscriminatorStatus), TypeInfoPropertyName = "PatchVoicesResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponseGraph))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponseDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponseDataItemVersion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse), TypeInfoPropertyName = "GetWorkflowInvocationsResponse2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus), TypeInfoPropertyName = "GetWorkflowInvocationsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice?), TypeInfoPropertyName = "NullableVoice2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsRequestVoiceRunwayLivePresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsRequestVoiceRunwayLivePresetVoicePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsRequestVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsRequestVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsRequestImageProcessing?), TypeInfoPropertyName = "NullableCreateAvatarsRequestImageProcessing2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice2?), TypeInfoPropertyName = "NullableVoice22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsRequestVoiceRunwayLivePresetVoicePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsRequestVoiceRunwayLivePresetVoicePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsRequestVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsRequestVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsRequestImageProcessing?), TypeInfoPropertyName = "NullablePatchAvatarsRequestImageProcessing2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Avatar?), TypeInfoPropertyName = "NullableAvatar2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestAvatarRunwayPresetAvatarPresetId?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestAvatarRunwayPresetAvatarPresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestAvatarDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestAvatarDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Speech?), TypeInfoPropertyName = "NullableSpeech2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice3?), TypeInfoPropertyName = "NullableVoice32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestSpeechTextInputVoiceRunwayPresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestSpeechTextInputVoiceRunwayPresetVoicePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestSpeechTextInputVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestSpeechTextInputVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestSpeechDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestSpeechDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Avatar2?), TypeInfoPropertyName = "NullableAvatar22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestAvatarRunwayPresetAvatarPresetId?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestAvatarRunwayPresetAvatarPresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestAvatarDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestAvatarDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.ToolsItem?), TypeInfoPropertyName = "NullableToolsItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.ParametersItem?), TypeInfoPropertyName = "NullableParametersItem2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolClientEventToolParameterArrayParameterItemsType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolClientEventToolParameterArrayParameterItemsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolClientEventToolParameterDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolClientEventToolParameterDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.ParametersItem2?), TypeInfoPropertyName = "NullableParametersItem22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolBackendRPCToolParameterArrayParameterItemsType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolBackendRPCToolParameterArrayParameterItemsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolBackendRPCToolParameterDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolBackendRPCToolParameterDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Integration?), TypeInfoPropertyName = "NullableIntegration2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestIntegrationDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestIntegrationDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequest?), TypeInfoPropertyName = "NullableCreateImageToVideoRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestGen45PromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen45Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45ContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen45ContentModerationPublicFigureThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestGen4TurboPromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen4TurboRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen4TurboRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen4TurboContentModerationPublicFigureThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestVeo31PromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31PromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31PromptImagePromptImagePosition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestVeo31FastPromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31FastRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestHappyhorse10PromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHappyhorse10Resolution?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestHappyhorse10Resolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance2PromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2PromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2PromptImagePromptImagePosition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance2FastPromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2FastPromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2FastPromptImagePromptImagePosition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2FastRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2FastRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance2MiniPromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePosition2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2MiniRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2MiniRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestGeminiOmniFlashPromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGeminiOmniFlashRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGeminiOmniFlashRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestVeo3PromptImagePromptImage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo3Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo3Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestDiscriminatorModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequest?), TypeInfoPropertyName = "NullableCreateTextToVideoRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGen45Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestVeo31Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31FastRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestVeo31FastRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHappyhorse10Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestHappyhorse10Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance2Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2FastRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance2FastRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2MiniRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance2MiniRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGeminiOmniFlashRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGeminiOmniFlashRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo3Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestVeo3Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestDiscriminatorModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequest?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateVideoToVideoRequestVariant1KeyframeVariant1CreateVideoToVideoRequestVariant1KeyframeVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1TargetAspectRatio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestVariant1TargetAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2Ratio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance2Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2FastRatio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance2FastRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2MiniRatio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance2MiniRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestDiscriminatorModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequest?), TypeInfoPropertyName = "NullableCreateTextToImageRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageTurboRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageTurboRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageContentModerationPublicFigureThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGptImage2Ratio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGptImage2Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGptImage2Quality?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGptImage2Quality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGptImage2Background?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGptImage2Background2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage3ProRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage3ProRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage3ProReferenceImageSubject?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage3ProReferenceImageSubject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage31FlashRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage31FlashRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage31FlashReferenceImageSubject?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage31FlashReferenceImageSubject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5ProRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5ProRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5ProOutputFormat?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5ProOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5LiteRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5LiteRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5LiteOutputFormat?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5LiteOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGemini25FlashRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGemini25FlashRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateTextToImageRequestDiscriminatorModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleRequest?), TypeInfoPropertyName = "NullableCreateImageUpscaleRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2Flavor?), TypeInfoPropertyName = "NullableCreateImageUpscaleRequestMagnificPrecisionUpscalerV2Flavor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsFallback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponse))] + internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + typeof(global::Runway.JsonConverters.CreateAvatarsRequestVoiceRunwayLivePresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsRequestVoiceRunwayLivePresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsRequestVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsRequestVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsRequestImageProcessingJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsRequestImageProcessingNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsRequestVoiceRunwayLivePresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsRequestVoiceRunwayLivePresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsRequestVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsRequestVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsRequestImageProcessingJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsRequestImageProcessingNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestAvatarRunwayPresetAvatarPresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestAvatarRunwayPresetAvatarPresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestAvatarDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestAvatarDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestSpeechTextInputVoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestSpeechTextInputVoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestSpeechTextInputVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestSpeechTextInputVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestSpeechDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarVideosRequestSpeechDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestAvatarRunwayPresetAvatarPresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestAvatarRunwayPresetAvatarPresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestAvatarDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestAvatarDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolClientEventToolParameterArrayParameterItemsTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolClientEventToolParameterArrayParameterItemsTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolClientEventToolParameterDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolClientEventToolParameterDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolBackendRPCToolParameterArrayParameterItemsTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolBackendRPCToolParameterArrayParameterItemsTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolBackendRPCToolParameterDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolBackendRPCToolParameterDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestToolDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestIntegrationDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRealtimeSessionsRequestIntegrationDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31PromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31PromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2PromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2PromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2FastPromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2FastPromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2FastRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2FastRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2MiniRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2MiniRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2FastRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2FastRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2MiniRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2MiniRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1TargetAspectRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1TargetAspectRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2FastRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2FastRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageTurboRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageTurboRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGptImage2RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGptImage2RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGptImage2QualityJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGptImage2QualityNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGptImage2BackgroundJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGptImage2BackgroundNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage3ProRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage3ProRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage3ProReferenceImageSubjectJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage3ProReferenceImageSubjectNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage31FlashRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage31FlashRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage31FlashReferenceImageSubjectJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGeminiImage31FlashReferenceImageSubjectNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5ProRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5ProRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5ProOutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5ProOutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5LiteRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5LiteRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5LiteOutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestSeedream5LiteOutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGemini25FlashRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestGemini25FlashRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2FlavorJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2FlavorNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageUpscaleRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageUpscaleRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeFlavorJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeFlavorNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoCharacterDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoCharacterDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoReferenceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoReferenceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestActTwoContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSoundEffectRequestSeedAudioOutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSoundEffectRequestSeedAudioOutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSoundEffectRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSoundEffectRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioOutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioOutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestElevenVoiceDubbingTargetLangJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestElevenVoiceDubbingTargetLangNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestDiscriminatorModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestDiscriminatorModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestDiscriminatorModelJsonConverter), + + 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.CreateGenerateImageRequestInputAspectRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageRequestInputAspectRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageRequestInputResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageRequestInputResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageRequestInputContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageRequestInputContentModerationPublicFigureThresholdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioRequestInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioRequestInputTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioRequestInputVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioRequestInputVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMarketingStockImageRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMarketingStockImageRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMarketingStockImageRequestQualityJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMarketingStockImageRequestQualityNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductAdRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductAdRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductAdRequestRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductAdRequestRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductCampaignImageRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductCampaignImageRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductSwapRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductSwapRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductSwapRequestNewProductImageViewJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductSwapRequestNewProductImageViewNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductSwapRequestResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductSwapRequestResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant1VersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant1VersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant1RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant1RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant2VersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant2VersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant2RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestVariant2RatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestDiscriminatorModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestDiscriminatorModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductUgcRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductUgcRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesProductUgcRequestRatioJsonConverter), + + 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), + + typeof(global::Runway.JsonConverters.CreateVoicesRequestFromDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoicesRequestFromDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoicesPreviewRequestModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoicesPreviewRequestModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateWorkflowsRequestNodeOutputsDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateWorkflowsRequestNodeOutputsDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsSortJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsSortNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsOrderJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsOrderNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDataItemDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseDataItemStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseDataItemStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant1TranscriptItemRoleJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant1TranscriptItemRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant1ToolTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant1ToolTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant2TranscriptItemRoleJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant2TranscriptItemRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant2ToolTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant2ToolTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant3TranscriptItemRoleJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant3TranscriptItemRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant3ToolTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseVariant3ToolTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarReadyVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarReadyVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarFailedVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseAvatarFailedVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateDocumentsResponseTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateDocumentsResponseTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsResponseDataItemTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsResponseDataItemTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsResponseTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetDocumentsResponseTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRealtimeSessionsResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetRealtimeSessionsResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusJsonConverter), + + 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.CreateGenerateVideoResponseVariant1PipelineItemFilterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1PipelineItemFilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), + + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseModelJsonConverter), + + 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.GetRoutersRequestsResponseDataItemStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2JsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2NullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetVoicesResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetVoicesResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchVoicesResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.PatchVoicesResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetWorkflowInvocationsResponseDiscriminatorStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetWorkflowInvocationsResponseDiscriminatorStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.VoiceJsonConverter), + + typeof(global::Runway.JsonConverters.Voice2JsonConverter), + + typeof(global::Runway.JsonConverters.AvatarJsonConverter), + + typeof(global::Runway.JsonConverters.SpeechJsonConverter), + + typeof(global::Runway.JsonConverters.Voice3JsonConverter), + + typeof(global::Runway.JsonConverters.Avatar2JsonConverter), + + typeof(global::Runway.JsonConverters.ToolsItemJsonConverter), + + typeof(global::Runway.JsonConverters.ParametersItemJsonConverter), + + typeof(global::Runway.JsonConverters.ParametersItem2JsonConverter), + + typeof(global::Runway.JsonConverters.IntegrationJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToImageRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageUpscaleRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoUpscaleRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateCharacterPerformanceRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CharacterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSoundEffectRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestJsonConverter), + + typeof(global::Runway.JsonConverters.MediaJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestJsonConverter), + + typeof(global::Runway.JsonConverters.Voice4JsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestJsonConverter), + + typeof(global::Runway.JsonConverters.Voice5JsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestJsonConverter), + + typeof(global::Runway.JsonConverters.FromJsonConverter), + + typeof(global::Runway.JsonConverters.NodeOutputsJsonConverter), + + typeof(global::Runway.JsonConverters.DataItemJsonConverter), + + typeof(global::Runway.JsonConverters.Voice6JsonConverter), + + typeof(global::Runway.JsonConverters.Voice7JsonConverter), + + typeof(global::Runway.JsonConverters.Voice8JsonConverter), + + typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), + + typeof(global::Runway.JsonConverters.Voice9JsonConverter), + + typeof(global::Runway.JsonConverters.Voice10JsonConverter), + + typeof(global::Runway.JsonConverters.Voice11JsonConverter), + + typeof(global::Runway.JsonConverters.AvatarVariant1JsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarConversationsResponse2JsonConverter), + + typeof(global::Runway.JsonConverters.AvatarVariant12JsonConverter), + + typeof(global::Runway.JsonConverters.AvatarVariant13JsonConverter), + + typeof(global::Runway.JsonConverters.AvatarVariant14JsonConverter), + + typeof(global::Runway.JsonConverters.GetAvatarsResponse2JsonConverter), + + typeof(global::Runway.JsonConverters.Voice12JsonConverter), + + typeof(global::Runway.JsonConverters.Voice13JsonConverter), + + typeof(global::Runway.JsonConverters.Voice14JsonConverter), + + typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), + + typeof(global::Runway.JsonConverters.Voice15JsonConverter), + + typeof(global::Runway.JsonConverters.Voice16JsonConverter), + + typeof(global::Runway.JsonConverters.Voice17JsonConverter), + + typeof(global::Runway.JsonConverters.GetRealtimeSessionsResponseJsonConverter), + + typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseJsonConverter), + + typeof(global::Runway.JsonConverters.PipelineItemJsonConverter), + + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), + + typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), + + typeof(global::Runway.JsonConverters.PatchVoicesResponseJsonConverter), + + typeof(global::Runway.JsonConverters.GetWorkflowInvocationsResponseJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter>), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemStatus), TypeInfoPropertyName = "GetRoutersRequestsResponseDataItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemReasonCode2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PipelineItem), TypeInfoPropertyName = "PipelineItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter), TypeInfoPropertyName = "GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome), TypeInfoPropertyName = "GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType), TypeInfoPropertyName = "GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem), TypeInfoPropertyName = "GetRoutersRequestsResponseDataItemEmptiedByItem2")] + [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")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemVoiceProcessing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemVoiceReady))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemVoiceFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemDiscriminatorStatus), TypeInfoPropertyName = "GetVoicesResponseDataItemDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponse2), TypeInfoPropertyName = "GetVoicesResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseVoiceProcessing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseVoiceReady))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseVoiceFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDiscriminatorStatus), TypeInfoPropertyName = "GetVoicesResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponse), TypeInfoPropertyName = "PatchVoicesResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseVoiceProcessing))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseVoiceReady))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseVoiceFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseDiscriminatorStatus), TypeInfoPropertyName = "PatchVoicesResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponseGraph))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponse3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowsResponseDataItemVersion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse), TypeInfoPropertyName = "GetWorkflowInvocationsResponse2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus), TypeInfoPropertyName = "GetWorkflowInvocationsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice?), TypeInfoPropertyName = "NullableVoice2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsRequestVoiceRunwayLivePresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsRequestVoiceRunwayLivePresetVoicePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsRequestVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsRequestVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsRequestImageProcessing?), TypeInfoPropertyName = "NullableCreateAvatarsRequestImageProcessing2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice2?), TypeInfoPropertyName = "NullableVoice22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsRequestVoiceRunwayLivePresetVoicePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsRequestVoiceRunwayLivePresetVoicePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsRequestVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsRequestVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsRequestImageProcessing?), TypeInfoPropertyName = "NullablePatchAvatarsRequestImageProcessing2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Avatar?), TypeInfoPropertyName = "NullableAvatar2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestAvatarRunwayPresetAvatarPresetId?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestAvatarRunwayPresetAvatarPresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestAvatarDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestAvatarDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Speech?), TypeInfoPropertyName = "NullableSpeech2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice3?), TypeInfoPropertyName = "NullableVoice32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestSpeechTextInputVoiceRunwayPresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestSpeechTextInputVoiceRunwayPresetVoicePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestSpeechTextInputVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestSpeechTextInputVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarVideosRequestSpeechDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarVideosRequestSpeechDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Avatar2?), TypeInfoPropertyName = "NullableAvatar22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestAvatarRunwayPresetAvatarPresetId?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestAvatarRunwayPresetAvatarPresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestAvatarDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestAvatarDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.ToolsItem?), TypeInfoPropertyName = "NullableToolsItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.ParametersItem?), TypeInfoPropertyName = "NullableParametersItem2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolClientEventToolParameterArrayParameterItemsType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolClientEventToolParameterArrayParameterItemsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolClientEventToolParameterDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolClientEventToolParameterDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.ParametersItem2?), TypeInfoPropertyName = "NullableParametersItem22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolBackendRPCToolParameterArrayParameterItemsType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolBackendRPCToolParameterArrayParameterItemsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolBackendRPCToolParameterDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolBackendRPCToolParameterDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestToolDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestToolDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Integration?), TypeInfoPropertyName = "NullableIntegration2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRealtimeSessionsRequestIntegrationDiscriminatorType?), TypeInfoPropertyName = "NullableCreateRealtimeSessionsRequestIntegrationDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequest?), TypeInfoPropertyName = "NullableCreateImageToVideoRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestGen45PromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen45Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45ContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen45ContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45OutputFormat?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen45OutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen45ProresProfile?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen45ProresProfile2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestGen4TurboPromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen4TurboRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen4TurboRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGen4TurboContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestVeo31PromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31PromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31PromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestVeo31FastPromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestVeo31FastRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestVeo31FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHailuo3Resolution?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestHailuo3Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHailuo3Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestHailuo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestHappyhorse10PromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestHappyhorse10Resolution?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestHappyhorse10Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance2PromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2PromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2PromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance2FastPromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2FastPromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2FastPromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2FastRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance2MiniPromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance2MiniRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance2MiniRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestGeminiOmniFlashPromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestGeminiOmniFlashRatio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestGeminiOmniFlashRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>?), TypeInfoPropertyName = "NullableAnyOfStringIListCreateImageToVideoRequestSeedance25PromptImagePromptImage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance25PromptImagePromptImagePosition2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestSeedance25Ratio?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestSeedance25Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageToVideoRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateImageToVideoRequestDiscriminatorModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequest?), TypeInfoPropertyName = "NullableCreateTextToVideoRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGen45Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45OutputFormat?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGen45OutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGen45ProresProfile?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGen45ProresProfile2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestVeo31Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestVeo31FastRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestVeo31FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3Resolution?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestHailuo3Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHailuo3Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestHailuo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestHappyhorse10Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestHappyhorse10Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance2Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2FastRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance2FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance2MiniRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance2MiniRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestGeminiOmniFlashRatio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestGeminiOmniFlashRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestSeedance25Ratio?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestSeedance25Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToVideoRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateTextToVideoRequestDiscriminatorModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequest?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateVideoToVideoRequestVariant1KeyframeVariant1CreateVideoToVideoRequestVariant1KeyframeVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1TargetAspectRatio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestVariant1TargetAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1OutputFormat?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestVariant1OutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestVariant1ProresProfile?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestVariant1ProresProfile2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3Resolution?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestHailuo3Resolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestHailuo3Ratio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestHailuo3Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2Ratio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance2Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2FastRatio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance2FastRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance2MiniRatio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance2MiniRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25Mode?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance25Mode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestSeedance25Ratio?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestSeedance25Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoToVideoRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateVideoToVideoRequestDiscriminatorModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequest?), TypeInfoPropertyName = "NullableCreateTextToImageRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageTurboRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageTurboRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGen4ImageContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGen4ImageContentModerationPublicFigureThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGptImage2Ratio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGptImage2Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGptImage2Quality?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGptImage2Quality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGptImage2Background?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGptImage2Background2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage3ProRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage3ProRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage3ProReferenceImageSubject?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage3ProReferenceImageSubject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage31FlashRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage31FlashRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGeminiImage31FlashReferenceImageSubject?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGeminiImage31FlashReferenceImageSubject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5ProRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5ProRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5ProOutputFormat?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5ProOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5LiteRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5LiteRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestSeedream5LiteOutputFormat?), TypeInfoPropertyName = "NullableCreateTextToImageRequestSeedream5LiteOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestGemini25FlashRatio?), TypeInfoPropertyName = "NullableCreateTextToImageRequestGemini25FlashRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToImageRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateTextToImageRequestDiscriminatorModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleRequest?), TypeInfoPropertyName = "NullableCreateImageUpscaleRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2Flavor?), TypeInfoPropertyName = "NullableCreateImageUpscaleRequestMagnificPrecisionUpscalerV2Flavor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateImageUpscaleRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateImageUpscaleRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleRequest?), TypeInfoPropertyName = "NullableCreateVideoUpscaleRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeResolution?), TypeInfoPropertyName = "NullableCreateVideoUpscaleRequestMagnificVideoUpscalerCreativeResolution2")] @@ -2931,10 +4719,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateSpeechToSpeechRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateSpeechToSpeechRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequest?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice4?), TypeInfoPropertyName = "NullableVoice42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestSeedAudioOutputFormat?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestSeedAudioOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestElevenV3VoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestElevenV3ApplyTextNormalization2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateTextToSpeechRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateTextToSpeechRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingRequest?), TypeInfoPropertyName = "NullableCreateVoiceDubbingRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingRequestElevenVoiceDubbingTargetLang?), TypeInfoPropertyName = "NullableCreateVoiceDubbingRequestElevenVoiceDubbingTargetLang2")] @@ -2951,12 +4744,278 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageRequestInputResolution?), TypeInfoPropertyName = "NullableCreateGenerateImageRequestInputResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageRequestInputContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateGenerateImageRequestInputContentModerationPublicFigureThreshold2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputType?), TypeInfoPropertyName = "NullableCreateGenerateAudioRequestInputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice4?), TypeInfoPropertyName = "NullableVoice42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice5?), TypeInfoPropertyName = "NullableVoice52")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetId?), TypeInfoPropertyName = "NullableCreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateGenerateAudioRequestInputVoiceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsRequestType?), TypeInfoPropertyName = "NullableCreateUploadsRequestType2")] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesAdLocalizationRequestVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage?), TypeInfoPropertyName = "NullableCreateRecipesAdLocalizationRequestTargetLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesMarketingStockImageRequestVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageRequestQuality?), TypeInfoPropertyName = "NullableCreateRecipesMarketingStockImageRequestQuality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductAdRequestVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdRequestRatio?), TypeInfoPropertyName = "NullableCreateRecipesProductAdRequestRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductCampaignImageRequestVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductSwapRequestVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapRequestNewProductImageView?), TypeInfoPropertyName = "NullableCreateRecipesProductSwapRequestNewProductImageView2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapRequestResolution?), TypeInfoPropertyName = "NullableCreateRecipesProductSwapRequestResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequest?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequest2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant1Version?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant1Version2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant1Ratio?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant1Ratio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant2Version?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant2Version2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant2Ratio?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant2Ratio2")] + [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")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewRequestModel?), TypeInfoPropertyName = "NullableCreateVoicesPreviewRequestModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.NodeOutputs?), TypeInfoPropertyName = "NullableNodeOutputs2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringDoubleBoolean2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType?), TypeInfoPropertyName = "NullableCreateWorkflowsRequestNodeOutputsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsSort?), TypeInfoPropertyName = "NullableGetDocumentsSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsOrder?), TypeInfoPropertyName = "NullableGetDocumentsOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem?), TypeInfoPropertyName = "NullableDataItem2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice6?), TypeInfoPropertyName = "NullableVoice62")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice7?), TypeInfoPropertyName = "NullableVoice72")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice8?), TypeInfoPropertyName = "NullableVoice82")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponse?), TypeInfoPropertyName = "NullableCreateAvatarsResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice9?), TypeInfoPropertyName = "NullableVoice92")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice10?), TypeInfoPropertyName = "NullableVoice102")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice11?), TypeInfoPropertyName = "NullableVoice112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] + [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.Voice12?), TypeInfoPropertyName = "NullableVoice122")] + [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.Voice13?), TypeInfoPropertyName = "NullableVoice132")] + [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.Voice14?), TypeInfoPropertyName = "NullableVoice142")] + [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.Voice15?), TypeInfoPropertyName = "NullableVoice152")] + [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.Voice16?), TypeInfoPropertyName = "NullableVoice162")] + [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.Voice17?), TypeInfoPropertyName = "NullableVoice172")] + [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.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringDouble2")] + [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.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateVideoResponseVariant1CreateGenerateVideoResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant1PipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseVariant1PipelineItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant1EmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseVariant1EmptiedByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponse?), TypeInfoPropertyName = "NullableCreateGenerateImageResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseDiscriminatorDryRun?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseDiscriminatorDryRun2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateImageResponseVariant1CreateGenerateImageResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant1PipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseVariant1PipelineItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant1EmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseVariant1EmptiedByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponse?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseDiscriminatorDryRun2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateAudioResponseVariant1CreateGenerateAudioResponseVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant1PipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseVariant1PipelineItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant1EmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseVariant1EmptiedByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappUsageResponseDataItemType?), TypeInfoPropertyName = "NullableGetOrganizationWebappUsageResponseDataItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction?), TypeInfoPropertyName = "NullableGetOrganizationWebappAuditLogsResponseDataItemAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationWebappAuditLogsResponseAction?), TypeInfoPropertyName = "NullableGetOrganizationWebappAuditLogsResponseAction2")] + [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.GetRoutersRequestsResponseDataItemStatus?), TypeInfoPropertyName = "NullableGetRoutersRequestsResponseDataItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PipelineItem?), TypeInfoPropertyName = "NullablePipelineItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter?), TypeInfoPropertyName = "NullableGetRoutersRequestsResponseDataItemPipelineItemVariant1Filter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome?), TypeInfoPropertyName = "NullableGetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType?), TypeInfoPropertyName = "NullableGetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem?), TypeInfoPropertyName = "NullableGetRoutersRequestsResponseDataItemEmptiedByItem2")] + [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::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))] + [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))] + [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))] + [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))] + [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))] + [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))] + [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 SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3051,6 +5110,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioNullableJsonConverter), @@ -3075,6 +5142,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionNullableJsonConverter), @@ -3107,9 +5182,13 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelJsonConverter), @@ -3123,6 +5202,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioNullableJsonConverter), @@ -3131,6 +5218,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioNullableJsonConverter), @@ -3151,9 +5246,9 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioJsonConverter), - typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelJsonConverter), @@ -3167,6 +5262,22 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioJsonConverter), typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioNullableJsonConverter), @@ -3179,6 +5290,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelJsonConverter), typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelNullableJsonConverter), @@ -3315,6 +5434,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeNullableJsonConverter), @@ -3331,6 +5454,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter), + + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelJsonConverter), typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelNullableJsonConverter), @@ -3683,9 +5818,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1PipelineItemFilterJsonConverter), @@ -3695,9 +5838,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterJsonConverter), @@ -3707,17 +5858,33 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), - typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullableJsonConverter), typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterJsonConverter), @@ -3727,6 +5894,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionJsonConverter), + + typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), @@ -3767,6 +5946,30 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2JsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2NullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), @@ -3827,11 +6030,13 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestJsonConverter), + typeof(global::Runway.JsonConverters.Voice4JsonConverter), + typeof(global::Runway.JsonConverters.CreateVoiceDubbingRequestJsonConverter), typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestJsonConverter), - typeof(global::Runway.JsonConverters.Voice4JsonConverter), + typeof(global::Runway.JsonConverters.Voice5JsonConverter), typeof(global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestJsonConverter), @@ -3841,20 +6046,20 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.DataItemJsonConverter), - typeof(global::Runway.JsonConverters.Voice5JsonConverter), - typeof(global::Runway.JsonConverters.Voice6JsonConverter), typeof(global::Runway.JsonConverters.Voice7JsonConverter), - typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), - typeof(global::Runway.JsonConverters.Voice8JsonConverter), + typeof(global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter), + typeof(global::Runway.JsonConverters.Voice9JsonConverter), typeof(global::Runway.JsonConverters.Voice10JsonConverter), + typeof(global::Runway.JsonConverters.Voice11JsonConverter), + typeof(global::Runway.JsonConverters.AvatarVariant1JsonConverter), typeof(global::Runway.JsonConverters.GetAvatarConversationsResponse2JsonConverter), @@ -3867,24 +6072,32 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.GetAvatarsResponse2JsonConverter), - typeof(global::Runway.JsonConverters.Voice11JsonConverter), - typeof(global::Runway.JsonConverters.Voice12JsonConverter), typeof(global::Runway.JsonConverters.Voice13JsonConverter), - typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), - typeof(global::Runway.JsonConverters.Voice14JsonConverter), + typeof(global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter), + typeof(global::Runway.JsonConverters.Voice15JsonConverter), typeof(global::Runway.JsonConverters.Voice16JsonConverter), + typeof(global::Runway.JsonConverters.Voice17JsonConverter), + typeof(global::Runway.JsonConverters.GetRealtimeSessionsResponseJsonConverter), typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateImageResponseJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseJsonConverter), + + typeof(global::Runway.JsonConverters.PipelineItemJsonConverter), + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -3901,6 +6114,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>), @@ -3911,7 +6126,7 @@ 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), @@ -3925,245 +6140,78 @@ 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), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesAdLocalizationRequestVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage?), TypeInfoPropertyName = "NullableCreateRecipesAdLocalizationRequestTargetLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesMarketingStockImageRequestVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMarketingStockImageRequestQuality?), TypeInfoPropertyName = "NullableCreateRecipesMarketingStockImageRequestQuality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductAdRequestVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductAdRequestRatio?), TypeInfoPropertyName = "NullableCreateRecipesProductAdRequestRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductCampaignImageRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductCampaignImageRequestVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductSwapRequestVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapRequestNewProductImageView?), TypeInfoPropertyName = "NullableCreateRecipesProductSwapRequestNewProductImageView2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductSwapRequestResolution?), TypeInfoPropertyName = "NullableCreateRecipesProductSwapRequestResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequest?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant1Version?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant1Version2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant1Ratio?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant1Ratio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant2Version?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant2Version2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestVariant2Ratio?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestVariant2Ratio2")] - [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")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesPreviewRequestModel?), TypeInfoPropertyName = "NullableCreateVoicesPreviewRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.NodeOutputs?), TypeInfoPropertyName = "NullableNodeOutputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfStringDoubleBoolean2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType?), TypeInfoPropertyName = "NullableCreateWorkflowsRequestNodeOutputsDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsSort?), TypeInfoPropertyName = "NullableGetDocumentsSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsOrder?), TypeInfoPropertyName = "NullableGetDocumentsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem?), TypeInfoPropertyName = "NullableDataItem2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice5?), TypeInfoPropertyName = "NullableVoice52")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice6?), TypeInfoPropertyName = "NullableVoice62")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice7?), TypeInfoPropertyName = "NullableVoice72")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetAvatarsResponseDataItemDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponse?), TypeInfoPropertyName = "NullableCreateAvatarsResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice8?), TypeInfoPropertyName = "NullableVoice82")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice9?), TypeInfoPropertyName = "NullableVoice92")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice10?), TypeInfoPropertyName = "NullableVoice102")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableCreateAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] - [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.Voice11?), TypeInfoPropertyName = "NullableVoice112")] - [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.Voice12?), TypeInfoPropertyName = "NullableVoice122")] - [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.Voice13?), TypeInfoPropertyName = "NullableVoice132")] - [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.Voice14?), TypeInfoPropertyName = "NullableVoice142")] - [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.Voice15?), TypeInfoPropertyName = "NullableVoice152")] - [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.Voice16?), TypeInfoPropertyName = "NullableVoice162")] - [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.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateVideoResponseVariant1CreateGenerateVideoResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant1PipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseVariant1PipelineItemFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseVariant1EmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseVariant1EmptiedByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateImageResponseVariant1CreateGenerateImageResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant1PipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseVariant1PipelineItemFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateImageResponseVariant1EmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateImageResponseVariant1EmptiedByItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutingResolvedInputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseRoutingResolvedInputVoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateAudioResponseVariant1CreateGenerateAudioResponseVariant22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant1PipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseVariant1PipelineItemFilter2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateAudioResponseVariant1EmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateAudioResponseVariant1EmptiedByItem2")] - [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))] - [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))] - [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))] - [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))] - [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))] [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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext + internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } /// @@ -4176,7 +6224,9 @@ public sealed partial class SourceGenerationContext : global::System.Text.Json.S SourceGenerationContextChunk1.Default, - SourceGenerationContextChunk2.Default + SourceGenerationContextChunk2.Default, + + SourceGenerationContextChunk3.Default ); private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); @@ -4249,6 +6299,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboRatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThresholdJsonConverter()); @@ -4261,6 +6315,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePositionNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestVeo31FastRatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestHappyhorse10ResolutionNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2PromptImagePromptImagePositionJsonConverter()); @@ -4277,18 +6335,28 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestSeedance2MiniRatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestGeminiOmniFlashRatioNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateImageToVideoRequestDiscriminatorModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45RatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45ContentModerationPublicFigureThresholdNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestVeo31RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestVeo31FastRatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestHappyhorse10RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2RatioJsonConverter()); @@ -4299,20 +6367,32 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestSeedance2MiniRatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestGeminiOmniFlashRatioNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToVideoRequestDiscriminatorModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1TargetAspectRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1TargetAspectRatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThresholdNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2FastRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2FastRatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance2MiniRatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVideoToVideoRequestDiscriminatorModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToImageRequestGen4ImageTurboRatioJsonConverter()); @@ -4381,6 +6461,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateSpeechToSpeechRequestDiscriminatorModelNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioOutputFormatJsonConverter()); @@ -4389,6 +6471,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetIdNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestDiscriminatorModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoiceDubbingRequestElevenVoiceDubbingTargetLangJsonConverter()); @@ -4565,28 +6653,50 @@ 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.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + 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.CreateGenerateVideoResponseVariant1PipelineItemFilterJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1PipelineItemFilterNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1EmptiedByItemNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateImageResponseVariant1EmptiedByItemNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeNullableJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1EmptiedByItemNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseModelJsonConverter()); @@ -4607,6 +6717,18 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o 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.GetRoutersRequestsResponseDataItemStatusJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2JsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemReasonCode2NullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemEmptiedByItemNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponseDiscriminatorStatusJsonConverter()); @@ -4637,35 +6759,40 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateSpeechToSpeechRequestJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.MediaJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateTextToSpeechRequestJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.Voice4JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoiceDubbingRequestJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoiceIsolationRequestJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.Voice4JsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.Voice5JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesMultiShotVideoRequestJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.FromJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.NodeOutputsJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.DataItemJsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.Voice5JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice6JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice7JsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice8JsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateAvatarsResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice9JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice10JsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.Voice11JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AvatarVariant1JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetAvatarConversationsResponse2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AvatarVariant12JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AvatarVariant13JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AvatarVariant14JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetAvatarsResponse2JsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.Voice11JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice12JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice13JsonConverter()); - options.Converters.Add(new global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice14JsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchAvatarsResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice15JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.Voice16JsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.Voice17JsonConverter()); 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.CreateGenerateImageResponseJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateAudioResponseJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PipelineItemJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.DataItem2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponse2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.PatchVoicesResponseJsonConverter()); @@ -4674,21 +6801,41 @@ 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>()); 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()); 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()); + 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()); + 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()); + 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.UnixTimestampJsonConverter()); return options; diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs index e0d076d7..29dfad4c 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs @@ -412,3019 +412,3871 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Runway.CreateImageToVideoRequestGen4Turbo? Type96 { get; set; } + public global::Runway.CreateImageToVideoRequestGen45OutputFormat? Type96 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type97 { get; set; } + public global::Runway.CreateImageToVideoRequestGen45ProresProfile? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type98 { get; set; } + public global::Runway.CreateImageToVideoRequestGen4Turbo? Type98 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGen4TurboPromptImagePromptImage? Type99 { get; set; } + public global::Runway.AnyOf>? Type99 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGen4TurboRatio? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGen4TurboContentModeration? Type101 { get; set; } + public global::Runway.CreateImageToVideoRequestGen4TurboPromptImagePromptImage? Type101 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThreshold? Type102 { get; set; } + public global::Runway.CreateImageToVideoRequestGen4TurboRatio? Type102 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31? Type103 { get; set; } + public global::Runway.CreateImageToVideoRequestGen4TurboContentModeration? Type103 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type104 { get; set; } + public global::Runway.CreateImageToVideoRequestGen4TurboContentModerationPublicFigureThreshold? Type104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31? Type105 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31PromptImagePromptImage? Type106 { get; set; } + public global::Runway.AnyOf>? Type106 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31PromptImagePromptImagePosition? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31Ratio? Type108 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31PromptImagePromptImage? Type108 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31Fast? Type109 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31PromptImagePromptImagePosition? Type109 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type110 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31Ratio? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31Fast? Type111 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImage? Type112 { get; set; } + public global::Runway.AnyOf>? Type112 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo31FastRatio? Type114 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImage? Type114 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestHappyhorse10? Type115 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31FastPromptImagePromptImagePosition? Type115 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type116 { get; set; } + public global::Runway.CreateImageToVideoRequestVeo31FastRatio? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::Runway.CreateImageToVideoRequestHailuo3? Type117 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestHappyhorse10PromptImagePromptImage? Type118 { get; set; } + public global::Runway.AnyOf>? Type118 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestHappyhorse10Resolution? Type119 { get; set; } + public global::Runway.CreateImageToVideoRequestHailuo3Resolution? Type119 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2? Type120 { get; set; } + public global::Runway.CreateImageToVideoRequestHailuo3Ratio? Type120 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type121 { get; set; } + public global::System.Collections.Generic.IList? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem? Type122 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2PromptImagePromptImage? Type123 { get; set; } + public global::Runway.CreateImageToVideoRequestHappyhorse10? Type123 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2PromptImagePromptImagePosition? Type124 { get; set; } + public global::Runway.AnyOf>? Type124 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2Ratio? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Runway.CreateImageToVideoRequestHappyhorse10PromptImagePromptImage? Type126 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2ReferenceAudioItem? Type127 { get; set; } + public global::Runway.CreateImageToVideoRequestHappyhorse10Resolution? Type127 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2Fast? Type128 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2? Type128 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type129 { get; set; } + public global::Runway.AnyOf>? Type129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2FastPromptImagePromptImage? Type131 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2PromptImagePromptImage? Type131 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2FastPromptImagePromptImagePosition? Type132 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2PromptImagePromptImagePosition? Type132 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2FastRatio? Type133 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2Ratio? Type133 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type134 { get; set; } + public global::System.Collections.Generic.IList? Type134 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2FastReferenceAudioItem? Type135 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2ReferenceAudioItem? Type135 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2Mini? Type136 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2Fast? Type136 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type137 { get; set; } + public global::Runway.AnyOf>? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type138 { get; set; } + public global::System.Collections.Generic.IList? Type138 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImage? Type139 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2FastPromptImagePromptImage? Type139 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePosition? Type140 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2FastPromptImagePromptImagePosition? Type140 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2MiniRatio? Type141 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2FastRatio? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestSeedance2MiniReferenceAudioItem? Type143 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2FastReferenceAudioItem? Type143 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGeminiOmniFlash? Type144 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2Mini? Type144 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type145 { get; set; } + public global::Runway.AnyOf>? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::System.Collections.Generic.IList? Type146 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGeminiOmniFlashPromptImagePromptImage? Type147 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImage? Type147 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestGeminiOmniFlashRatio? Type148 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2MiniPromptImagePromptImagePosition? Type148 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo3? Type149 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2MiniRatio? Type149 { get; set; } /// /// /// - public global::Runway.AnyOf>? Type150 { get; set; } + public global::System.Collections.Generic.IList? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance2MiniReferenceAudioItem? Type151 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage? Type152 { get; set; } + public global::Runway.CreateImageToVideoRequestGeminiOmniFlash? Type152 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo3Ratio? Type153 { get; set; } + public global::Runway.AnyOf>? Type153 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestDiscriminator? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoRequestDiscriminatorModel? Type155 { get; set; } + public global::Runway.CreateImageToVideoRequestGeminiOmniFlashPromptImagePromptImage? Type155 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequest? Type156 { get; set; } + public global::Runway.CreateImageToVideoRequestGeminiOmniFlashRatio? Type156 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestGen45? Type157 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance25? Type157 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestGen45Ratio? Type158 { get; set; } + public global::Runway.AnyOf>? Type158 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestGen45ContentModeration? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold? Type160 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImage? Type160 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo31? Type161 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition? Type161 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo31Ratio? Type162 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance25Ratio? Type162 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo31Fast? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo31FastRatio? Type164 { get; set; } + public global::Runway.CreateImageToVideoRequestSeedance25ReferenceAudioItem? Type164 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestHappyhorse10? Type165 { get; set; } + public global::Runway.CreateImageToVideoRequestDiscriminator? Type165 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestHappyhorse10Ratio? Type166 { get; set; } + public global::Runway.CreateImageToVideoRequestDiscriminatorModel? Type166 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2? Type167 { get; set; } + public global::Runway.CreateTextToVideoRequest? Type167 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2Ratio? Type168 { get; set; } + public global::Runway.CreateTextToVideoRequestGen45? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::Runway.CreateTextToVideoRequestGen45Ratio? Type169 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2Reference? Type170 { get; set; } + public global::Runway.CreateTextToVideoRequestGen45ContentModeration? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Runway.CreateTextToVideoRequestGen45ContentModerationPublicFigureThreshold? Type171 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2ReferenceVideo? Type172 { get; set; } + public global::Runway.CreateTextToVideoRequestGen45OutputFormat? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type173 { get; set; } + public global::Runway.CreateTextToVideoRequestGen45ProresProfile? Type173 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2ReferenceAudioItem? Type174 { get; set; } + public global::Runway.CreateTextToVideoRequestVeo31? Type174 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2Fast? Type175 { get; set; } + public global::Runway.CreateTextToVideoRequestVeo31Ratio? Type175 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2FastRatio? Type176 { get; set; } + public global::Runway.CreateTextToVideoRequestVeo31Fast? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type177 { get; set; } + public global::Runway.CreateTextToVideoRequestVeo31FastRatio? Type177 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2FastReference? Type178 { get; set; } + public global::Runway.CreateTextToVideoRequestHailuo3? Type178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type179 { get; set; } + public global::Runway.CreateTextToVideoRequestHailuo3Resolution? Type179 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2FastReferenceVideo? Type180 { get; set; } + public global::Runway.CreateTextToVideoRequestHailuo3Ratio? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2FastReferenceAudioItem? Type182 { get; set; } + public global::Runway.CreateTextToVideoRequestHailuo3Reference? Type182 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2Mini? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2MiniRatio? Type184 { get; set; } + public global::Runway.CreateTextToVideoRequestHailuo3ReferenceVideo? Type184 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2MiniReference? Type186 { get; set; } + public global::Runway.CreateTextToVideoRequestHailuo3ReferenceAudioItem? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::Runway.CreateTextToVideoRequestHappyhorse10? Type187 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2MiniReferenceVideo? Type188 { get; set; } + public global::Runway.CreateTextToVideoRequestHappyhorse10Ratio? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2? Type189 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestSeedance2MiniReferenceAudioItem? Type190 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2Ratio? Type190 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestGeminiOmniFlash? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestGeminiOmniFlashRatio? Type192 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2Reference? Type192 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo3? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo3Ratio? Type194 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2ReferenceVideo? Type194 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestDiscriminator? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoRequestDiscriminatorModel? Type196 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2ReferenceAudioItem? Type196 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequest? Type197 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2Fast? Type197 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1? Type198 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2FastRatio? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::Runway.AnyOf? Type200 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2FastReference? Type200 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant1? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant1Range? Type202 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2FastReferenceVideo? Type202 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant2? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant2Range? Type204 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2FastReferenceAudioItem? Type204 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1TargetAspectRatio? Type205 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2Mini? Type205 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1ContentModeration? Type206 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2MiniRatio? Type206 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2? Type208 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2MiniReference? Type208 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2Ratio? Type209 { get; set; } + public global::System.Collections.Generic.IList? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2MiniReferenceVideo? Type210 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2Reference? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance2MiniReferenceAudioItem? Type212 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2ReferenceVideo? Type213 { get; set; } + public global::Runway.CreateTextToVideoRequestGeminiOmniFlash? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::Runway.CreateTextToVideoRequestGeminiOmniFlashRatio? Type214 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2ReferenceAudioItem? Type215 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance25? Type215 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2Fast? Type216 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance25Ratio? Type216 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2FastRatio? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance25Reference? Type218 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2FastReference? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance25ReferenceVideo? Type220 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2FastReferenceVideo? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::Runway.CreateTextToVideoRequestSeedance25ReferenceAudioItem? Type222 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2FastReferenceAudioItem? Type223 { get; set; } + public global::Runway.CreateTextToVideoRequestDiscriminator? Type223 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2Mini? Type224 { get; set; } + public global::Runway.CreateTextToVideoRequestDiscriminatorModel? Type224 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2MiniRatio? Type225 { get; set; } + public global::Runway.CreateVideoToVideoRequest? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1? Type226 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2MiniReference? Type227 { get; set; } + public global::System.Collections.Generic.IList>? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Runway.AnyOf? Type228 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2MiniReferenceVideo? Type229 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant1? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant1Range? Type230 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestSeedance2MiniReferenceAudioItem? Type231 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant2? Type231 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestGeminiOmniFlash? Type232 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1KeyframeVariant2Range? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1TargetAspectRatio? Type233 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestGeminiOmniFlashReference? Type234 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1ContentModeration? Type234 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestDiscriminator? Type235 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1ContentModerationPublicFigureThreshold? Type235 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoRequestDiscriminatorModel? Type236 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1OutputFormat? Type236 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequest? Type237 { get; set; } + public global::Runway.CreateVideoToVideoRequestVariant1ProresProfile? Type237 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageTurbo? Type238 { get; set; } + public global::Runway.CreateVideoToVideoRequestHailuo3? Type238 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageTurboRatio? Type239 { get; set; } + public global::Runway.CreateVideoToVideoRequestHailuo3Resolution? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::Runway.CreateVideoToVideoRequestHailuo3Ratio? Type240 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageTurboReferenceImage? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageTurboContentModeration? Type242 { get; set; } + public global::Runway.CreateVideoToVideoRequestHailuo3Reference? Type242 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThreshold? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4Image? Type244 { get; set; } + public global::Runway.CreateVideoToVideoRequestHailuo3ReferenceVideo? Type244 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageRatio? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::Runway.CreateVideoToVideoRequestHailuo3ReferenceAudioItem? Type246 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageReferenceImage? Type247 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2? Type247 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageContentModeration? Type248 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2Ratio? Type248 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGen4ImageContentModerationPublicFigureThreshold? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGptImage2? Type250 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2Reference? Type250 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGptImage2Ratio? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGptImage2Quality? Type252 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2ReferenceVideo? Type252 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGptImage2Background? Type253 { get; set; } + public global::System.Collections.Generic.IList? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2ReferenceAudioItem? Type254 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGptImage2ReferenceImage? Type255 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2Fast? Type255 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage3Pro? Type256 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2FastRatio? Type256 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage3ProRatio? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type258 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2FastReference? Type258 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage3ProReferenceImage? Type259 { get; set; } + public global::System.Collections.Generic.IList? Type259 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage3ProReferenceImageSubject? Type260 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2FastReferenceVideo? Type260 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage31Flash? Type261 { get; set; } + public global::System.Collections.Generic.IList? Type261 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage31FlashRatio? Type262 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2FastReferenceAudioItem? Type262 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type263 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2Mini? Type263 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage31FlashReferenceImage? Type264 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2MiniRatio? Type264 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGeminiImage31FlashReferenceImageSubject? Type265 { get; set; } + public global::System.Collections.Generic.IList? Type265 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5Pro? Type266 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2MiniReference? Type266 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5ProRatio? Type267 { get; set; } + public global::System.Collections.Generic.IList? Type267 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5ProOutputFormat? Type268 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2MiniReferenceVideo? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5ProReferenceImage? Type270 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance2MiniReferenceAudioItem? Type270 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5Lite? Type271 { get; set; } + public global::Runway.CreateVideoToVideoRequestGeminiOmniFlash? Type271 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5LiteRatio? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5LiteOutputFormat? Type273 { get; set; } + public global::Runway.CreateVideoToVideoRequestGeminiOmniFlashReference? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance25? Type274 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestSeedream5LiteReferenceImage? Type275 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance25Mode? Type275 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGemini25Flash? Type276 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance25Ratio? Type276 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGemini25FlashRatio? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance25Reference? Type278 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestGemini25FlashReferenceImage? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestDiscriminator? Type280 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance25ReferenceVideo? Type280 { get; set; } /// /// /// - public global::Runway.CreateTextToImageRequestDiscriminatorModel? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleRequest? Type282 { get; set; } + public global::Runway.CreateVideoToVideoRequestSeedance25ReferenceAudioItem? Type282 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2? Type283 { get; set; } + public global::Runway.CreateVideoToVideoRequestDiscriminator? Type283 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2Flavor? Type284 { get; set; } + public global::Runway.CreateVideoToVideoRequestDiscriminatorModel? Type284 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleRequestDiscriminator? Type285 { get; set; } + public global::Runway.CreateTextToImageRequest? Type285 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleRequestDiscriminatorModel? Type286 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageTurbo? Type286 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleRequest? Type287 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageTurboRatio? Type287 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreative? Type288 { get; set; } + public global::System.Collections.Generic.IList? Type288 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeResolution? Type289 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageTurboReferenceImage? Type289 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeFlavor? Type290 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageTurboContentModeration? Type290 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleRequestDiscriminator? Type291 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageTurboContentModerationPublicFigureThreshold? Type291 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleRequestDiscriminatorModel? Type292 { get; set; } + public global::Runway.CreateTextToImageRequestGen4Image? Type292 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequest? Type293 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageRatio? Type293 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwo? Type294 { get; set; } + public global::System.Collections.Generic.IList? Type294 { get; set; } /// /// /// - public global::Runway.Character? Type295 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageReferenceImage? Type295 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterCharacterImage? Type296 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageContentModeration? Type296 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterCharacterVideo? Type297 { get; set; } + public global::Runway.CreateTextToImageRequestGen4ImageContentModerationPublicFigureThreshold? Type297 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterDiscriminator? Type298 { get; set; } + public global::Runway.CreateTextToImageRequestGptImage2? Type298 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterDiscriminatorType? Type299 { get; set; } + public global::Runway.CreateTextToImageRequestGptImage2Ratio? Type299 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoReferenceCharacterReferenceVideo? Type300 { get; set; } + public global::Runway.CreateTextToImageRequestGptImage2Quality? Type300 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoReferenceDiscriminator? Type301 { get; set; } + public global::Runway.CreateTextToImageRequestGptImage2Background? Type301 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoReferenceDiscriminatorType? Type302 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoRatio? Type303 { get; set; } + public global::Runway.CreateTextToImageRequestGptImage2ReferenceImage? Type303 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoContentModeration? Type304 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage3Pro? Type304 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestActTwoContentModerationPublicFigureThreshold? Type305 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage3ProRatio? Type305 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestDiscriminator? Type306 { get; set; } + public global::System.Collections.Generic.IList? Type306 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceRequestDiscriminatorModel? Type307 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage3ProReferenceImage? Type307 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectRequest? Type308 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage3ProReferenceImageSubject? Type308 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectRequestSeedAudio? Type309 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage31Flash? Type309 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectRequestSeedAudioOutputFormat? Type310 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage31FlashRatio? Type310 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectRequestElevenTextToSoundV2? Type311 { get; set; } + public global::System.Collections.Generic.IList? Type311 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectRequestDiscriminator? Type312 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage31FlashReferenceImage? Type312 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectRequestDiscriminatorModel? Type313 { get; set; } + public global::Runway.CreateTextToImageRequestGeminiImage31FlashReferenceImageSubject? Type313 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequest? Type314 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5Pro? Type314 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2? Type315 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5ProRatio? Type315 { get; set; } /// /// /// - public global::Runway.Media? Type316 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5ProOutputFormat? Type316 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaSpeechToSpeechAudio? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaSpeechToSpeechVideo? Type318 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5ProReferenceImage? Type318 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaDiscriminator? Type319 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5Lite? Type319 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaDiscriminatorType? Type320 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5LiteRatio? Type320 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceRunwayPresetVoice? Type321 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5LiteOutputFormat? Type321 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceRunwayPresetVoicePresetId? Type322 { get; set; } + public global::System.Collections.Generic.IList? Type322 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminator? Type323 { get; set; } + public global::Runway.CreateTextToImageRequestSeedream5LiteReferenceImage? Type323 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorType? Type324 { get; set; } + public global::Runway.CreateTextToImageRequestGemini25Flash? Type324 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestDiscriminator? Type325 { get; set; } + public global::Runway.CreateTextToImageRequestGemini25FlashRatio? Type325 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechRequestDiscriminatorModel? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequest? Type327 { get; set; } + public global::Runway.CreateTextToImageRequestGemini25FlashReferenceImage? Type327 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestSeedAudio? Type328 { get; set; } + public global::Runway.CreateTextToImageRequestDiscriminator? Type328 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? Type329 { get; set; } + public global::Runway.CreateTextToImageRequestDiscriminatorModel? Type329 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminator? Type330 { get; set; } + public global::Runway.CreateImageUpscaleRequest? Type330 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType? Type331 { get; set; } + public global::Runway.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2? Type331 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestSeedAudioOutputFormat? Type332 { get; set; } + public global::Runway.CreateImageUpscaleRequestMagnificPrecisionUpscalerV2Flavor? Type332 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2? Type333 { get; set; } + public global::Runway.CreateImageUpscaleRequestDiscriminator? Type333 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoice? Type334 { get; set; } + public global::Runway.CreateImageUpscaleRequestDiscriminatorModel? Type334 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId? Type335 { get; set; } + public global::Runway.CreateVideoUpscaleRequest? Type335 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminator? Type336 { get; set; } + public global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreative? Type336 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorType? Type337 { get; set; } + public global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeResolution? Type337 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestDiscriminator? Type338 { get; set; } + public global::Runway.CreateVideoUpscaleRequestMagnificVideoUpscalerCreativeFlavor? Type338 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechRequestDiscriminatorModel? Type339 { get; set; } + public global::Runway.CreateVideoUpscaleRequestDiscriminator? Type339 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingRequest? Type340 { get; set; } + public global::Runway.CreateVideoUpscaleRequestDiscriminatorModel? Type340 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingRequestElevenVoiceDubbing? Type341 { get; set; } + public global::Runway.CreateCharacterPerformanceRequest? Type341 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingRequestElevenVoiceDubbingTargetLang? Type342 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwo? Type342 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingRequestDiscriminator? Type343 { get; set; } + public global::Runway.Character? Type343 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingRequestDiscriminatorModel? Type344 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterCharacterImage? Type344 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationRequest? Type345 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterCharacterVideo? Type345 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationRequestElevenVoiceIsolation? Type346 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterDiscriminator? Type346 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationRequestDiscriminator? Type347 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoCharacterDiscriminatorType? Type347 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationRequestDiscriminatorModel? Type348 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoReferenceCharacterReferenceVideo? Type348 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequest? Type349 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoReferenceDiscriminator? Type349 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInput? Type350 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoReferenceDiscriminatorType? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoRatio? Type351 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputReferenceImage? Type352 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoContentModeration? Type352 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputReferenceImageRole? Type353 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestActTwoContentModerationPublicFigureThreshold? Type353 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type354 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestDiscriminator? Type354 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputReferenceVideo? Type355 { get; set; } + public global::Runway.CreateCharacterPerformanceRequestDiscriminatorModel? Type355 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole? Type356 { get; set; } + public global::Runway.CreateSoundEffectRequest? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::Runway.CreateSoundEffectRequestSeedAudio? Type357 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem? Type358 { get; set; } + public global::Runway.CreateSoundEffectRequestSeedAudioOutputFormat? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type359 { get; set; } + public global::Runway.CreateSoundEffectRequestElevenTextToSoundV2? Type359 { get; set; } /// /// /// - public global::Runway.AnyOf? Type360 { get; set; } + public global::Runway.CreateSoundEffectRequestDiscriminator? Type360 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1? Type361 { get; set; } + public global::Runway.CreateSoundEffectRequestDiscriminatorModel? Type361 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range? Type362 { get; set; } + public global::Runway.CreateSpeechToSpeechRequest? Type362 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2? Type363 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2? Type363 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range? Type364 { get; set; } + public global::Runway.Media? Type364 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputAspectRatio? Type365 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaSpeechToSpeechAudio? Type365 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputResolution? Type366 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaSpeechToSpeechVideo? Type366 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputContentModeration? Type367 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaDiscriminator? Type367 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? Type368 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2MediaDiscriminatorType? Type368 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequest? Type369 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceRunwayPresetVoice? Type369 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequestInput? Type370 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceRunwayPresetVoicePresetId? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type371 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminator? Type371 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequestInputReferenceImage? Type372 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestElevenMultilingualStsV2VoiceDiscriminatorType? Type372 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequestInputAspectRatio? Type373 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestDiscriminator? Type373 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequestInputResolution? Type374 { get; set; } + public global::Runway.CreateSpeechToSpeechRequestDiscriminatorModel? Type374 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequestInputContentModeration? Type375 { get; set; } + public global::Runway.CreateTextToSpeechRequest? Type375 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageRequestInputContentModerationPublicFigureThreshold? Type376 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudio? Type376 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequest? Type377 { get; set; } + public global::Runway.Voice4? Type377 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInput? Type378 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? Type378 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputType? Type379 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId? Type379 { get; set; } /// /// /// - public global::Runway.Voice4? Type380 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? Type380 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? Type381 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminator? Type381 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetId? Type382 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType? Type382 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? Type383 { get; set; } + public global::Runway.CreateTextToSpeechRequestSeedAudioOutputFormat? Type383 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminator? Type384 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2? Type384 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType? Type385 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoice? Type385 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type386 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId? Type386 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputReferenceAudio? Type387 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminator? Type387 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageRequest? Type388 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2VoiceDiscriminatorType? Type388 { get; set; } /// /// /// - public global::System.DateTime? Type389 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenV3? Type389 { get; set; } /// /// /// - public global::Runway.CreateUploadsRequest? Type390 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice? Type390 { get; set; } /// /// /// - public global::Runway.CreateUploadsRequestType? Type391 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId? Type391 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequest? Type392 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminator? Type392 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequestVersion? Type393 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType? Type393 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? Type394 { get; set; } + public global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization? Type394 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? Type395 { get; set; } + public global::Runway.CreateTextToSpeechRequestDiscriminator? Type395 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequest? Type396 { get; set; } + public global::Runway.CreateTextToSpeechRequestDiscriminatorModel? Type396 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequestVersion? Type397 { get; set; } + public global::Runway.CreateVoiceDubbingRequest? Type397 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequestReferenceImage? Type398 { get; set; } + public global::Runway.CreateVoiceDubbingRequestElevenVoiceDubbing? Type398 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequestQuality? Type399 { get; set; } + public global::Runway.CreateVoiceDubbingRequestElevenVoiceDubbingTargetLang? Type399 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequest? Type400 { get; set; } + public global::Runway.CreateVoiceDubbingRequestDiscriminator? Type400 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestVersion? Type401 { get; set; } + public global::Runway.CreateVoiceDubbingRequestDiscriminatorModel? Type401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type402 { get; set; } + public global::Runway.CreateVoiceIsolationRequest? Type402 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestProductImage? Type403 { get; set; } + public global::Runway.CreateVoiceIsolationRequestElevenVoiceIsolation? Type403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type404 { get; set; } + public global::Runway.CreateVoiceIsolationRequestDiscriminator? Type404 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestStyleImage? Type405 { get; set; } + public global::Runway.CreateVoiceIsolationRequestDiscriminatorModel? Type405 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestRatio? Type406 { get; set; } + public global::Runway.CreateGenerateVideoRequest? Type406 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageRequest? Type407 { get; set; } + public global::Runway.CreateGenerateVideoRequestInput? Type407 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageRequestVersion? Type408 { get; set; } + public global::System.Collections.Generic.IList? Type408 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageRequestImage? Type409 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceImage? Type409 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequest? Type410 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceImageRole? Type410 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestVersion? Type411 { get; set; } + public global::System.Collections.Generic.IList? Type411 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestReferenceVideo? Type412 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceVideo? Type412 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestOriginalProductImage? Type413 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type414 { get; set; } + public global::System.Collections.Generic.IList? Type414 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestNewProductImage? Type415 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem? Type415 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestNewProductImageView? Type416 { get; set; } + public global::System.Collections.Generic.IList>? Type416 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestResolution? Type417 { get; set; } + public global::Runway.AnyOf? Type417 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequest? Type418 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1? Type418 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1? Type419 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range? Type419 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Version? Type420 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2? Type420 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1FirstFrame? Type421 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range? Type421 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Ratio? Type422 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputAspectRatio? Type422 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2? Type423 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputResolution? Type423 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type424 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputContentModeration? Type424 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Shot? Type425 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? Type425 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Version? Type426 { get; set; } + public global::Runway.CreateGenerateImageRequest? Type426 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2FirstFrame? Type427 { get; set; } + public global::Runway.CreateGenerateImageRequestInput? Type427 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Ratio? Type428 { get; set; } + public global::System.Collections.Generic.IList? Type428 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminator? Type429 { get; set; } + public global::Runway.CreateGenerateImageRequestInputReferenceImage? Type429 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminatorMode? Type430 { get; set; } + public global::Runway.CreateGenerateImageRequestInputAspectRatio? Type430 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequest? Type431 { get; set; } + public global::Runway.CreateGenerateImageRequestInputResolution? Type431 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestVersion? Type432 { get; set; } + public global::Runway.CreateGenerateImageRequestInputContentModeration? Type432 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestCharacterImage? Type433 { get; set; } + public global::Runway.CreateGenerateImageRequestInputContentModerationPublicFigureThreshold? Type433 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestProductImage? Type434 { get; set; } + public global::Runway.CreateGenerateAudioRequest? Type434 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestRatio? Type435 { get; set; } + public global::Runway.CreateGenerateAudioRequestInput? Type435 { get; set; } /// /// /// - public global::Runway.CreateRoutersRequest? Type436 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputType? Type436 { get; set; } /// /// /// - public global::Runway.CreateRoutersRequestSettings? Type437 { get; set; } + public global::Runway.Voice5? Type437 { get; set; } /// /// /// - public global::Runway.CreateRoutersRequestSettingsModels? Type438 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? Type438 { get; set; } /// /// /// - public global::Runway.CreateRoutersRequestSettingsModelsMode? Type439 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoicePresetId? Type439 { get; set; } /// /// /// - public global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? Type440 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? Type440 { get; set; } /// /// /// - public global::Runway.CreateRoutersRequestSettingsOptimizeFor? Type441 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminator? Type441 { get; set; } /// /// /// - public global::Runway.PatchRoutersRequest? Type442 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType? Type442 { get; set; } /// /// /// - public global::Runway.PatchRoutersRequestSettings? Type443 { get; set; } + public global::System.Collections.Generic.IList? Type443 { get; set; } /// /// /// - public global::Runway.PatchRoutersRequestSettingsModels? Type444 { get; set; } + public global::Runway.CreateGenerateAudioRequestInputReferenceAudio? Type444 { get; set; } /// /// /// - public global::Runway.PatchRoutersRequestSettingsModelsMode? Type445 { get; set; } + public global::Runway.CreateOrganizationUsageRequest? Type445 { get; set; } /// /// /// - public global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? Type446 { get; set; } + public global::System.DateTime? Type446 { get; set; } /// /// /// - public global::Runway.PatchRoutersRequestSettingsOptimizeFor? Type447 { get; set; } + public global::Runway.CreateUploadsRequest? Type447 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequest? Type448 { get; set; } + public global::Runway.CreateUploadsRequestType? Type448 { get; set; } /// /// /// - public global::Runway.From? Type449 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequest? Type449 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromVoiceFromAudio? Type450 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestVersion? Type450 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromVoiceFromText? Type451 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? Type451 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromVoiceFromTextModel? Type452 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? Type452 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromDiscriminator? Type453 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequest? Type453 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromDiscriminatorType? Type454 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequestVersion? Type454 { get; set; } /// /// /// - public global::Runway.PatchVoicesRequest? Type455 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequestReferenceImage? Type455 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewRequest? Type456 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequestQuality? Type456 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewRequestModel? Type457 { get; set; } + public global::Runway.CreateRecipesProductAdRequest? Type457 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequest? Type458 { get; set; } + public global::Runway.CreateRecipesProductAdRequestVersion? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type459 { get; set; } + public global::System.Collections.Generic.IList? Type459 { get; set; } /// /// /// - public global::Runway.NodeOutputs? Type460 { get; set; } + public global::Runway.CreateRecipesProductAdRequestProductImage? Type460 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputPrimitive? Type461 { get; set; } + public global::System.Collections.Generic.IList? Type461 { get; set; } /// /// /// - public global::Runway.AnyOf? Type462 { get; set; } + public global::Runway.CreateRecipesProductAdRequestStyleImage? Type462 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputImage? Type463 { get; set; } + public global::Runway.CreateRecipesProductAdRequestRatio? Type463 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputVideo? Type464 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageRequest? Type464 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio? Type465 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageRequestVersion? Type465 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator? Type466 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageRequestImage? Type466 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType? Type467 { get; set; } + public global::Runway.CreateRecipesProductSwapRequest? Type467 { get; set; } /// /// /// - public global::Runway.GetDocumentsSort? Type468 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestVersion? Type468 { get; set; } /// /// /// - public global::Runway.GetDocumentsOrder? Type469 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestReferenceVideo? Type469 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponse? Type470 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestOriginalProductImage? Type470 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type471 { get; set; } + public global::System.Collections.Generic.IList? Type471 { get; set; } /// /// /// - public global::Runway.DataItem? Type472 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestNewProductImage? Type472 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessing? Type473 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestNewProductImageView? Type473 { get; set; } /// /// /// - public global::Runway.Voice5? Type474 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestResolution? Type474 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type475 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequest? Type475 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type476 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1? Type476 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Type477 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Version? Type477 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator? Type478 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1FirstFrame? Type478 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type479 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Ratio? Type479 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReady? Type480 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2? Type480 { get; set; } /// /// /// - public global::Runway.Voice6? Type481 { get; set; } + public global::System.Collections.Generic.IList? Type481 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type482 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Shot? Type482 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type483 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Version? Type483 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Type484 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2FirstFrame? Type484 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator? Type485 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Ratio? Type485 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type486 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminator? Type486 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailed? Type487 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminatorMode? Type487 { get; set; } /// /// /// - public global::Runway.Voice7? Type488 { get; set; } + public global::Runway.CreateRecipesProductUgcRequest? Type488 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type489 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestVersion? Type489 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type490 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestCharacterImage? Type490 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Type491 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestProductImage? Type491 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator? Type492 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestRatio? Type492 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type493 { get; set; } + public global::Runway.CreateRoutersRequest? Type493 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemDiscriminator? Type494 { get; set; } + public global::Runway.CreateRoutersRequestSettings? Type494 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus? Type495 { get; set; } + public global::Runway.CreateRoutersRequestSettingsModels? Type495 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponse? Type496 { get; set; } + public global::Runway.CreateRoutersRequestSettingsModelsMode? Type496 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessing? Type497 { get; set; } + public global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? Type497 { get; set; } /// /// /// - public global::Runway.Voice8? Type498 { get; set; } + public global::Runway.CreateRoutersRequestSettingsOptimizeFor? Type498 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type499 { get; set; } + public global::Runway.CreateRoutersRequestSettingsFallback? Type499 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type500 { get; set; } + public global::Runway.PatchRoutersRequest? Type500 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type501 { get; set; } + public global::Runway.PatchRoutersRequestSettings? Type501 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator? Type502 { get; set; } + public global::Runway.PatchRoutersRequestSettingsModels? Type502 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type503 { get; set; } + public global::Runway.PatchRoutersRequestSettingsModelsMode? Type503 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReady? Type504 { get; set; } + public global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? Type504 { get; set; } /// /// /// - public global::Runway.Voice9? Type505 { get; set; } + public global::Runway.PatchRoutersRequestSettingsOptimizeFor? Type505 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type506 { get; set; } + public global::Runway.PatchRoutersRequestSettingsFallback? Type506 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type507 { get; set; } + public global::Runway.CreateVoicesRequest? Type507 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type508 { get; set; } + public global::Runway.From? Type508 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator? Type509 { get; set; } + public global::Runway.CreateVoicesRequestFromVoiceFromAudio? Type509 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type510 { get; set; } + public global::Runway.CreateVoicesRequestFromVoiceFromText? Type510 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailed? Type511 { get; set; } + public global::Runway.CreateVoicesRequestFromVoiceFromTextModel? Type511 { get; set; } /// /// /// - public global::Runway.Voice10? Type512 { get; set; } + public global::Runway.CreateVoicesRequestFromDiscriminator? Type512 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type513 { get; set; } + public global::Runway.CreateVoicesRequestFromDiscriminatorType? Type513 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type514 { get; set; } + public global::Runway.PatchVoicesRequest? Type514 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type515 { get; set; } + public global::Runway.CreateVoicesPreviewRequest? Type515 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator? Type516 { get; set; } + public global::Runway.CreateVoicesPreviewRequestModel? Type516 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type517 { get; set; } + public global::Runway.CreateWorkflowsRequest? Type517 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseDiscriminator? Type518 { get; set; } + public global::System.Collections.Generic.Dictionary? Type518 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseDiscriminatorStatus? Type519 { get; set; } + public global::Runway.NodeOutputs? Type519 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponse? Type520 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputPrimitive? Type520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type521 { get; set; } + public global::Runway.AnyOf? Type521 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItem? Type522 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputImage? Type522 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemStatus? Type523 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputVideo? Type523 { get; set; } /// /// /// - public global::Runway.AvatarVariant1? Type524 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio? Type524 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary? Type525 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator? Type525 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary? Type526 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType? Type526 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator? Type527 { get; set; } + public global::Runway.GetDocumentsSort? Type527 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType? Type528 { get; set; } + public global::Runway.GetDocumentsOrder? Type528 { get; set; } /// /// /// - public global::Runway.GetAvatarUsageResponse? Type529 { get; set; } + public global::Runway.GetAvatarsResponse? Type529 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type530 { get; set; } + public global::System.Collections.Generic.IList? Type530 { get; set; } /// /// /// - public global::Runway.GetAvatarUsageResponseByDayItem? Type531 { get; set; } + public global::Runway.DataItem? Type531 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponse2? Type532 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessing? Type532 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1? Type533 { get; set; } + public global::Runway.Voice6? Type533 { get; set; } /// /// /// - public global::Runway.AvatarVariant12? Type534 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type534 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar? Type535 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type535 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar? Type536 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Type536 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator? Type537 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator? Type537 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType? Type538 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type539 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReady? Type539 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem? Type540 { get; set; } + public global::Runway.Voice7? Type540 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole? Type541 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type541 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type542 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type542 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall? Type543 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Type543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type544 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator? Type544 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult? Type545 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type545 { get; set; } /// /// /// - public global::Runway.AnyOf? Type546 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailed? Type546 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type547 { get; set; } + public global::Runway.Voice8? Type547 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1Tool? Type548 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type548 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1ToolType? Type549 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type549 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2? Type550 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Type550 { get; set; } /// /// /// - public global::Runway.AvatarVariant13? Type551 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator? Type551 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1PresetAvatar? Type552 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type552 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1CustomAvatar? Type553 { get; set; } + public global::Runway.GetAvatarsResponseDataItemDiscriminator? Type553 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1Discriminator? Type554 { get; set; } + public global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus? Type554 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType? Type555 { get; set; } + public global::Runway.CreateAvatarsResponse? Type555 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type556 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessing? Type556 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem? Type557 { get; set; } + public global::Runway.Voice9? Type557 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole? Type558 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type559 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type559 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall? Type560 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type560 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type561 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator? Type561 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult? Type562 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type562 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type563 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReady? Type563 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2Tool? Type564 { get; set; } + public global::Runway.Voice10? Type564 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2ToolType? Type565 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type565 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3? Type566 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type566 { get; set; } /// /// /// - public global::Runway.AvatarVariant14? Type567 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type567 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1PresetAvatar? Type568 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator? Type568 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1CustomAvatar? Type569 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type569 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1Discriminator? Type570 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailed? Type570 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType? Type571 { get; set; } + public global::Runway.Voice11? Type571 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type572 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type572 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItem? Type573 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type573 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole? Type574 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator? Type575 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolCall? Type576 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::Runway.CreateAvatarsResponseDiscriminator? Type577 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolResult? Type578 { get; set; } + public global::Runway.CreateAvatarsResponseDiscriminatorStatus? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type579 { get; set; } + public global::Runway.GetAvatarConversationsResponse? Type579 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3Tool? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3ToolType? Type581 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItem? Type581 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDiscriminator? Type582 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemStatus? Type582 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDiscriminatorStatus? Type583 { get; set; } + public global::Runway.AvatarVariant1? Type583 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponse2? Type584 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary? Type584 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessing? Type585 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary? Type585 { get; set; } /// /// /// - public global::Runway.Voice11? Type586 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator? Type586 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type587 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType? Type587 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type588 { get; set; } + public global::Runway.GetAvatarUsageResponse? Type588 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type589 { get; set; } + public global::System.Collections.Generic.IList? Type589 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator? Type590 { get; set; } + public global::Runway.GetAvatarUsageResponseByDayItem? Type590 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type591 { get; set; } + public global::Runway.GetAvatarConversationsResponse2? Type591 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReady? Type592 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1? Type592 { get; set; } /// /// /// - public global::Runway.Voice12? Type593 { get; set; } + public global::Runway.AvatarVariant12? Type593 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type594 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar? Type594 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type595 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar? Type595 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type596 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator? Type596 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator? Type597 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType? Type597 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type598 { get; set; } + public global::System.Collections.Generic.IList? Type598 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailed? Type599 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem? Type599 { get; set; } /// /// /// - public global::Runway.Voice13? Type600 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole? Type600 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type602 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall? Type602 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type603 { get; set; } + public global::System.Collections.Generic.IList? Type603 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator? Type604 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult? Type604 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type605 { get; set; } + public global::Runway.AnyOf? Type605 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDiscriminator? Type606 { get; set; } + public global::System.Collections.Generic.IList? Type606 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDiscriminatorStatus? Type607 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1Tool? Type607 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponse? Type608 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1ToolType? Type608 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessing? Type609 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2? Type609 { get; set; } /// /// /// - public global::Runway.Voice14? Type610 { get; set; } + public global::Runway.AvatarVariant13? Type610 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type611 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1PresetAvatar? Type611 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type612 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1CustomAvatar? Type612 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type613 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1Discriminator? Type613 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator? Type614 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType? Type614 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type615 { get; set; } + public global::System.Collections.Generic.IList? Type615 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReady? Type616 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem? Type616 { get; set; } /// /// /// - public global::Runway.Voice15? Type617 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole? Type617 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type618 { get; set; } + public global::System.Collections.Generic.IList? Type618 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type619 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall? Type619 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type620 { get; set; } + public global::System.Collections.Generic.IList? Type620 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator? Type621 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult? Type621 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type622 { get; set; } + public global::System.Collections.Generic.IList? Type622 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailed? Type623 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2Tool? Type623 { get; set; } /// /// /// - public global::Runway.Voice16? Type624 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2ToolType? Type624 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type625 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3? Type625 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type626 { get; set; } + public global::Runway.AvatarVariant14? Type626 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type627 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1PresetAvatar? Type627 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator? Type628 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1CustomAvatar? Type628 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type629 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1Discriminator? Type629 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseDiscriminator? Type630 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType? Type630 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseDiscriminatorStatus? Type631 { get; set; } + public global::System.Collections.Generic.IList? Type631 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponse2? Type632 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItem? Type632 { get; set; } /// /// /// - public global::Runway.CreateAvatarVideosResponse? Type633 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole? Type633 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponse? Type634 { get; set; } + public global::System.Collections.Generic.IList? Type634 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponseType? Type635 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolCall? Type635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type636 { get; set; } + public global::System.Collections.Generic.IList? Type636 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponseUsedByItem? Type637 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolResult? Type637 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponse? Type638 { get; set; } + public global::System.Collections.Generic.IList? Type638 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type639 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3Tool? Type639 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItem? Type640 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3ToolType? Type640 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItemType? Type641 { get; set; } + public global::Runway.GetAvatarConversationsResponseDiscriminator? Type641 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type642 { get; set; } + public global::Runway.GetAvatarConversationsResponseDiscriminatorStatus? Type642 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItemUsedByItem? Type643 { get; set; } + public global::Runway.GetAvatarsResponse2? Type643 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponse2? Type644 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessing? Type644 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseType? Type645 { get; set; } + public global::Runway.Voice12? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type646 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseUsedByItem? Type647 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type647 { get; set; } /// /// /// - public global::Runway.CreateRealtimeSessionsResponse? Type648 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type648 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponse? Type649 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator? Type649 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionNotReady? Type650 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type650 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionReady? Type651 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReady? Type651 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionRunning? Type652 { get; set; } + public global::Runway.Voice13? Type652 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionCompleted? Type653 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type653 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionFailed? Type654 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type654 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionCancelled? Type655 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type655 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseDiscriminator? Type656 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator? Type656 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus? Type657 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type657 { get; set; } /// /// /// - public global::Runway.GetTasksResponse? Type658 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailed? Type658 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant1? Type659 { get; set; } + public global::Runway.Voice14? Type659 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant2? Type660 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type660 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant3? Type661 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type661 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant4? Type662 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type662 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant5? Type663 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator? Type663 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant6? Type664 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type664 { get; set; } /// /// /// - public global::Runway.GetTasksResponseDiscriminator? Type665 { get; set; } + public global::Runway.GetAvatarsResponseDiscriminator? Type665 { get; set; } /// /// /// - public global::Runway.GetTasksResponseDiscriminatorStatus? Type666 { get; set; } + public global::Runway.GetAvatarsResponseDiscriminatorStatus? Type666 { get; set; } /// /// /// - public global::Runway.GetTasksResponse2? Type667 { get; set; } + public global::Runway.PatchAvatarsResponse? Type667 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoResponse? Type668 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessing? Type668 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoResponse2? Type669 { get; set; } + public global::Runway.Voice15? Type669 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoResponse? Type670 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type670 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoResponse2? Type671 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type671 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoResponse? Type672 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type672 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoResponse2? Type673 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator? Type673 { get; set; } /// /// /// - public global::Runway.CreateTextToImageResponse? Type674 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type674 { get; set; } /// /// /// - public global::Runway.CreateTextToImageResponse2? Type675 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReady? Type675 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleResponse? Type676 { get; set; } + public global::Runway.Voice16? Type676 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleResponse2? Type677 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type677 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleResponse? Type678 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type678 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleResponse2? Type679 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type679 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceResponse? Type680 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator? Type680 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceResponse2? Type681 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type681 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectResponse? Type682 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailed? Type682 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectResponse2? Type683 { get; set; } + public global::Runway.Voice17? Type683 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechResponse? Type684 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type684 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechResponse2? Type685 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type685 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechResponse? Type686 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type686 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechResponse2? Type687 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator? Type687 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingResponse? Type688 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type688 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingResponse2? Type689 { get; set; } + public global::Runway.PatchAvatarsResponseDiscriminator? Type689 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationResponse? Type690 { get; set; } + public global::Runway.PatchAvatarsResponseDiscriminatorStatus? Type690 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationResponse2? Type691 { get; set; } + public global::Runway.PatchAvatarsResponse2? Type691 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponse? Type692 { get; set; } + public global::Runway.CreateAvatarVideosResponse? Type692 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRouting? Type693 { get; set; } + public global::Runway.CreateDocumentsResponse? Type693 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? Type694 { get; set; } + public global::Runway.CreateDocumentsResponseType? Type694 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? Type695 { get; set; } + public global::System.Collections.Generic.IList? Type695 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? Type696 { get; set; } + public global::Runway.CreateDocumentsResponseUsedByItem? Type696 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? Type697 { get; set; } + public global::Runway.GetDocumentsResponse? Type697 { get; set; } /// /// /// - public global::Runway.AnyOf? Type698 { get; set; } + public global::System.Collections.Generic.IList? Type698 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseVariant1? Type699 { get; set; } + public global::Runway.GetDocumentsResponseDataItem? Type699 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type700 { get; set; } + public global::Runway.GetDocumentsResponseDataItemType? Type700 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseVariant1PipelineItem? Type701 { get; set; } + public global::System.Collections.Generic.IList? Type701 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseVariant1PipelineItemFilter? Type702 { get; set; } + public global::Runway.GetDocumentsResponseDataItemUsedByItem? Type702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type703 { get; set; } + public global::Runway.GetDocumentsResponse2? Type703 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseVariant1EmptiedByItem? Type704 { get; set; } + public global::Runway.GetDocumentsResponseType? Type704 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponseVariant2? Type705 { get; set; } + public global::System.Collections.Generic.IList? Type705 { get; set; } /// /// /// - public global::Runway.CreateGenerateVideoResponse3? Type706 { get; set; } + public global::Runway.GetDocumentsResponseUsedByItem? Type706 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponse? Type707 { get; set; } + public global::Runway.CreateRealtimeSessionsResponse? Type707 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseRouting? Type708 { get; set; } + public global::Runway.GetRealtimeSessionsResponse? Type708 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseRoutingResolvedSettings? Type709 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionNotReady? Type709 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor? Type710 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionReady? Type710 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseRoutingResolvedInput? Type711 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionRunning? Type711 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseRoutingEstimatedCost? Type712 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionCompleted? Type712 { get; set; } /// /// /// - public global::Runway.AnyOf? Type713 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionFailed? Type713 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseVariant1? Type714 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionCancelled? Type714 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type715 { get; set; } + public global::Runway.GetRealtimeSessionsResponseDiscriminator? Type715 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseVariant1PipelineItem? Type716 { get; set; } + public global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus? Type716 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseVariant1PipelineItemFilter? Type717 { get; set; } + public global::Runway.GetTasksResponse? Type717 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type718 { get; set; } + public global::Runway.GetTasksResponseVariant1? Type718 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseVariant1EmptiedByItem? Type719 { get; set; } + public global::Runway.GetTasksResponseVariant1EstimatedCost? Type719 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponseVariant2? Type720 { get; set; } + public global::Runway.GetTasksResponseVariant2? Type720 { get; set; } /// /// /// - public global::Runway.CreateGenerateImageResponse3? Type721 { get; set; } + public global::Runway.GetTasksResponseVariant2EstimatedCost? Type721 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponse? Type722 { get; set; } + public global::Runway.GetTasksResponseVariant3? Type722 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRouting? Type723 { get; set; } + public global::Runway.GetTasksResponseVariant3Cost? Type723 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings? Type724 { get; set; } + public global::Runway.GetTasksResponseVariant4? Type724 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor? Type725 { get; set; } + public global::Runway.GetTasksResponseVariant4EstimatedCost? Type725 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRoutingResolvedInput? Type726 { get; set; } + public global::Runway.GetTasksResponseVariant5? Type726 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType? Type727 { get; set; } + public global::Runway.GetTasksResponseVariant5Cost? Type727 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice? Type728 { get; set; } + public global::Runway.GetTasksResponseVariant6? Type728 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost? Type729 { get; set; } + public global::Runway.GetTasksResponseVariant6Cost? Type729 { get; set; } /// /// /// - public global::Runway.AnyOf? Type730 { get; set; } + public global::Runway.GetTasksResponseDiscriminator? Type730 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseVariant1? Type731 { get; set; } + public global::Runway.GetTasksResponseDiscriminatorStatus? Type731 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type732 { get; set; } + public global::Runway.GetTasksResponse2? Type732 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseVariant1PipelineItem? Type733 { get; set; } + public global::Runway.CreateImageToVideoResponse? Type733 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseVariant1PipelineItemFilter? Type734 { get; set; } + public global::Runway.CreateImageToVideoResponseEstimatedCost? Type734 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type735 { get; set; } + public global::Runway.CreateImageToVideoResponse2? Type735 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseVariant1EmptiedByItem? Type736 { get; set; } + public global::System.Collections.Generic.IList? Type736 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponseVariant2? Type737 { get; set; } + public global::Runway.CreateImageToVideoResponseIssue? Type737 { get; set; } /// /// /// - public global::Runway.CreateGenerateAudioResponse3? Type738 { get; set; } + public global::System.Collections.Generic.IList>? Type738 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponse? Type739 { get; set; } + public global::Runway.AnyOf? Type739 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTier? Type740 { get; set; } + public global::Runway.CreateImageToVideoResponse3? Type740 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type741 { get; set; } + public global::Runway.CreateTextToVideoResponse? Type741 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTierModels2? Type742 { get; set; } + public global::Runway.CreateTextToVideoResponseEstimatedCost? Type742 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsage? Type743 { get; set; } + public global::Runway.CreateTextToVideoResponse2? Type743 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type744 { get; set; } + public global::System.Collections.Generic.IList? Type744 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsageModels2? Type745 { get; set; } + public global::Runway.CreateTextToVideoResponseIssue? Type745 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponse? Type746 { get; set; } + public global::Runway.CreateTextToVideoResponse3? Type746 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type747 { get; set; } + public global::Runway.CreateVideoToVideoResponse? Type747 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResult? Type748 { get; set; } + public global::Runway.CreateVideoToVideoResponseEstimatedCost? Type748 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type749 { get; set; } + public global::Runway.CreateVideoToVideoResponse2? Type749 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type750 { get; set; } + public global::System.Collections.Generic.IList? Type750 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type751 { get; set; } + public global::Runway.CreateVideoToVideoResponseIssue? Type751 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type752 { get; set; } + public global::Runway.CreateVideoToVideoResponse3? Type752 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseModel? Type753 { get; set; } + public global::Runway.CreateTextToImageResponse? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::Runway.CreateTextToImageResponseEstimatedCost? Type754 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem? Type755 { get; set; } + public global::Runway.CreateTextToImageResponse2? Type755 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type756 { get; set; } + public global::System.Collections.Generic.IList? Type756 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit? Type757 { get; set; } + public global::Runway.CreateTextToImageResponseIssue? Type757 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse? Type758 { get; set; } + public global::Runway.CreateTextToImageResponse3? Type758 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type759 { get; set; } + public global::Runway.CreateImageUpscaleResponse? Type759 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse2? Type760 { get; set; } + public global::Runway.CreateImageUpscaleResponseEstimatedCost? Type760 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationResponse? Type761 { get; set; } + public global::Runway.CreateImageUpscaleResponse2? Type761 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationResponse2? Type762 { get; set; } + public global::System.Collections.Generic.IList? Type762 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse? Type763 { get; set; } + public global::Runway.CreateImageUpscaleResponseIssue? Type763 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse2? Type764 { get; set; } + public global::Runway.CreateImageUpscaleResponse3? Type764 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse? Type765 { get; set; } + public global::Runway.CreateVideoUpscaleResponse? Type765 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse2? Type766 { get; set; } + public global::Runway.CreateVideoUpscaleResponseEstimatedCost? Type766 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse? Type767 { get; set; } + public global::Runway.CreateVideoUpscaleResponse2? Type767 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse2? Type768 { get; set; } + public global::System.Collections.Generic.IList? Type768 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse? Type769 { get; set; } + public global::Runway.CreateVideoUpscaleResponseIssue? Type769 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse2? Type770 { get; set; } + public global::Runway.CreateVideoUpscaleResponse3? Type770 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse? Type771 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse? Type771 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse2? Type772 { get; set; } + public global::Runway.CreateCharacterPerformanceResponseEstimatedCost? Type772 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse? Type773 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse2? Type773 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse2? Type774 { get; set; } + public global::System.Collections.Generic.IList? Type774 { get; set; } /// /// /// - public global::Runway.GetRoutersResponse? Type775 { get; set; } + public global::Runway.CreateCharacterPerformanceResponseIssue? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse3? Type776 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItem? Type777 { get; set; } + public global::Runway.CreateSoundEffectResponse? Type777 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettings? Type778 { get; set; } + public global::Runway.CreateSoundEffectResponseEstimatedCost? Type778 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsModels? Type779 { get; set; } + public global::Runway.CreateSoundEffectResponse2? Type779 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsModelsMode? Type780 { get; set; } + public global::System.Collections.Generic.IList? Type780 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? Type781 { get; set; } + public global::Runway.CreateSoundEffectResponseIssue? Type781 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? Type782 { get; set; } + public global::Runway.CreateSoundEffectResponse3? Type782 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponse? Type783 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse? Type783 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettings? Type784 { get; set; } + public global::Runway.CreateSpeechToSpeechResponseEstimatedCost? Type784 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsModels? Type785 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse2? Type785 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsModelsMode? Type786 { get; set; } + public global::System.Collections.Generic.IList? Type786 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? Type787 { get; set; } + public global::Runway.CreateSpeechToSpeechResponseIssue? Type787 { get; set; } /// /// /// - public global::Runway.CreateRoutersResponseSettingsOptimizeFor? Type788 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse3? Type788 { get; set; } /// /// /// - public global::Runway.GetRoutersResponse2? Type789 { get; set; } + public global::Runway.CreateTextToSpeechResponse? Type789 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettings? Type790 { get; set; } + public global::Runway.CreateTextToSpeechResponseEstimatedCost? Type790 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsModels? Type791 { get; set; } + public global::Runway.CreateTextToSpeechResponse2? Type791 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsModelsMode? Type792 { get; set; } + public global::System.Collections.Generic.IList? Type792 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? Type793 { get; set; } + public global::Runway.CreateTextToSpeechResponseIssue? Type793 { get; set; } /// /// /// - public global::Runway.GetRoutersResponseSettingsOptimizeFor? Type794 { get; set; } + public global::Runway.CreateTextToSpeechResponse3? Type794 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponse? Type795 { get; set; } + public global::Runway.CreateVoiceDubbingResponse? Type795 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettings? Type796 { get; set; } + public global::Runway.CreateVoiceDubbingResponseEstimatedCost? Type796 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsModels? Type797 { get; set; } + public global::Runway.CreateVoiceDubbingResponse2? Type797 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsModelsMode? Type798 { get; set; } + public global::System.Collections.Generic.IList? Type798 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? Type799 { get; set; } + public global::Runway.CreateVoiceDubbingResponseIssue? Type799 { get; set; } /// /// /// - public global::Runway.PatchRoutersResponseSettingsOptimizeFor? Type800 { get; set; } + public global::Runway.CreateVoiceDubbingResponse3? Type800 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse? Type801 { get; set; } + public global::Runway.CreateVoiceIsolationResponse? Type801 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type802 { get; set; } + public global::Runway.CreateVoiceIsolationResponseEstimatedCost? Type802 { get; set; } /// /// /// - public global::Runway.DataItem2? Type803 { get; set; } + public global::Runway.CreateVoiceIsolationResponse2? Type803 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type804 { get; set; } + public global::System.Collections.Generic.IList? Type804 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceReady? Type805 { get; set; } + public global::Runway.CreateVoiceIsolationResponseIssue? Type805 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type806 { get; set; } + public global::Runway.CreateVoiceIsolationResponse3? Type806 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminator? Type807 { get; set; } + public global::Runway.CreateGenerateVideoResponse? Type807 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type808 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? Type808 { get; set; } /// /// /// - public global::Runway.CreateVoicesResponse? Type809 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? Type809 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse2? Type810 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? Type810 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceProcessing? Type811 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? Type811 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceReady? Type812 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? Type812 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceFailed? Type813 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? Type813 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminator? Type814 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback? Type814 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminatorStatus? Type815 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? Type815 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponse? Type816 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? Type816 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceProcessing? Type817 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? Type817 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceReady? Type818 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? Type818 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceFailed? Type819 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? Type819 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminator? Type820 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? Type820 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type821 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback? Type821 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewResponse? Type822 { get; set; } + public global::Runway.CreateGenerateVideoResponseDiscriminator? Type822 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse? Type823 { get; set; } + public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? Type823 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse2? Type824 { get; set; } + public global::Runway.AnyOf? Type824 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse? Type825 { get; set; } + public global::Runway.CreateGenerateVideoResponseVariant1? Type825 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseGraph? Type826 { get; set; } + public global::System.Collections.Generic.IList? Type826 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse2? Type827 { get; set; } + public global::Runway.CreateGenerateVideoResponseVariant1PipelineItem? Type827 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse3? Type828 { get; set; } + public global::Runway.CreateGenerateVideoResponseVariant1PipelineItemFilter? Type828 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type829 { get; set; } + public global::System.Collections.Generic.IList? Type829 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItem? Type830 { get; set; } + public global::Runway.CreateGenerateVideoResponseVariant1EmptiedByItem? Type830 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type831 { get; set; } + public global::Runway.CreateGenerateVideoResponseVariant2? Type831 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItemVersion? Type832 { get; set; } + public global::Runway.CreateGenerateVideoResponse3? Type832 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse? Type833 { get; set; } + public global::Runway.CreateGenerateVideoResponse4? Type833 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type834 { get; set; } + public global::Runway.CreateGenerateImageResponse? Type834 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type835 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? Type835 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type836 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting? Type836 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type837 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings? Type837 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type838 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor? Type838 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type839 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput? Type839 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type840 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost? Type840 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type841 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type842 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRun? Type842 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type843 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting? Type843 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type844 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings? Type844 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type845 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor? Type845 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type846 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput? Type846 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type847 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost? Type847 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type848 { get; set; } + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback? Type848 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse2? Type849 { get; set; } + public global::Runway.CreateGenerateImageResponseDiscriminator? Type849 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? Type850 { get; set; } + /// + /// + /// + public global::Runway.AnyOf? Type851 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponseVariant1? Type852 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type853 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponseVariant1PipelineItem? Type854 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponseVariant1PipelineItemFilter? Type855 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type856 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponseVariant1EmptiedByItem? Type857 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponseVariant2? Type858 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponse3? Type859 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateImageResponse4? Type860 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponse? Type861 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? Type862 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting? Type863 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings? Type864 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor? Type865 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput? Type866 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType? Type867 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice? Type868 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost? Type869 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback? Type870 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? Type871 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting? Type872 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings? Type873 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor? Type874 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput? Type875 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType? Type876 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice? Type877 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost? Type878 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback? Type879 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseDiscriminator? Type880 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? Type881 { get; set; } + /// + /// + /// + public global::Runway.AnyOf? Type882 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseVariant1? Type883 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type884 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseVariant1PipelineItem? Type885 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseVariant1PipelineItemFilter? Type886 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type887 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseVariant1EmptiedByItem? Type888 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseVariant2? Type889 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponse3? Type890 { get; set; } + /// + /// + /// + public global::Runway.CreateGenerateAudioResponse4? Type891 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappUsageResponse? Type892 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type893 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappUsageResponseDataItem? Type894 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappUsageResponseDataItemType? Type895 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponse? Type896 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type897 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponseDataItem? Type898 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction? Type899 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponse2? Type900 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponseAction? Type901 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponseMetadata? Type902 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationWebappAuditLogsResponse3? Type903 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationResponse? Type904 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationResponseTier? Type905 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type906 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationResponseTierModels2? Type907 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationResponseUsage? Type908 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type909 { get; set; } + /// + /// + /// + public global::Runway.GetOrganizationResponseUsageModels2? Type910 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponse? Type911 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type912 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponseResult? Type913 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type914 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type915 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type916 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type917 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponseModel? Type918 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type919 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItem? Type920 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type921 { get; set; } + /// + /// + /// + public global::Runway.CreateOrganizationUsageResponseResultsByApiKeyItemUsedCredit? Type922 { get; set; } + /// + /// + /// + public global::Runway.CreateUploadsResponse? Type923 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type924 { get; set; } + /// + /// + /// + public global::Runway.CreateUploadsResponse2? Type925 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponse? Type926 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost? Type927 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponse2? Type928 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type929 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponseIssue? Type930 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponse3? Type931 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMarketingStockImageResponse? Type932 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost? Type933 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMarketingStockImageResponse2? Type934 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type935 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMarketingStockImageResponseIssue? Type936 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMarketingStockImageResponse3? Type937 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductAdResponse? Type938 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductAdResponseEstimatedCost? Type939 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductAdResponse2? Type940 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type941 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductAdResponseIssue? Type942 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductAdResponse3? Type943 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductCampaignImageResponse? Type944 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost? Type945 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductCampaignImageResponse2? Type946 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type947 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductCampaignImageResponseIssue? Type948 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductCampaignImageResponse3? Type949 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductSwapResponse? Type950 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductSwapResponseEstimatedCost? Type951 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductSwapResponse2? Type952 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type953 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductSwapResponseIssue? Type954 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductSwapResponse3? Type955 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponse? Type956 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost? Type957 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponse2? Type958 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type959 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponseIssue? Type960 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponse3? Type961 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponse? Type962 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponseEstimatedCost? Type963 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponse2? Type964 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type965 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponseIssue? Type966 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponse3? Type967 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponse? Type968 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type969 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItem? Type970 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettings? Type971 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsModels? Type972 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsModelsMode? Type973 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? Type974 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? Type975 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsFallback? Type976 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponse? Type977 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettings? Type978 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsModels? Type979 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsModelsMode? Type980 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? Type981 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsOptimizeFor? Type982 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsFallback? Type983 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponse2? Type984 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettings? Type985 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsModels? Type986 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsModelsMode? Type987 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? Type988 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsOptimizeFor? Type989 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsFallback? Type990 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponse? Type991 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettings? Type992 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsModels? Type993 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsModelsMode? Type994 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? Type995 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsOptimizeFor? Type996 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsFallback? Type997 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponse? Type998 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type999 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItem? Type1000 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemStatus? Type1001 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemReasonCode2? Type1002 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1003 { get; set; } + /// + /// + /// + public global::Runway.PipelineItem? Type1004 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? Type1005 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter? Type1006 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? Type1007 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? Type1008 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome? Type1009 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator? Type1010 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? Type1011 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1012 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemEmptiedByItem? Type1013 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponse? Type1014 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1015 { get; set; } + /// + /// + /// + public global::Runway.DataItem2? Type1016 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type1017 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemVoiceReady? Type1018 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type1019 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemDiscriminator? Type1020 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type1021 { get; set; } + /// + /// + /// + public global::Runway.CreateVoicesResponse? Type1022 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponse2? Type1023 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseVoiceProcessing? Type1024 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseVoiceReady? Type1025 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseVoiceFailed? Type1026 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDiscriminator? Type1027 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDiscriminatorStatus? Type1028 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponse? Type1029 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseVoiceProcessing? Type1030 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseVoiceReady? Type1031 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseVoiceFailed? Type1032 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseDiscriminator? Type1033 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type1034 { get; set; } + /// + /// + /// + public global::Runway.CreateVoicesPreviewResponse? Type1035 { get; set; } + /// + /// + /// + public global::Runway.CreateWorkflowsResponse? Type1036 { get; set; } + /// + /// + /// + public global::Runway.CreateWorkflowsResponse2? Type1037 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponse? Type1038 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponseGraph? Type1039 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponse2? Type1040 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponse3? Type1041 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1042 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponseDataItem? Type1043 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1044 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponseDataItemVersion? Type1045 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponse? Type1046 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type1047 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type1048 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type1049 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type1050 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary>? Type1051 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type1052 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type1053 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type1054 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type1055 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type1056 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type1057 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type1058 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type1059 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type1060 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type1061 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponse2? Type1062 { get; set; } /// /// @@ -3485,354 +4337,514 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Runway.AnyOf>? ListType14 { get; set; } + public global::Runway.AnyOf>? ListType14 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType15 { get; set; } + /// + /// + /// + public global::Runway.AnyOf>? ListType16 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType17 { get; set; } + /// + /// + /// + public global::Runway.AnyOf>? ListType18 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType19 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType20 { get; set; } + /// + /// + /// + public global::Runway.AnyOf>? ListType21 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType22 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType23 { get; set; } + /// + /// + /// + public global::Runway.AnyOf>? ListType24 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType25 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType26 { get; set; } + /// + /// + /// + public global::Runway.AnyOf>? ListType27 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType28 { get; set; } + /// + /// + /// + public global::Runway.AnyOf>? ListType29 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType31 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType32 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType33 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType34 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType35 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType36 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType37 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType38 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType39 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType40 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType42 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType43 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType44 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType45 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType46 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType47 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType48 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType49 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType50 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType51 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType52 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType53 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } /// /// /// - public global::Runway.AnyOf>? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::Runway.AnyOf>? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::Runway.AnyOf>? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::Runway.AnyOf>? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::Runway.AnyOf>? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List>? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List>? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType101 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType141 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateAudio.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateAudio.g.cs index 8b415310..99efe431 100644 --- a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateAudio.g.cs +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateAudio.g.cs @@ -427,6 +427,43 @@ partial void ProcessCreateGenerateAudioResponseContent( h => h.Key, h => h.Value)); } + // You have exceeded the rate limit for this endpoint. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Runway.CreateGenerateAudioResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Runway.CreateGenerateAudioResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.CreateGenerateAudioResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -533,6 +570,9 @@ partial void ProcessCreateGenerateAudioResponseContent( /// /// 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 audio generation input. The router selects a model and maps these options to it. /// @@ -543,12 +583,14 @@ partial void ProcessCreateGenerateAudioResponseContent( string configId, global::Runway.CreateGenerateAudioRequestInput 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.CreateGenerateAudioRequest { ConfigId = configId, + DryRun = dryRun, Input = input, }; diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateImage.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateImage.g.cs index 08251525..30d03770 100644 --- a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateImage.g.cs +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateImage.g.cs @@ -427,6 +427,43 @@ partial void ProcessCreateGenerateImageResponseContent( h => h.Key, h => h.Value)); } + // You have exceeded the rate limit for this endpoint. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Runway.CreateGenerateImageResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Runway.CreateGenerateImageResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.CreateGenerateImageResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -533,6 +570,9 @@ partial void ProcessCreateGenerateImageResponseContent( /// /// 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 image generation input. The router selects a model and maps these options to it. /// @@ -543,12 +583,14 @@ partial void ProcessCreateGenerateImageResponseContent( string configId, global::Runway.CreateGenerateImageRequestInput 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.CreateGenerateImageRequest { ConfigId = configId, + DryRun = dryRun, Input = input, }; diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateVideo.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateVideo.g.cs index 41340030..d06580b2 100644 --- a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateGenerateVideo.g.cs @@ -427,6 +427,43 @@ partial void ProcessCreateGenerateVideoResponseContent( h => h.Key, h => h.Value)); } + // You have exceeded the rate limit for this endpoint. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Runway.CreateGenerateVideoResponse4? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Runway.CreateGenerateVideoResponse4.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.CreateGenerateVideoResponse4.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } if (__effectiveReadResponseAsString) { @@ -533,6 +570,9 @@ partial void ProcessCreateGenerateVideoResponseContent( /// /// 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. /// @@ -543,12 +583,14 @@ partial void ProcessCreateGenerateVideoResponseContent( 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, }; diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersByIdRequests.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersByIdRequests.g.cs new file mode 100644 index 00000000..7937169f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersByIdRequests.g.cs @@ -0,0 +1,468 @@ + +#nullable enable + +namespace Runway +{ + public partial class ModelRouterClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_GetRoutersByIdRequestsSecurityRequirement0 = + 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_GetRoutersByIdRequestsSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_GetRoutersByIdRequestsSecurityRequirement0, + }; + partial void PrepareGetRoutersByIdRequestsArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + ref string? cursor, + ref int limit, + ref string xRunwayVersion); + partial void PrepareGetRoutersByIdRequestsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + string? cursor, + int limit, + string xRunwayVersion); + partial void ProcessGetRoutersByIdRequestsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetRoutersByIdRequestsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Model Router requests
+ /// Paginated routing history for live Model Router requests (successful routes and failures). Playground dry runs are not recorded. + ///
+ /// + /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task GetRoutersByIdRequestsAsync( + global::System.Guid id, + int limit, + string? cursor = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetRoutersByIdRequestsAsResponseAsync( + id: id, + limit: limit, + cursor: cursor, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Model Router requests
+ /// Paginated routing history for live Model Router requests (successful routes and failures). Playground dry runs are not recorded. + ///
+ /// + /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> GetRoutersByIdRequestsAsResponseAsync( + global::System.Guid id, + int limit, + string? cursor = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetRoutersByIdRequestsArguments( + httpClient: HttpClient, + id: ref id, + cursor: ref cursor, + limit: ref limit, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetRoutersByIdRequestsSecurityRequirements, + operationName: "GetRoutersByIdRequestsAsync"); + + 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}/requests", + 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); + PrepareGetRoutersByIdRequestsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + 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: "getRoutersByIdRequests", + methodName: "GetRoutersByIdRequestsAsync", + pathTemplate: "$\"/v1/routers/{id}/requests\"", + 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: "getRoutersByIdRequests", + methodName: "GetRoutersByIdRequestsAsync", + pathTemplate: "$\"/v1/routers/{id}/requests\"", + 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: "getRoutersByIdRequests", + methodName: "GetRoutersByIdRequestsAsync", + pathTemplate: "$\"/v1/routers/{id}/requests\"", + 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); + ProcessGetRoutersByIdRequestsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutersByIdRequests", + methodName: "GetRoutersByIdRequestsAsync", + pathTemplate: "$\"/v1/routers/{id}/requests\"", + 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: "getRoutersByIdRequests", + methodName: "GetRoutersByIdRequestsAsync", + pathTemplate: "$\"/v1/routers/{id}/requests\"", + 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); + ProcessGetRoutersByIdRequestsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.GetRoutersRequestsResponse.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.GetRoutersRequestsResponse.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.Models.CreateAvatarsResponseAvatarFailed.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarFailed.g.cs index 2f7ca98d..2c71b152 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarFailed.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarFailed.g.cs @@ -39,9 +39,9 @@ public sealed partial class CreateAvatarsResponseAvatarFailed /// The voice configured for this avatar. ///
[global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice10JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice11JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice10 Voice { get; set; } + public required global::Runway.Voice11 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -140,7 +140,7 @@ public CreateAvatarsResponseAvatarFailed( global::System.Guid id, string name, string personality, - global::Runway.Voice10 voice, + global::Runway.Voice11 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarProcessing.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarProcessing.g.cs index 60089d01..d1adf046 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarProcessing.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarProcessing.g.cs @@ -39,9 +39,9 @@ public sealed partial class CreateAvatarsResponseAvatarProcessing /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice8JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice9JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice8 Voice { get; set; } + public required global::Runway.Voice9 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public CreateAvatarsResponseAvatarProcessing( global::System.Guid id, string name, string personality, - global::Runway.Voice8 voice, + global::Runway.Voice9 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarReady.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarReady.g.cs index aca332ba..a0ef00b0 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarReady.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateAvatarsResponseAvatarReady.g.cs @@ -39,9 +39,9 @@ public sealed partial class CreateAvatarsResponseAvatarReady /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice9JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice10JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice9 Voice { get; set; } + public required global::Runway.Voice10 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public CreateAvatarsResponseAvatarReady( global::System.Guid id, string name, string personality, - global::Runway.Voice9 voice, + global::Runway.Voice10 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse.g.cs index 7f7b5455..09c5ed7b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateCharacterPerformanceResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateCharacterPerformanceResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateCharacterPerformanceResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateCharacterPerformanceResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateCharacterPerformanceResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse2.g.cs index bac7d327..07324202 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateCharacterPerformanceResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateCharacterPerformanceResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateCharacterPerformanceResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.Json.g.cs new file mode 100644 index 00000000..52e0e1fa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateCharacterPerformanceResponse3 + { + /// + /// 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.CreateCharacterPerformanceResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateCharacterPerformanceResponse3), + jsonSerializerContext) as global::Runway.CreateCharacterPerformanceResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateCharacterPerformanceResponse3? 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.CreateCharacterPerformanceResponse3? 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.CreateCharacterPerformanceResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateCharacterPerformanceResponse3; + } + + /// + /// 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.CreateCharacterPerformanceResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.g.cs new file mode 100644 index 00000000..dba5944c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateCharacterPerformanceResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateCharacterPerformanceResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateCharacterPerformanceResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..06f40ff1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateCharacterPerformanceResponseEstimatedCost + { + /// + /// 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.CreateCharacterPerformanceResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateCharacterPerformanceResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateCharacterPerformanceResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateCharacterPerformanceResponseEstimatedCost? 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.CreateCharacterPerformanceResponseEstimatedCost? 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.CreateCharacterPerformanceResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateCharacterPerformanceResponseEstimatedCost; + } + + /// + /// 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.CreateCharacterPerformanceResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.g.cs new file mode 100644 index 00000000..64c510ce --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateCharacterPerformanceResponseEstimatedCost + { + /// + /// 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 CreateCharacterPerformanceResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateCharacterPerformanceResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.Json.g.cs new file mode 100644 index 00000000..c92d2784 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateCharacterPerformanceResponseIssue + { + /// + /// 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.CreateCharacterPerformanceResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateCharacterPerformanceResponseIssue), + jsonSerializerContext) as global::Runway.CreateCharacterPerformanceResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateCharacterPerformanceResponseIssue? 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.CreateCharacterPerformanceResponseIssue? 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.CreateCharacterPerformanceResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateCharacterPerformanceResponseIssue; + } + + /// + /// 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.CreateCharacterPerformanceResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.g.cs new file mode 100644 index 00000000..ccde6797 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateCharacterPerformanceResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateCharacterPerformanceResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateCharacterPerformanceResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.Json.g.cs new file mode 100644 index 00000000..92cf4171 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateCharacterPerformanceResponseIssue2 + { + /// + /// 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.CreateCharacterPerformanceResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateCharacterPerformanceResponseIssue2), + jsonSerializerContext) as global::Runway.CreateCharacterPerformanceResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateCharacterPerformanceResponseIssue2? 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.CreateCharacterPerformanceResponseIssue2? 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.CreateCharacterPerformanceResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateCharacterPerformanceResponseIssue2; + } + + /// + /// 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.CreateCharacterPerformanceResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.g.cs new file mode 100644 index 00000000..cacb8d9b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateCharacterPerformanceResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateCharacterPerformanceResponseIssue2 + { + + /// + /// 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.CreateGenerateAudioRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequest.g.cs index 2905fca9..9eb4c792 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequest.g.cs @@ -15,6 +15,12 @@ public sealed partial class CreateGenerateAudioRequest [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 audio generation input. The router selects a model and maps these options to it. /// @@ -37,14 +43,19 @@ public sealed partial class CreateGenerateAudioRequest /// /// Model-agnostic audio generation input. 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 CreateGenerateAudioRequest( string configId, - global::Runway.CreateGenerateAudioRequestInput input) + global::Runway.CreateGenerateAudioRequestInput 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)); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequestInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequestInput.g.cs index a988d67e..53cab2b3 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequestInput.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioRequestInput.g.cs @@ -27,8 +27,8 @@ public sealed partial class CreateGenerateAudioRequestInput /// The voice to speak with. When omitted, models that support a default voice remain eligible. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice4JsonConverter))] - public global::Runway.Voice4? Voice { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice5JsonConverter))] + public global::Runway.Voice5? Voice { get; set; } /// /// Optional reference audio clips guiding `audio` generation, for models that support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3 in order. @@ -81,7 +81,7 @@ public sealed partial class CreateGenerateAudioRequestInput public CreateGenerateAudioRequestInput( global::Runway.CreateGenerateAudioRequestInputType type, string promptText, - global::Runway.Voice4? voice, + global::Runway.Voice5? voice, global::System.Collections.Generic.IList? referenceAudios, double? duration, bool? loop) diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.Json.g.cs index 135868e5..f54c1508 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateAudioResponse + public readonly partial struct CreateGenerateAudioResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -54,7 +54,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::Runway.CreateGenerateAudioResponse), - jsonSerializerContext) as global::Runway.CreateGenerateAudioResponse; + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponse?; } /// @@ -101,7 +101,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::Runway.CreateGenerateAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponse; + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponse?; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.g.cs index df5b9103..ae69ddf4 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,54 +7,297 @@ namespace Runway /// /// /// - public sealed partial class CreateGenerateAudioResponse + public readonly partial struct CreateGenerateAudioResponse : global::System.IEquatable { /// - /// 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; } + public global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? DryRun { get; } /// - /// 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.CreateGenerateAudioResponseRouting Routing { get; set; } +#if NET6_0_OR_GREATER + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? False { get; init; } +#else + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? 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.CreateGenerateAudioResponseRoutedAudioTaskCreated? value) + { + value = False; + return IsFalse; + } /// - /// 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(); + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated PickFalse() => IsFalse + ? False! + : throw new global::System.InvalidOperationException($"Expected union variant 'False' but the value was {ToString()}."); /// - /// 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] +#if NET6_0_OR_GREATER + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? True { get; init; } +#else + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? 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.CreateGenerateAudioResponseRoutedAudioDryRun? value) + { + value = True; + return IsTrue; + } + + /// + /// + /// + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun PickTrue() => IsTrue + ? True! + : throw new global::System.InvalidOperationException($"Expected union variant 'True' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateGenerateAudioResponse(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated value) => new CreateGenerateAudioResponse((global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated?(CreateGenerateAudioResponse @this) => @this.False; + + /// + /// + /// + public CreateGenerateAudioResponse(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? value) + { + False = value; + } + + /// + /// + /// + public static CreateGenerateAudioResponse FromFalse(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? value) => new CreateGenerateAudioResponse(value); + + /// + /// + /// + public static implicit operator CreateGenerateAudioResponse(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun value) => new CreateGenerateAudioResponse((global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun?(CreateGenerateAudioResponse @this) => @this.True; + + /// + /// + /// + public CreateGenerateAudioResponse(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? value) + { + True = value; + } + + /// + /// + /// + public static CreateGenerateAudioResponse FromTrue(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? value) => new CreateGenerateAudioResponse(value); + + /// + /// + /// public CreateGenerateAudioResponse( - global::System.Guid id, - global::Runway.CreateGenerateAudioResponseRouting routing) + global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? dryRun, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? @false, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? @true + ) { - this.Id = id; - this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); + DryRun = dryRun; + + False = @false; + True = @true; } /// - /// Initializes a new instance of the class. + /// + /// + public object? Object => + True as object ?? + False as object + ; + + /// + /// + /// + public override string? ToString() => + False?.ToString() ?? + True?.ToString() + ; + + /// + /// /// - public CreateGenerateAudioResponse() + 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.CreateGenerateAudioResponseRoutedAudioTaskCreated), + True, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun), + }; + 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(CreateGenerateAudioResponse 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 ==(CreateGenerateAudioResponse obj1, CreateGenerateAudioResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateGenerateAudioResponse obj1, CreateGenerateAudioResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateGenerateAudioResponse o && Equals(o); + } } -} \ No newline at end of file +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.Json.g.cs similarity index 91% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRouting.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.Json.g.cs index 1159e1a8..51ea67e8 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRouting.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateAudioResponseRouting + public sealed partial class CreateGenerateAudioResponse4 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRouting? FromJson( + public static global::Runway.CreateGenerateAudioResponse4? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateAudioResponseRouting), - jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRouting; + typeof(global::Runway.CreateGenerateAudioResponse4), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponse4; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRouting? FromJson( + public static global::Runway.CreateGenerateAudioResponse4? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateAudioResponseRouting? FromJson( + public static global::Runway.CreateGenerateAudioResponse4? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateAudioResponseRouting), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRouting; + typeof(global::Runway.CreateGenerateAudioResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponse4; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.g.cs new file mode 100644 index 00000000..11f9b653 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponse4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateAudioResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateAudioResponse4( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.Json.g.cs index 4d0f8c40..b3391bed 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateAudioResponseRoutingEstimatedCost + public sealed partial class CreateGenerateAudioResponseDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateAudioResponseDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost), - jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost; + typeof(global::Runway.CreateGenerateAudioResponseDiscriminator), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseDiscriminator; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateAudioResponseDiscriminator? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateAudioResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateAudioResponseDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateAudioResponseRoutingEstimatedCost), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost; + typeof(global::Runway.CreateGenerateAudioResponseDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseDiscriminator; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.g.cs new file mode 100644 index 00000000..c56c4344 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateAudioResponseDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseDiscriminatorDryRunJsonConverter))] + public global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? 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 CreateGenerateAudioResponseDiscriminator( + global::Runway.CreateGenerateAudioResponseDiscriminatorDryRun? dryRun) + { + this.DryRun = dryRun; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs new file mode 100644 index 00000000..f32bc8e2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseDiscriminatorDryRun.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateGenerateAudioResponseDiscriminatorDryRun + { + /// + /// + /// + False, + /// + /// + /// + True, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateAudioResponseDiscriminatorDryRunExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateAudioResponseDiscriminatorDryRun value) + { + return value switch + { + CreateGenerateAudioResponseDiscriminatorDryRun.False => "False", + CreateGenerateAudioResponseDiscriminatorDryRun.True => "True", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateAudioResponseDiscriminatorDryRun? ToEnum(string value) + { + return value switch + { + "False" => CreateGenerateAudioResponseDiscriminatorDryRun.False, + "True" => CreateGenerateAudioResponseDiscriminatorDryRun.True, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.Json.g.cs index 08cf35a9..155f06f1 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateAudioResponseRoutingResolvedInput + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRun { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedInput), - jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutingResolvedInput; + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateAudioResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateAudioResponseRoutingResolvedInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutingResolvedInput; + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRun; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.g.cs new file mode 100644 index 00000000..91ac35ac --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRun.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRun + { + /// + /// + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRouting 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 CreateGenerateAudioResponseRoutedAudioDryRun( + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting 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 CreateGenerateAudioResponseRoutedAudioDryRun() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateGenerateAudioResponseRoutedAudioDryRun FromRouting(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting routing) + { + return new CreateGenerateAudioResponseRoutedAudioDryRun + { + Routing = routing, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.Json.g.cs new file mode 100644 index 00000000..f085c7bd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRouting + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRouting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting? 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.CreateGenerateAudioResponseRoutedAudioDryRunRouting? 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.CreateGenerateAudioResponseRoutedAudioDryRunRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRouting; + } + + /// + /// 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.CreateGenerateAudioResponseRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.g.cs similarity index 73% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRouting.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.g.cs index 8dd135e6..24331bda 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRouting.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRouting.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Metadata describing which model the router selected and why. /// - public sealed partial class CreateGenerateAudioResponseRouting + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRouting { /// /// The public name of the model the router selected. @@ -34,21 +34,27 @@ public sealed partial class CreateGenerateAudioResponseRouting /// [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings ResolvedSettings { get; set; } + public required global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings 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.CreateGenerateAudioResponseRoutingResolvedInput ResolvedInput { get; set; } + public required global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput 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.CreateGenerateAudioResponseRoutingEstimatedCost EstimatedCost { get; set; } + public required global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost EstimatedCost { get; set; } + + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacityFallback")] + public global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback? CapacityFallback { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,7 +63,7 @@ public sealed partial class CreateGenerateAudioResponseRouting public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The public name of the model the router selected. @@ -77,16 +83,20 @@ public sealed partial class CreateGenerateAudioResponseRouting /// /// Estimated cost, computed against current pricing. /// + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateAudioResponseRouting( + public CreateGenerateAudioResponseRoutedAudioDryRunRouting( string model, string provider, string configId, - global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings resolvedSettings, - global::Runway.CreateGenerateAudioResponseRoutingResolvedInput resolvedInput, - global::Runway.CreateGenerateAudioResponseRoutingEstimatedCost estimatedCost) + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost estimatedCost, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback? capacityFallback) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); @@ -94,12 +104,13 @@ public CreateGenerateAudioResponseRouting( 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)); + this.CapacityFallback = capacityFallback; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateAudioResponseRouting() + public CreateGenerateAudioResponseRoutedAudioDryRunRouting() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.Json.g.cs new file mode 100644 index 00000000..c0d28f76 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.g.cs new file mode 100644 index 00000000..6c0fe99b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback + { + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback( + global::System.Collections.Generic.IList skipped, + bool allExhausted) + { + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingCapacityFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.Json.g.cs new file mode 100644 index 00000000..ac6e232d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost; + } + + /// + /// 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.CreateGenerateAudioResponseRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.g.cs similarity index 77% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.g.cs index 3c7c91ee..d40c116b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingEstimatedCost.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Estimated cost, computed against current pricing. /// - public sealed partial class CreateGenerateAudioResponseRoutingEstimatedCost + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost { /// /// Estimated cost of the generation in credits. @@ -22,7 +22,7 @@ public sealed partial class CreateGenerateAudioResponseRoutingEstimatedCost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Estimated cost of the generation in credits. @@ -30,16 +30,16 @@ public sealed partial class CreateGenerateAudioResponseRoutingEstimatedCost #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateAudioResponseRoutingEstimatedCost( + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost( double credits) { this.Credits = credits; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateAudioResponseRoutingEstimatedCost() + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingEstimatedCost() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.Json.g.cs new file mode 100644 index 00000000..280eddfe --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput; + } + + /// + /// 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.CreateGenerateAudioResponseRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.g.cs similarity index 73% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.g.cs index 1bc9d4e8..7c756811 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInput.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput.g.cs @@ -6,23 +6,23 @@ namespace Runway /// /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. /// - public sealed partial class CreateGenerateAudioResponseRoutingResolvedInput + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput { /// /// The prompt mode the router routed for. /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType Type { get; set; } + public required global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType Type { get; set; } /// /// How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutingResolvedInputVoiceJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice Voice { get; set; } + public required global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice Voice { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,7 +31,7 @@ public sealed partial class CreateGenerateAudioResponseRoutingResolvedInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The prompt mode the router routed for. @@ -42,18 +42,18 @@ public sealed partial class CreateGenerateAudioResponseRoutingResolvedInput #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateAudioResponseRoutingResolvedInput( - global::Runway.CreateGenerateAudioResponseRoutingResolvedInputType type, - global::Runway.CreateGenerateAudioResponseRoutingResolvedInputVoice voice) + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput( + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType type, + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice voice) { this.Type = type; this.Voice = voice; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateAudioResponseRoutingResolvedInput() + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInput() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs similarity index 54% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs index f41aa0eb..b8232a61 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputType.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// The prompt mode the router routed for. /// - public enum CreateGenerateAudioResponseRoutingResolvedInputType + public enum CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType { /// /// @@ -21,29 +21,29 @@ public enum CreateGenerateAudioResponseRoutingResolvedInputType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateGenerateAudioResponseRoutingResolvedInputTypeExtensions + public static class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateGenerateAudioResponseRoutingResolvedInputType value) + public static string ToValueString(this CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType value) { return value switch { - CreateGenerateAudioResponseRoutingResolvedInputType.Audio => "audio", - CreateGenerateAudioResponseRoutingResolvedInputType.Speech => "speech", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.Audio => "audio", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.Speech => "speech", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateGenerateAudioResponseRoutingResolvedInputType? ToEnum(string value) + public static CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType? ToEnum(string value) { return value switch { - "audio" => CreateGenerateAudioResponseRoutingResolvedInputType.Audio, - "speech" => CreateGenerateAudioResponseRoutingResolvedInputType.Speech, + "audio" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.Audio, + "speech" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputType.Speech, _ => null, }; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs similarity index 59% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs index 7b51d3ca..1fedbf56 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedInputVoice.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. /// - public enum CreateGenerateAudioResponseRoutingResolvedInputVoice + public enum CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice { /// /// the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. @@ -29,33 +29,33 @@ public enum CreateGenerateAudioResponseRoutingResolvedInputVoice /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateGenerateAudioResponseRoutingResolvedInputVoiceExtensions + public static class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoiceExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateGenerateAudioResponseRoutingResolvedInputVoice value) + public static string ToValueString(this CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice value) { return value switch { - CreateGenerateAudioResponseRoutingResolvedInputVoice.Default => "default", - CreateGenerateAudioResponseRoutingResolvedInputVoice.None => "none", - CreateGenerateAudioResponseRoutingResolvedInputVoice.Preset => "preset", - CreateGenerateAudioResponseRoutingResolvedInputVoice.ReferenceAudio => "reference-audio", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.Default => "default", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.None => "none", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.Preset => "preset", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.ReferenceAudio => "reference-audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateGenerateAudioResponseRoutingResolvedInputVoice? ToEnum(string value) + public static CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice? ToEnum(string value) { return value switch { - "default" => CreateGenerateAudioResponseRoutingResolvedInputVoice.Default, - "none" => CreateGenerateAudioResponseRoutingResolvedInputVoice.None, - "preset" => CreateGenerateAudioResponseRoutingResolvedInputVoice.Preset, - "reference-audio" => CreateGenerateAudioResponseRoutingResolvedInputVoice.ReferenceAudio, + "default" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.Default, + "none" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.None, + "preset" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.Preset, + "reference-audio" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedInputVoice.ReferenceAudio, _ => null, }; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.Json.g.cs new file mode 100644 index 00000000..07279743 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings; + } + + /// + /// 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.CreateGenerateAudioResponseRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.g.cs similarity index 76% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.g.cs index 55cbebe8..d3ec6001 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings.g.cs @@ -6,15 +6,15 @@ namespace Runway /// /// The resolved config settings the router used for this request. /// - public sealed partial class CreateGenerateAudioResponseRoutingResolvedSettings + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings { /// /// 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.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } + public required global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } /// /// The applied maximum credits per generation for this request's modality, or null if the config sets no ceiling. @@ -29,7 +29,7 @@ public sealed partial class CreateGenerateAudioResponseRoutingResolvedSettings public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. @@ -40,8 +40,8 @@ public sealed partial class CreateGenerateAudioResponseRoutingResolvedSettings #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateAudioResponseRoutingResolvedSettings( - global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor optimizeFor, + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings( + global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor optimizeFor, double? priceCeiling) { this.OptimizeFor = optimizeFor; @@ -49,9 +49,9 @@ public CreateGenerateAudioResponseRoutingResolvedSettings( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateAudioResponseRoutingResolvedSettings() + public CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettings() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..b3e916cf --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.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 CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 00000000..ba8b3858 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.g.cs similarity index 83% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.g.cs index a359b5b4..c3b77b51 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling.g.cs @@ -6,7 +6,7 @@ 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 CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling + public sealed partial class CreateGenerateAudioResponseRoutedAudioDryRunRoutingResolvedSettingsPriceCeiling { /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.Json.g.cs index f5426cf2..e982962f 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettings.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateAudioResponseRoutingResolvedSettings + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreated { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings), - jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings; + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateAudioResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateAudioResponseRoutingResolvedSettings), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutingResolvedSettings; + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreated; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.g.cs new file mode 100644 index 00000000..aae7adb4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreated.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreated + { + /// + /// + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting 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 CreateGenerateAudioResponseRoutedAudioTaskCreated( + global::System.Guid id, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting 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 CreateGenerateAudioResponseRoutedAudioTaskCreated() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.Json.g.cs new file mode 100644 index 00000000..cd98ff6a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.g.cs new file mode 100644 index 00000000..f6fc0588 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Metadata describing which model the router selected and why. + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost EstimatedCost { get; set; } + + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacityFallback")] + public global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback? CapacityFallback { 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. + /// + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting( + string model, + string provider, + string configId, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost estimatedCost, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback? capacityFallback) + { + 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)); + this.CapacityFallback = capacityFallback; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRouting() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.Json.g.cs new file mode 100644 index 00000000..282ec03e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.g.cs new file mode 100644 index 00000000..5962da57 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback + { + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback( + global::System.Collections.Generic.IList skipped, + bool allExhausted) + { + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingCapacityFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.Json.g.cs new file mode 100644 index 00000000..092be83c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.g.cs new file mode 100644 index 00000000..04bf0da9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost + { + /// + /// 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 CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.Json.g.cs new file mode 100644 index 00000000..f4dcb9d7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.g.cs new file mode 100644 index 00000000..f13690a3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput + { + /// + /// The prompt mode the router routed for. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType Type { get; set; } + + /// + /// How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice Voice { 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 prompt mode the router routed for. + /// + /// + /// How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput( + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType type, + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice voice) + { + this.Type = type; + this.Voice = voice; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs new file mode 100644 index 00000000..b21e79b7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The prompt mode the router routed for. + /// + public enum CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType + { + /// + /// + /// + Audio, + /// + /// + /// + Speech, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType value) + { + return value switch + { + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.Audio => "audio", + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.Speech => "speech", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType? ToEnum(string value) + { + return value switch + { + "audio" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.Audio, + "speech" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputType.Speech, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs new file mode 100644 index 00000000..f8e3b7b3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Runway +{ + /// + /// How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// + public enum CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice + { + /// + /// the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// + Default, + /// + /// the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// + None, + /// + /// the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// + Preset, + /// + /// the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio. + /// + ReferenceAudio, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoiceExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice value) + { + return value switch + { + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.Default => "default", + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.None => "none", + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.Preset => "preset", + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.ReferenceAudio => "reference-audio", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice? ToEnum(string value) + { + return value switch + { + "default" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.Default, + "none" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.None, + "preset" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.Preset, + "reference-audio" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedInputVoice.ReferenceAudio, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.Json.g.cs new file mode 100644 index 00000000..0a11401f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.g.cs new file mode 100644 index 00000000..e26ede39 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolved config settings the router used for this request. + /// + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor 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 CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings( + global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor optimizeFor, + double? priceCeiling) + { + this.OptimizeFor = optimizeFor; + this.PriceCeiling = priceCeiling; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..f4b47d2c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.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 CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 00000000..b0731730 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling + { + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs new file mode 100644 index 00000000..d3900bd4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling.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 CreateGenerateAudioResponseRoutedAudioTaskCreatedRoutingResolvedSettingsPriceCeiling + { + + /// + /// 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.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index 0613806b..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - public enum CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor - { - /// - /// - /// - Cost, - /// - /// - /// - Latency, - /// - /// - /// - Quality, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeForExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor value) - { - return value switch - { - CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.Cost => "cost", - CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.Latency => "latency", - CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.Quality => "quality", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor? ToEnum(string value) - { - return value switch - { - "cost" => CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.Cost, - "latency" => CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.Latency, - "quality" => CreateGenerateAudioResponseRoutingResolvedSettingsOptimizeFor.Quality, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs deleted file mode 100644 index 4c5a55ef..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling - { - /// - /// 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.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext) as global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateAudioResponseRoutingResolvedSettingsPriceCeiling; - } - - /// - /// 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.CreateGenerateAudioResponseVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1.g.cs index 30667d99..d270c330 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1.g.cs @@ -23,7 +23,7 @@ public sealed partial class CreateGenerateAudioResponseVariant1 public string Code { get; set; } = "no_eligible_model"; /// - /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// The hard-filter pipeline in execution order with surviving model ids at each stage. /// [global::System.Text.Json.Serialization.JsonPropertyName("pipeline")] [global::System.Text.Json.Serialization.JsonRequired] @@ -47,7 +47,7 @@ public sealed partial class CreateGenerateAudioResponseVariant1 /// /// /// - /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// The hard-filter pipeline in execution order with surviving model ids at each stage. /// /// /// The filter(s) that reduced the eligible pool to zero. diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItem.g.cs index 6d5d2ae2..b8259cda 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItem.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItem.g.cs @@ -11,17 +11,24 @@ public sealed partial class CreateGenerateAudioResponseVariant1PipelineItem /// /// /// + /// "filter" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "filter"; + + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// [global::System.Text.Json.Serialization.JsonPropertyName("filter")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateAudioResponseVariant1PipelineItemFilterJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::Runway.CreateGenerateAudioResponseVariant1PipelineItemFilter Filter { get; set; } /// - /// How many models remained eligible after this filter ran. + /// Model IDs of the models that remained eligible after this filter stage. /// - [global::System.Text.Json.Serialization.JsonPropertyName("remaining")] + [global::System.Text.Json.Serialization.JsonPropertyName("models")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Remaining { get; set; } + public required global::System.Collections.Generic.IList Models { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,19 +39,24 @@ public sealed partial class CreateGenerateAudioResponseVariant1PipelineItem /// /// Initializes a new instance of the class. /// - /// - /// - /// How many models remained eligible after this filter ran. + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + /// + /// Model IDs of the models that remained eligible after this filter stage. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateGenerateAudioResponseVariant1PipelineItem( global::Runway.CreateGenerateAudioResponseVariant1PipelineItemFilter filter, - int remaining) + global::System.Collections.Generic.IList models, + string type = "filter") { + this.Type = type; this.Filter = filter; - this.Remaining = remaining; + this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItemFilter.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItemFilter.g.cs index b8d0e154..1689bbc5 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItemFilter.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateAudioResponseVariant1PipelineItemFilter.g.cs @@ -4,28 +4,28 @@ namespace Runway { /// - /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// public enum CreateGenerateAudioResponseVariant1PipelineItemFilter { /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// AllowDeny, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// Capability, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// InputSupport, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// Price, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// PromptLength, } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageRequest.g.cs index a7df36d6..b9f50d59 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageRequest.g.cs @@ -15,6 +15,12 @@ public sealed partial class CreateGenerateImageRequest [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 image generation input. The router selects a model and maps these options to it. /// @@ -37,14 +43,19 @@ public sealed partial class CreateGenerateImageRequest /// /// Model-agnostic image generation input. 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 CreateGenerateImageRequest( string configId, - global::Runway.CreateGenerateImageRequestInput input) + global::Runway.CreateGenerateImageRequestInput 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)); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.Json.g.cs index 2e967a06..c76ae40b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateImageResponse + public readonly partial struct CreateGenerateImageResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -54,7 +54,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::Runway.CreateGenerateImageResponse), - jsonSerializerContext) as global::Runway.CreateGenerateImageResponse; + jsonSerializerContext) as global::Runway.CreateGenerateImageResponse?; } /// @@ -101,7 +101,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::Runway.CreateGenerateImageResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponse; + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponse?; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.g.cs index 83855b8e..d0d829dc 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,54 +7,297 @@ namespace Runway /// /// /// - public sealed partial class CreateGenerateImageResponse + public readonly partial struct CreateGenerateImageResponse : global::System.IEquatable { /// - /// 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; } + public global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? DryRun { get; } /// - /// 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.CreateGenerateImageResponseRouting Routing { get; set; } +#if NET6_0_OR_GREATER + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? False { get; init; } +#else + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? 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.CreateGenerateImageResponseRoutedImageTaskCreated? value) + { + value = False; + return IsFalse; + } /// - /// 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(); + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated PickFalse() => IsFalse + ? False! + : throw new global::System.InvalidOperationException($"Expected union variant 'False' but the value was {ToString()}."); /// - /// 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] +#if NET6_0_OR_GREATER + public global::Runway.CreateGenerateImageResponseRoutedImageDryRun? True { get; init; } +#else + public global::Runway.CreateGenerateImageResponseRoutedImageDryRun? 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.CreateGenerateImageResponseRoutedImageDryRun? value) + { + value = True; + return IsTrue; + } + + /// + /// + /// + public global::Runway.CreateGenerateImageResponseRoutedImageDryRun PickTrue() => IsTrue + ? True! + : throw new global::System.InvalidOperationException($"Expected union variant 'True' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateGenerateImageResponse(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated value) => new CreateGenerateImageResponse((global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated?(CreateGenerateImageResponse @this) => @this.False; + + /// + /// + /// + public CreateGenerateImageResponse(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? value) + { + False = value; + } + + /// + /// + /// + public static CreateGenerateImageResponse FromFalse(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? value) => new CreateGenerateImageResponse(value); + + /// + /// + /// + public static implicit operator CreateGenerateImageResponse(global::Runway.CreateGenerateImageResponseRoutedImageDryRun value) => new CreateGenerateImageResponse((global::Runway.CreateGenerateImageResponseRoutedImageDryRun?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateGenerateImageResponseRoutedImageDryRun?(CreateGenerateImageResponse @this) => @this.True; + + /// + /// + /// + public CreateGenerateImageResponse(global::Runway.CreateGenerateImageResponseRoutedImageDryRun? value) + { + True = value; + } + + /// + /// + /// + public static CreateGenerateImageResponse FromTrue(global::Runway.CreateGenerateImageResponseRoutedImageDryRun? value) => new CreateGenerateImageResponse(value); + + /// + /// + /// public CreateGenerateImageResponse( - global::System.Guid id, - global::Runway.CreateGenerateImageResponseRouting routing) + global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? dryRun, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? @false, + global::Runway.CreateGenerateImageResponseRoutedImageDryRun? @true + ) { - this.Id = id; - this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); + DryRun = dryRun; + + False = @false; + True = @true; } /// - /// Initializes a new instance of the class. + /// + /// + public object? Object => + True as object ?? + False as object + ; + + /// + /// + /// + public override string? ToString() => + False?.ToString() ?? + True?.ToString() + ; + + /// + /// /// - public CreateGenerateImageResponse() + 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.CreateGenerateImageResponseRoutedImageTaskCreated), + True, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun), + }; + 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(CreateGenerateImageResponse 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 ==(CreateGenerateImageResponse obj1, CreateGenerateImageResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateGenerateImageResponse obj1, CreateGenerateImageResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateGenerateImageResponse o && Equals(o); + } } -} \ No newline at end of file +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.Json.g.cs similarity index 91% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRouting.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.Json.g.cs index d7731052..16976772 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRouting.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateImageResponseRouting + public sealed partial class CreateGenerateImageResponse4 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRouting? FromJson( + public static global::Runway.CreateGenerateImageResponse4? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateImageResponseRouting), - jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRouting; + typeof(global::Runway.CreateGenerateImageResponse4), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponse4; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRouting? FromJson( + public static global::Runway.CreateGenerateImageResponse4? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateImageResponseRouting? FromJson( + public static global::Runway.CreateGenerateImageResponse4? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateImageResponseRouting), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRouting; + typeof(global::Runway.CreateGenerateImageResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponse4; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.g.cs new file mode 100644 index 00000000..1a759fc0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponse4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateImageResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateImageResponse4( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.Json.g.cs index cbcbf131..bbf02832 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateImageResponseRoutingEstimatedCost + public sealed partial class CreateGenerateImageResponseDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateImageResponseDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateImageResponseRoutingEstimatedCost), - jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutingEstimatedCost; + typeof(global::Runway.CreateGenerateImageResponseDiscriminator), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseDiscriminator; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateImageResponseDiscriminator? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateImageResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateImageResponseDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateImageResponseRoutingEstimatedCost), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutingEstimatedCost; + typeof(global::Runway.CreateGenerateImageResponseDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseDiscriminator; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.g.cs new file mode 100644 index 00000000..6ad520f0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateImageResponseDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateImageResponseDiscriminatorDryRunJsonConverter))] + public global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? 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 CreateGenerateImageResponseDiscriminator( + global::Runway.CreateGenerateImageResponseDiscriminatorDryRun? dryRun) + { + this.DryRun = dryRun; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminatorDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminatorDryRun.g.cs new file mode 100644 index 00000000..fa43e705 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseDiscriminatorDryRun.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateGenerateImageResponseDiscriminatorDryRun + { + /// + /// + /// + False, + /// + /// + /// + True, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateImageResponseDiscriminatorDryRunExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateImageResponseDiscriminatorDryRun value) + { + return value switch + { + CreateGenerateImageResponseDiscriminatorDryRun.False => "False", + CreateGenerateImageResponseDiscriminatorDryRun.True => "True", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateImageResponseDiscriminatorDryRun? ToEnum(string value) + { + return value switch + { + "False" => CreateGenerateImageResponseDiscriminatorDryRun.False, + "True" => CreateGenerateImageResponseDiscriminatorDryRun.True, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.Json.g.cs index 04f2d0cc..8bfd26af 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateImageResponseRoutingResolvedInput + public sealed partial class CreateGenerateImageResponseRoutedImageDryRun { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRun? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedInput), - jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutingResolvedInput; + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRun; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRun? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateImageResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRun? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateImageResponseRoutingResolvedInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutingResolvedInput; + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRun), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRun; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.g.cs new file mode 100644 index 00000000..a1c82410 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRun.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateImageResponseRoutedImageDryRun + { + /// + /// + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRouting 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 CreateGenerateImageResponseRoutedImageDryRun( + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting 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 CreateGenerateImageResponseRoutedImageDryRun() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateGenerateImageResponseRoutedImageDryRun FromRouting(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting routing) + { + return new CreateGenerateImageResponseRoutedImageDryRun + { + Routing = routing, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.Json.g.cs new file mode 100644 index 00000000..f29d78d2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRouting + { + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRouting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting? 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.CreateGenerateImageResponseRoutedImageDryRunRouting? 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.CreateGenerateImageResponseRoutedImageDryRunRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRouting; + } + + /// + /// 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.CreateGenerateImageResponseRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.g.cs similarity index 73% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRouting.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.g.cs index 9ffd74c6..f782fa99 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRouting.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRouting.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Metadata describing which model the router selected and why. /// - public sealed partial class CreateGenerateImageResponseRouting + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRouting { /// /// The public name of the model the router selected. @@ -34,21 +34,27 @@ public sealed partial class CreateGenerateImageResponseRouting /// [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateImageResponseRoutingResolvedSettings ResolvedSettings { get; set; } + public required global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings 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.CreateGenerateImageResponseRoutingResolvedInput ResolvedInput { get; set; } + public required global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput 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.CreateGenerateImageResponseRoutingEstimatedCost EstimatedCost { get; set; } + public required global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost EstimatedCost { get; set; } + + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacityFallback")] + public global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback? CapacityFallback { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,7 +63,7 @@ public sealed partial class CreateGenerateImageResponseRouting public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The public name of the model the router selected. @@ -77,16 +83,20 @@ public sealed partial class CreateGenerateImageResponseRouting /// /// Estimated cost, computed against current pricing. /// + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateImageResponseRouting( + public CreateGenerateImageResponseRoutedImageDryRunRouting( string model, string provider, string configId, - global::Runway.CreateGenerateImageResponseRoutingResolvedSettings resolvedSettings, - global::Runway.CreateGenerateImageResponseRoutingResolvedInput resolvedInput, - global::Runway.CreateGenerateImageResponseRoutingEstimatedCost estimatedCost) + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost estimatedCost, + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback? capacityFallback) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); @@ -94,12 +104,13 @@ public CreateGenerateImageResponseRouting( 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)); + this.CapacityFallback = capacityFallback; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateImageResponseRouting() + public CreateGenerateImageResponseRoutedImageDryRunRouting() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.Json.g.cs new file mode 100644 index 00000000..98f6bf15 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback + { + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.g.cs new file mode 100644 index 00000000..7c836700 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback + { + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback( + global::System.Collections.Generic.IList skipped, + bool allExhausted) + { + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseRoutedImageDryRunRoutingCapacityFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.Json.g.cs new file mode 100644 index 00000000..8ff0fc19 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost + { + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost; + } + + /// + /// 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.CreateGenerateImageResponseRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.g.cs similarity index 77% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.g.cs index 8fcdae83..0f16fc47 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingEstimatedCost.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Estimated cost, computed against current pricing. /// - public sealed partial class CreateGenerateImageResponseRoutingEstimatedCost + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost { /// /// Estimated cost of the generation in credits. @@ -22,7 +22,7 @@ public sealed partial class CreateGenerateImageResponseRoutingEstimatedCost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Estimated cost of the generation in credits. @@ -30,16 +30,16 @@ public sealed partial class CreateGenerateImageResponseRoutingEstimatedCost #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateImageResponseRoutingEstimatedCost( + public CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost( double credits) { this.Credits = credits; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateImageResponseRoutingEstimatedCost() + public CreateGenerateImageResponseRoutedImageDryRunRoutingEstimatedCost() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.Json.g.cs new file mode 100644 index 00000000..50ad9f42 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput + { + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput; + } + + /// + /// 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.CreateGenerateImageResponseRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.g.cs similarity index 86% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.g.cs index 41ff1e4d..304f5b23 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedInput.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. /// - public sealed partial class CreateGenerateImageResponseRoutingResolvedInput + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput { /// /// Concrete output ratio derived from aspectRatio and resolution for the selected model. @@ -36,7 +36,7 @@ public sealed partial class CreateGenerateImageResponseRoutingResolvedInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Concrete output ratio derived from aspectRatio and resolution for the selected model. @@ -50,7 +50,7 @@ public sealed partial class CreateGenerateImageResponseRoutingResolvedInput #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateImageResponseRoutingResolvedInput( + public CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput( string ratio, string aspectRatio, string resolution) @@ -61,9 +61,9 @@ public CreateGenerateImageResponseRoutingResolvedInput( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateImageResponseRoutingResolvedInput() + public CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedInput() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.Json.g.cs new file mode 100644 index 00000000..7fba0b9c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings + { + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings; + } + + /// + /// 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.CreateGenerateImageResponseRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.g.cs similarity index 76% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.g.cs index c4b76766..37e617b5 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings.g.cs @@ -6,15 +6,15 @@ namespace Runway /// /// The resolved config settings the router used for this request. /// - public sealed partial class CreateGenerateImageResponseRoutingResolvedSettings + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings { /// /// 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.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } + public required global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } /// /// The applied maximum credits per generation for this request's modality, or null if the config sets no ceiling. @@ -29,7 +29,7 @@ public sealed partial class CreateGenerateImageResponseRoutingResolvedSettings public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. @@ -40,8 +40,8 @@ public sealed partial class CreateGenerateImageResponseRoutingResolvedSettings #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateImageResponseRoutingResolvedSettings( - global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor optimizeFor, + public CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings( + global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor optimizeFor, double? priceCeiling) { this.OptimizeFor = optimizeFor; @@ -49,9 +49,9 @@ public CreateGenerateImageResponseRoutingResolvedSettings( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateImageResponseRoutingResolvedSettings() + public CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettings() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..639424c0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.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 CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 00000000..586da18c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling + { + /// + /// 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.g.cs similarity index 83% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.g.cs index 9f4a27f9..99f88026 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling.g.cs @@ -6,7 +6,7 @@ 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 CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling + public sealed partial class CreateGenerateImageResponseRoutedImageDryRunRoutingResolvedSettingsPriceCeiling { /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.Json.g.cs index 357de99a..9f02cc77 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettings.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateImageResponseRoutingResolvedSettings + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreated { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedSettings), - jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutingResolvedSettings; + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateImageResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateImageResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateImageResponseRoutingResolvedSettings), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutingResolvedSettings; + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreated; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.g.cs new file mode 100644 index 00000000..fc3bcce6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreated.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreated + { + /// + /// + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRouting 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 CreateGenerateImageResponseRoutedImageTaskCreated( + global::System.Guid id, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting 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 CreateGenerateImageResponseRoutedImageTaskCreated() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.Json.g.cs new file mode 100644 index 00000000..c9ec4a5c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRouting + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRouting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRouting? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRouting; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.g.cs new file mode 100644 index 00000000..afc797da --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRouting.g.cs @@ -0,0 +1,118 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Metadata describing which model the router selected and why. + /// + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRouting + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost EstimatedCost { get; set; } + + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacityFallback")] + public global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback? CapacityFallback { 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. + /// + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateImageResponseRoutedImageTaskCreatedRouting( + string model, + string provider, + string configId, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost estimatedCost, + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback? capacityFallback) + { + 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)); + this.CapacityFallback = capacityFallback; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseRoutedImageTaskCreatedRouting() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.Json.g.cs new file mode 100644 index 00000000..fc60b100 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.g.cs new file mode 100644 index 00000000..de0959da --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback + { + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback( + global::System.Collections.Generic.IList skipped, + bool allExhausted) + { + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseRoutedImageTaskCreatedRoutingCapacityFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.Json.g.cs new file mode 100644 index 00000000..63913ed0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.g.cs new file mode 100644 index 00000000..5b5b75e7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost + { + /// + /// 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 CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseRoutedImageTaskCreatedRoutingEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.Json.g.cs new file mode 100644 index 00000000..5009eab1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.g.cs new file mode 100644 index 00000000..7fa82c15 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput.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 CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput + { + /// + /// Concrete output ratio derived from aspectRatio and resolution for the selected model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Ratio { get; set; } + + /// + /// Aspect ratio used for routing display. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string AspectRatio { get; set; } + + /// + /// Megapixel tier used for routing display. + /// + [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. + /// + /// + /// Concrete output ratio derived from aspectRatio and resolution for the selected model. + /// + /// + /// Aspect ratio used for routing display. + /// + /// + /// Megapixel tier used for routing display. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput( + string ratio, + string aspectRatio, + string resolution) + { + this.Ratio = ratio ?? throw new global::System.ArgumentNullException(nameof(ratio)); + this.AspectRatio = aspectRatio ?? throw new global::System.ArgumentNullException(nameof(aspectRatio)); + this.Resolution = resolution ?? throw new global::System.ArgumentNullException(nameof(resolution)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedInput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.Json.g.cs new file mode 100644 index 00000000..b80c7233 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.g.cs new file mode 100644 index 00000000..a31164c6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolved config settings the router used for this request. + /// + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor 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 CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings( + global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor optimizeFor, + double? priceCeiling) + { + this.OptimizeFor = optimizeFor; + this.PriceCeiling = priceCeiling; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 00000000..02920b36 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.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 CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 00000000..4d95c5c4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling + { + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs new file mode 100644 index 00000000..7e444a67 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling.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 CreateGenerateImageResponseRoutedImageTaskCreatedRoutingResolvedSettingsPriceCeiling + { + + /// + /// 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.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index bfe02ac4..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - public enum CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor - { - /// - /// - /// - Cost, - /// - /// - /// - Latency, - /// - /// - /// - Quality, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateGenerateImageResponseRoutingResolvedSettingsOptimizeForExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor value) - { - return value switch - { - CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.Cost => "cost", - CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.Latency => "latency", - CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.Quality => "quality", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor? ToEnum(string value) - { - return value switch - { - "cost" => CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.Cost, - "latency" => CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.Latency, - "quality" => CreateGenerateImageResponseRoutingResolvedSettingsOptimizeFor.Quality, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs deleted file mode 100644 index ef284d1f..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling - { - /// - /// 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.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext) as global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateImageResponseRoutingResolvedSettingsPriceCeiling; - } - - /// - /// 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.CreateGenerateImageResponseVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1.g.cs index fadf53ac..404cd81c 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1.g.cs @@ -23,7 +23,7 @@ public sealed partial class CreateGenerateImageResponseVariant1 public string Code { get; set; } = "no_eligible_model"; /// - /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// The hard-filter pipeline in execution order with surviving model ids at each stage. /// [global::System.Text.Json.Serialization.JsonPropertyName("pipeline")] [global::System.Text.Json.Serialization.JsonRequired] @@ -47,7 +47,7 @@ public sealed partial class CreateGenerateImageResponseVariant1 /// /// /// - /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// The hard-filter pipeline in execution order with surviving model ids at each stage. /// /// /// The filter(s) that reduced the eligible pool to zero. diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItem.g.cs index bd34914c..0200b9ed 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItem.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItem.g.cs @@ -11,17 +11,24 @@ public sealed partial class CreateGenerateImageResponseVariant1PipelineItem /// /// /// + /// "filter" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "filter"; + + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// [global::System.Text.Json.Serialization.JsonPropertyName("filter")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateImageResponseVariant1PipelineItemFilterJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::Runway.CreateGenerateImageResponseVariant1PipelineItemFilter Filter { get; set; } /// - /// How many models remained eligible after this filter ran. + /// Model IDs of the models that remained eligible after this filter stage. /// - [global::System.Text.Json.Serialization.JsonPropertyName("remaining")] + [global::System.Text.Json.Serialization.JsonPropertyName("models")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Remaining { get; set; } + public required global::System.Collections.Generic.IList Models { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,19 +39,24 @@ public sealed partial class CreateGenerateImageResponseVariant1PipelineItem /// /// Initializes a new instance of the class. /// - /// - /// - /// How many models remained eligible after this filter ran. + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + /// + /// Model IDs of the models that remained eligible after this filter stage. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateGenerateImageResponseVariant1PipelineItem( global::Runway.CreateGenerateImageResponseVariant1PipelineItemFilter filter, - int remaining) + global::System.Collections.Generic.IList models, + string type = "filter") { + this.Type = type; this.Filter = filter; - this.Remaining = remaining; + this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItemFilter.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItemFilter.g.cs index 7da33953..0a3d1e47 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItemFilter.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateImageResponseVariant1PipelineItemFilter.g.cs @@ -4,28 +4,28 @@ namespace Runway { /// - /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// public enum CreateGenerateImageResponseVariant1PipelineItemFilter { /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// AllowDeny, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// Capability, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// InputSupport, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// Price, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// PromptLength, } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs index fe546d2c..c3ebbbfe 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs @@ -15,6 +15,12 @@ public sealed partial class CreateGenerateVideoRequest [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. /// @@ -37,14 +43,19 @@ public sealed partial class CreateGenerateVideoRequest /// /// 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) + 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)); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs index db1f9374..e2abf0c7 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponse + public readonly partial struct CreateGenerateVideoResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -54,7 +54,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::Runway.CreateGenerateVideoResponse), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse; + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse?; } /// @@ -101,7 +101,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::Runway.CreateGenerateVideoResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse; + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse?; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs index 0a8952ee..b6fda2e9 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs @@ -1,3 +1,4 @@ +#pragma warning disable CS0618 // Type or member is obsolete #nullable enable @@ -6,54 +7,297 @@ namespace Runway /// /// /// - public sealed partial class CreateGenerateVideoResponse + public readonly partial struct CreateGenerateVideoResponse : global::System.IEquatable { /// - /// 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; } + public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? DryRun { get; } /// - /// 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.CreateGenerateVideoResponseRouting Routing { get; set; } +#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; + } /// - /// 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(); + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated PickFalse() => IsFalse + ? False! + : throw new global::System.InvalidOperationException($"Expected union variant 'False' but the value was {ToString()}."); /// - /// 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] +#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::System.Guid id, - global::Runway.CreateGenerateVideoResponseRouting routing) + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? dryRun, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? @false, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? @true + ) { - this.Id = id; - this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); + DryRun = dryRun; + + False = @false; + True = @true; } /// - /// Initializes a new instance of the class. + /// + /// + public object? Object => + True as object ?? + False as object + ; + + /// + /// + /// + public override string? ToString() => + False?.ToString() ?? + True?.ToString() + ; + + /// + /// /// - public CreateGenerateVideoResponse() + 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); + } } -} \ No newline at end of file +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.Json.g.cs similarity index 91% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.Json.g.cs index c6c122e1..c341c3a9 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRouting + public sealed partial class CreateGenerateVideoResponse4 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRouting? FromJson( + public static global::Runway.CreateGenerateVideoResponse4? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateGenerateVideoResponseRouting), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRouting; + typeof(global::Runway.CreateGenerateVideoResponse4), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse4; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRouting? FromJson( + public static global::Runway.CreateGenerateVideoResponse4? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateVideoResponseRouting? FromJson( + public static global::Runway.CreateGenerateVideoResponse4? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateVideoResponseRouting), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRouting; + typeof(global::Runway.CreateGenerateVideoResponse4), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse4; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.g.cs new file mode 100644 index 00000000..24488834 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse4.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponse4 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponse4( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponse4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs index 7fa63288..f07bf199 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRoutingResolvedInput + public sealed partial class CreateGenerateVideoResponseDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? FromJson( + 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.CreateGenerateVideoResponseRoutingResolvedInput), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingResolvedInput; + typeof(global::Runway.CreateGenerateVideoResponseDiscriminator), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseDiscriminator; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateVideoResponseDiscriminator? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateVideoResponseRoutingResolvedInput? FromJson( + public static global::Runway.CreateGenerateVideoResponseDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateVideoResponseRoutingResolvedInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingResolvedInput; + 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + 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 00000000..c278a181 --- /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 00000000..57ad4e37 --- /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.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs index e9d78bc5..47f6fe55 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRoutingEstimatedCost + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRun { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? FromJson( + 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.CreateGenerateVideoResponseRoutingEstimatedCost), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost; + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateVideoResponseRoutingEstimatedCost? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateVideoResponseRoutingEstimatedCost), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost; + 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + 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 00000000..791dc58c --- /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 00000000..7ee1d13e --- /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.CreateGenerateVideoResponseRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs similarity index 73% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs index f22ef991..5ab77a3b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRouting.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Metadata describing which model the router selected and why. /// - public sealed partial class CreateGenerateVideoResponseRouting + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting { /// /// The public name of the model the router selected. @@ -34,21 +34,27 @@ public sealed partial class CreateGenerateVideoResponseRouting /// [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings ResolvedSettings { get; set; } + 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.CreateGenerateVideoResponseRoutingResolvedInput ResolvedInput { get; set; } + 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.CreateGenerateVideoResponseRoutingEstimatedCost EstimatedCost { get; set; } + public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost EstimatedCost { get; set; } + + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacityFallback")] + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback? CapacityFallback { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,7 +63,7 @@ public sealed partial class CreateGenerateVideoResponseRouting public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The public name of the model the router selected. @@ -77,16 +83,20 @@ public sealed partial class CreateGenerateVideoResponseRouting /// /// Estimated cost, computed against current pricing. /// + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRouting( + public CreateGenerateVideoResponseRoutedVideoDryRunRouting( string model, string provider, string configId, - global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings resolvedSettings, - global::Runway.CreateGenerateVideoResponseRoutingResolvedInput resolvedInput, - global::Runway.CreateGenerateVideoResponseRoutingEstimatedCost estimatedCost) + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost estimatedCost, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback? capacityFallback) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); @@ -94,12 +104,13 @@ public CreateGenerateVideoResponseRouting( 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)); + this.CapacityFallback = capacityFallback; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRouting() + public CreateGenerateVideoResponseRoutedVideoDryRunRouting() { } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.Json.g.cs new file mode 100644 index 00000000..3c09db54 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.g.cs new file mode 100644 index 00000000..007ad9a4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback + { + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback( + global::System.Collections.Generic.IList skipped, + bool allExhausted) + { + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingCapacityFallback() + { + } + + } +} \ 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 00000000..e1e24cea --- /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.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs similarity index 77% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs index 51a48801..0a3f72f4 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingEstimatedCost.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Estimated cost, computed against current pricing. /// - public sealed partial class CreateGenerateVideoResponseRoutingEstimatedCost + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost { /// /// Estimated cost of the generation in credits. @@ -22,7 +22,7 @@ public sealed partial class CreateGenerateVideoResponseRoutingEstimatedCost public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Estimated cost of the generation in credits. @@ -30,16 +30,16 @@ public sealed partial class CreateGenerateVideoResponseRoutingEstimatedCost #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutingEstimatedCost( + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost( double credits) { this.Credits = credits; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutingEstimatedCost() + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost() { } 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 00000000..7b0e6b25 --- /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.CreateGenerateVideoResponseRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs similarity index 87% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs index dfe2f578..238e8327 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedInput.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. /// - public sealed partial class CreateGenerateVideoResponseRoutingResolvedInput + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput { /// /// Duration in seconds used for routing display (request value or router default). @@ -36,7 +36,7 @@ public sealed partial class CreateGenerateVideoResponseRoutingResolvedInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Duration in seconds used for routing display (request value or router default). @@ -50,7 +50,7 @@ public sealed partial class CreateGenerateVideoResponseRoutingResolvedInput #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutingResolvedInput( + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput( double duration, string ratio, string resolution) @@ -61,9 +61,9 @@ public CreateGenerateVideoResponseRoutingResolvedInput( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutingResolvedInput() + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput() { } 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 00000000..18aab1d9 --- /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.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs similarity index 76% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs index 47b25769..3747d9b2 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs @@ -6,15 +6,15 @@ namespace Runway /// /// The resolved config settings the router used for this request. /// - public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettings + 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.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } + 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. @@ -29,7 +29,7 @@ public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettings public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. @@ -40,8 +40,8 @@ public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettings #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateGenerateVideoResponseRoutingResolvedSettings( - global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor optimizeFor, + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings( + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor optimizeFor, double? priceCeiling) { this.OptimizeFor = optimizeFor; @@ -49,9 +49,9 @@ public CreateGenerateVideoResponseRoutingResolvedSettings( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateGenerateVideoResponseRoutingResolvedSettings() + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings() { } 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 00000000..9c9173b1 --- /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 00000000..0ab77227 --- /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.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs similarity index 83% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs index b0ec9faf..9f594c23 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs @@ -6,7 +6,7 @@ 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 CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling { /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs similarity index 89% rename from src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs index 2f29e9f6..02200517 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettings.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettings + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreated { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? FromJson( + 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.CreateGenerateVideoResponseRoutingResolvedSettings), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings; + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateGenerateVideoResponseRoutingResolvedSettings? FromJson( + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateGenerateVideoResponseRoutingResolvedSettings), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettings; + 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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + 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 00000000..826d94f6 --- /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 00000000..45767187 --- /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 00000000..ced9120c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs @@ -0,0 +1,118 @@ + +#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; } + + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("capacityFallback")] + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback? CapacityFallback { 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. + /// + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// +#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, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback? capacityFallback) + { + 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)); + this.CapacityFallback = capacityFallback; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.Json.g.cs new file mode 100644 index 00000000..f18764de --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.g.cs new file mode 100644 index 00000000..1682eb1f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Present only when the config enables fallback.onCapacity and capacity affected this request. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback + { + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback( + global::System.Collections.Generic.IList skipped, + bool allExhausted) + { + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingCapacityFallback() + { + } + + } +} \ 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 00000000..fe3ca3dc --- /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 00000000..faaccf99 --- /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 00000000..4b9733f5 --- /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 00000000..7771d46b --- /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 00000000..1bc600e6 --- /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 00000000..d013bbe8 --- /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 00000000..f2b10b0c --- /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 00000000..7a85b45c --- /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 00000000..d323e338 --- /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.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs deleted file mode 100644 index f77ed973..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. - /// - public enum CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor - { - /// - /// - /// - Cost, - /// - /// - /// - Latency, - /// - /// - /// - Quality, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeForExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor value) - { - return value switch - { - CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Cost => "cost", - CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Latency => "latency", - CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Quality => "quality", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor? ToEnum(string value) - { - return value switch - { - "cost" => CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Cost, - "latency" => CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Latency, - "quality" => CreateGenerateVideoResponseRoutingResolvedSettingsOptimizeFor.Quality, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs deleted file mode 100644 index 18ce8bcc..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Runway -{ - public sealed partial class CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling - { - /// - /// 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.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutingResolvedSettingsPriceCeiling; - } - - /// - /// 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.CreateGenerateVideoResponseVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1.g.cs index 5499b809..b83af05a 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1.g.cs @@ -23,7 +23,7 @@ public sealed partial class CreateGenerateVideoResponseVariant1 public string Code { get; set; } = "no_eligible_model"; /// - /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// The hard-filter pipeline in execution order with surviving model ids at each stage. /// [global::System.Text.Json.Serialization.JsonPropertyName("pipeline")] [global::System.Text.Json.Serialization.JsonRequired] @@ -47,7 +47,7 @@ public sealed partial class CreateGenerateVideoResponseVariant1 /// /// /// - /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// The hard-filter pipeline in execution order with surviving model ids at each stage. /// /// /// The filter(s) that reduced the eligible pool to zero. diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItem.g.cs index a3c41bae..23d5d9c3 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItem.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItem.g.cs @@ -11,17 +11,24 @@ public sealed partial class CreateGenerateVideoResponseVariant1PipelineItem /// /// /// + /// "filter" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "filter"; + + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// [global::System.Text.Json.Serialization.JsonPropertyName("filter")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseVariant1PipelineItemFilterJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] public required global::Runway.CreateGenerateVideoResponseVariant1PipelineItemFilter Filter { get; set; } /// - /// How many models remained eligible after this filter ran. + /// Model IDs of the models that remained eligible after this filter stage. /// - [global::System.Text.Json.Serialization.JsonPropertyName("remaining")] + [global::System.Text.Json.Serialization.JsonPropertyName("models")] [global::System.Text.Json.Serialization.JsonRequired] - public required int Remaining { get; set; } + public required global::System.Collections.Generic.IList Models { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -32,19 +39,24 @@ public sealed partial class CreateGenerateVideoResponseVariant1PipelineItem /// /// Initializes a new instance of the class. /// - /// - /// - /// How many models remained eligible after this filter ran. + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + /// + /// Model IDs of the models that remained eligible after this filter stage. /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateGenerateVideoResponseVariant1PipelineItem( global::Runway.CreateGenerateVideoResponseVariant1PipelineItemFilter filter, - int remaining) + global::System.Collections.Generic.IList models, + string type = "filter") { + this.Type = type; this.Filter = filter; - this.Remaining = remaining; + this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItemFilter.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItemFilter.g.cs index faba6aaf..53b44aee 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItemFilter.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseVariant1PipelineItemFilter.g.cs @@ -4,28 +4,28 @@ namespace Runway { /// - /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// public enum CreateGenerateVideoResponseVariant1PipelineItemFilter { /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// AllowDeny, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// Capability, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// InputSupport, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// Price, /// - /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). /// PromptLength, } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequest.g.cs index d037d18f..96a7a398 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequest.g.cs @@ -162,6 +162,43 @@ public bool TryPickVeo31Fast( ? Veo31Fast! : throw new global::System.InvalidOperationException($"Expected union variant 'Veo31Fast' but the value was {ToString()}."); + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateImageToVideoRequestHailuo3? Hailuo3 { get; init; } +#else + public global::Runway.CreateImageToVideoRequestHailuo3? Hailuo3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Hailuo3))] +#endif + public bool IsHailuo3 => Hailuo3 != null; + + /// + /// + /// + public bool TryPickHailuo3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateImageToVideoRequestHailuo3? value) + { + value = Hailuo3; + return IsHailuo3; + } + + /// + /// + /// + public global::Runway.CreateImageToVideoRequestHailuo3 PickHailuo3() => IsHailuo3 + ? Hailuo3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Hailuo3' but the value was {ToString()}."); + /// /// /// @@ -351,38 +388,38 @@ public bool TryPickGeminiOmniFlash( /// /// #if NET6_0_OR_GREATER - public global::Runway.CreateImageToVideoRequestVeo3? Veo3 { get; init; } + public global::Runway.CreateImageToVideoRequestSeedance25? Seedance25 { get; init; } #else - public global::Runway.CreateImageToVideoRequestVeo3? Veo3 { get; } + public global::Runway.CreateImageToVideoRequestSeedance25? Seedance25 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Veo3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Seedance25))] #endif - public bool IsVeo3 => Veo3 != null; + public bool IsSeedance25 => Seedance25 != null; /// /// /// - public bool TryPickVeo3( + public bool TryPickSeedance25( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateImageToVideoRequestVeo3? value) + out global::Runway.CreateImageToVideoRequestSeedance25? value) { - value = Veo3; - return IsVeo3; + value = Seedance25; + return IsSeedance25; } /// /// /// - public global::Runway.CreateImageToVideoRequestVeo3 PickVeo3() => IsVeo3 - ? Veo3! - : throw new global::System.InvalidOperationException($"Expected union variant 'Veo3' but the value was {ToString()}."); + public global::Runway.CreateImageToVideoRequestSeedance25 PickSeedance25() => IsSeedance25 + ? Seedance25! + : throw new global::System.InvalidOperationException($"Expected union variant 'Seedance25' but the value was {ToString()}."); /// /// /// @@ -475,6 +512,29 @@ public CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestVeo31Fa /// public static CreateImageToVideoRequest FromVeo31Fast(global::Runway.CreateImageToVideoRequestVeo31Fast? value) => new CreateImageToVideoRequest(value); + /// + /// + /// + public static implicit operator CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestHailuo3 value) => new CreateImageToVideoRequest((global::Runway.CreateImageToVideoRequestHailuo3?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateImageToVideoRequestHailuo3?(CreateImageToVideoRequest @this) => @this.Hailuo3; + + /// + /// + /// + public CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestHailuo3? value) + { + Hailuo3 = value; + } + + /// + /// + /// + public static CreateImageToVideoRequest FromHailuo3(global::Runway.CreateImageToVideoRequestHailuo3? value) => new CreateImageToVideoRequest(value); + /// /// /// @@ -593,25 +653,25 @@ public CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestGeminiO /// /// /// - public static implicit operator CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestVeo3 value) => new CreateImageToVideoRequest((global::Runway.CreateImageToVideoRequestVeo3?)value); + public static implicit operator CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestSeedance25 value) => new CreateImageToVideoRequest((global::Runway.CreateImageToVideoRequestSeedance25?)value); /// /// /// - public static implicit operator global::Runway.CreateImageToVideoRequestVeo3?(CreateImageToVideoRequest @this) => @this.Veo3; + public static implicit operator global::Runway.CreateImageToVideoRequestSeedance25?(CreateImageToVideoRequest @this) => @this.Seedance25; /// /// /// - public CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestVeo3? value) + public CreateImageToVideoRequest(global::Runway.CreateImageToVideoRequestSeedance25? value) { - Veo3 = value; + Seedance25 = value; } /// /// /// - public static CreateImageToVideoRequest FromVeo3(global::Runway.CreateImageToVideoRequestVeo3? value) => new CreateImageToVideoRequest(value); + public static CreateImageToVideoRequest FromSeedance25(global::Runway.CreateImageToVideoRequestSeedance25? value) => new CreateImageToVideoRequest(value); /// /// @@ -622,12 +682,13 @@ public CreateImageToVideoRequest( global::Runway.CreateImageToVideoRequestGen4Turbo? gen4Turbo, global::Runway.CreateImageToVideoRequestVeo31? veo31, global::Runway.CreateImageToVideoRequestVeo31Fast? veo31Fast, + global::Runway.CreateImageToVideoRequestHailuo3? hailuo3, global::Runway.CreateImageToVideoRequestHappyhorse10? happyhorse10, global::Runway.CreateImageToVideoRequestSeedance2? seedance2, global::Runway.CreateImageToVideoRequestSeedance2Fast? seedance2Fast, global::Runway.CreateImageToVideoRequestSeedance2Mini? seedance2Mini, global::Runway.CreateImageToVideoRequestGeminiOmniFlash? geminiOmniFlash, - global::Runway.CreateImageToVideoRequestVeo3? veo3 + global::Runway.CreateImageToVideoRequestSeedance25? seedance25 ) { Model = model; @@ -636,24 +697,26 @@ public CreateImageToVideoRequest( Gen4Turbo = gen4Turbo; Veo31 = veo31; Veo31Fast = veo31Fast; + Hailuo3 = hailuo3; Happyhorse10 = happyhorse10; Seedance2 = seedance2; Seedance2Fast = seedance2Fast; Seedance2Mini = seedance2Mini; GeminiOmniFlash = geminiOmniFlash; - Veo3 = veo3; + Seedance25 = seedance25; } /// /// /// public object? Object => - Veo3 as object ?? + Seedance25 as object ?? GeminiOmniFlash as object ?? Seedance2Mini as object ?? Seedance2Fast as object ?? Seedance2 as object ?? Happyhorse10 as object ?? + Hailuo3 as object ?? Veo31Fast as object ?? Veo31 as object ?? Gen4Turbo as object ?? @@ -668,12 +731,13 @@ Gen45 as object Gen4Turbo?.ToString() ?? Veo31?.ToString() ?? Veo31Fast?.ToString() ?? + Hailuo3?.ToString() ?? Happyhorse10?.ToString() ?? Seedance2?.ToString() ?? Seedance2Fast?.ToString() ?? Seedance2Mini?.ToString() ?? GeminiOmniFlash?.ToString() ?? - Veo3?.ToString() + Seedance25?.ToString() ; /// @@ -681,7 +745,7 @@ Gen45 as object /// public bool Validate() { - return IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && IsVeo3; + return IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsGen4Turbo && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && IsSeedance25; } /// @@ -692,12 +756,13 @@ public bool Validate() global::System.Func? gen4Turbo = null, global::System.Func? veo31 = null, global::System.Func? veo31Fast = null, + global::System.Func? hailuo3 = null, global::System.Func? happyhorse10 = null, global::System.Func? seedance2 = null, global::System.Func? seedance2Fast = null, global::System.Func? seedance2Mini = null, global::System.Func? geminiOmniFlash = null, - global::System.Func? veo3 = null, + global::System.Func? seedance25 = null, bool validate = true) { if (validate) @@ -721,6 +786,10 @@ public bool Validate() { return veo31Fast(Veo31Fast!); } + else if (IsHailuo3 && hailuo3 != null) + { + return hailuo3(Hailuo3!); + } else if (IsHappyhorse10 && happyhorse10 != null) { return happyhorse10(Happyhorse10!); @@ -741,9 +810,9 @@ public bool Validate() { return geminiOmniFlash(GeminiOmniFlash!); } - else if (IsVeo3 && veo3 != null) + else if (IsSeedance25 && seedance25 != null) { - return veo3(Veo3!); + return seedance25(Seedance25!); } return default(TResult); @@ -761,6 +830,8 @@ public void Match( global::System.Action? veo31Fast = null, + global::System.Action? hailuo3 = null, + global::System.Action? happyhorse10 = null, global::System.Action? seedance2 = null, @@ -771,7 +842,7 @@ public void Match( global::System.Action? geminiOmniFlash = null, - global::System.Action? veo3 = null, + global::System.Action? seedance25 = null, bool validate = true) { if (validate) @@ -795,6 +866,10 @@ public void Match( { veo31Fast?.Invoke(Veo31Fast!); } + else if (IsHailuo3) + { + hailuo3?.Invoke(Hailuo3!); + } else if (IsHappyhorse10) { happyhorse10?.Invoke(Happyhorse10!); @@ -815,9 +890,9 @@ public void Match( { geminiOmniFlash?.Invoke(GeminiOmniFlash!); } - else if (IsVeo3) + else if (IsSeedance25) { - veo3?.Invoke(Veo3!); + seedance25?.Invoke(Seedance25!); } } @@ -829,12 +904,13 @@ public void Switch( global::System.Action? gen4Turbo = null, global::System.Action? veo31 = null, global::System.Action? veo31Fast = null, + global::System.Action? hailuo3 = null, global::System.Action? happyhorse10 = null, global::System.Action? seedance2 = null, global::System.Action? seedance2Fast = null, global::System.Action? seedance2Mini = null, global::System.Action? geminiOmniFlash = null, - global::System.Action? veo3 = null, + global::System.Action? seedance25 = null, bool validate = true) { if (validate) @@ -858,6 +934,10 @@ public void Switch( { veo31Fast?.Invoke(Veo31Fast!); } + else if (IsHailuo3) + { + hailuo3?.Invoke(Hailuo3!); + } else if (IsHappyhorse10) { happyhorse10?.Invoke(Happyhorse10!); @@ -878,9 +958,9 @@ public void Switch( { geminiOmniFlash?.Invoke(GeminiOmniFlash!); } - else if (IsVeo3) + else if (IsSeedance25) { - veo3?.Invoke(Veo3!); + seedance25?.Invoke(Seedance25!); } } @@ -899,6 +979,8 @@ public override int GetHashCode() typeof(global::Runway.CreateImageToVideoRequestVeo31), Veo31Fast, typeof(global::Runway.CreateImageToVideoRequestVeo31Fast), + Hailuo3, + typeof(global::Runway.CreateImageToVideoRequestHailuo3), Happyhorse10, typeof(global::Runway.CreateImageToVideoRequestHappyhorse10), Seedance2, @@ -909,8 +991,8 @@ public override int GetHashCode() typeof(global::Runway.CreateImageToVideoRequestSeedance2Mini), GeminiOmniFlash, typeof(global::Runway.CreateImageToVideoRequestGeminiOmniFlash), - Veo3, - typeof(global::Runway.CreateImageToVideoRequestVeo3), + Seedance25, + typeof(global::Runway.CreateImageToVideoRequestSeedance25), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -931,12 +1013,13 @@ public bool Equals(CreateImageToVideoRequest other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Gen4Turbo, other.Gen4Turbo) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Veo31, other.Veo31) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Veo31Fast, other.Veo31Fast) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Hailuo3, other.Hailuo3) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Happyhorse10, other.Happyhorse10) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2, other.Seedance2) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2Fast, other.Seedance2Fast) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2Mini, other.Seedance2Mini) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GeminiOmniFlash, other.GeminiOmniFlash) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Veo3, other.Veo3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance25, other.Seedance25) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestDiscriminatorModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestDiscriminatorModel.g.cs index 9bd2b56b..fe7cc063 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestDiscriminatorModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestDiscriminatorModel.g.cs @@ -23,6 +23,10 @@ public enum CreateImageToVideoRequestDiscriminatorModel /// /// /// + Hailuo3, + /// + /// + /// Happyhorse10, /// /// @@ -31,15 +35,15 @@ public enum CreateImageToVideoRequestDiscriminatorModel /// /// /// - Seedance2Fast, + Seedance25, /// /// /// - Seedance2Mini, + Seedance2Fast, /// /// /// - Veo3, + Seedance2Mini, /// /// /// @@ -65,11 +69,12 @@ public static string ToValueString(this CreateImageToVideoRequestDiscriminatorMo CreateImageToVideoRequestDiscriminatorModel.GeminiOmniFlash => "gemini_omni_flash", CreateImageToVideoRequestDiscriminatorModel.Gen45 => "gen4.5", CreateImageToVideoRequestDiscriminatorModel.Gen4Turbo => "gen4_turbo", + CreateImageToVideoRequestDiscriminatorModel.Hailuo3 => "hailuo3", CreateImageToVideoRequestDiscriminatorModel.Happyhorse10 => "happyhorse_1_0", CreateImageToVideoRequestDiscriminatorModel.Seedance2 => "seedance2", + CreateImageToVideoRequestDiscriminatorModel.Seedance25 => "seedance2_5", CreateImageToVideoRequestDiscriminatorModel.Seedance2Fast => "seedance2_fast", CreateImageToVideoRequestDiscriminatorModel.Seedance2Mini => "seedance2_mini", - CreateImageToVideoRequestDiscriminatorModel.Veo3 => "veo3", CreateImageToVideoRequestDiscriminatorModel.Veo31 => "veo3.1", CreateImageToVideoRequestDiscriminatorModel.Veo31Fast => "veo3.1_fast", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -85,11 +90,12 @@ public static string ToValueString(this CreateImageToVideoRequestDiscriminatorMo "gemini_omni_flash" => CreateImageToVideoRequestDiscriminatorModel.GeminiOmniFlash, "gen4.5" => CreateImageToVideoRequestDiscriminatorModel.Gen45, "gen4_turbo" => CreateImageToVideoRequestDiscriminatorModel.Gen4Turbo, + "hailuo3" => CreateImageToVideoRequestDiscriminatorModel.Hailuo3, "happyhorse_1_0" => CreateImageToVideoRequestDiscriminatorModel.Happyhorse10, "seedance2" => CreateImageToVideoRequestDiscriminatorModel.Seedance2, + "seedance2_5" => CreateImageToVideoRequestDiscriminatorModel.Seedance25, "seedance2_fast" => CreateImageToVideoRequestDiscriminatorModel.Seedance2Fast, "seedance2_mini" => CreateImageToVideoRequestDiscriminatorModel.Seedance2Mini, - "veo3" => CreateImageToVideoRequestDiscriminatorModel.Veo3, "veo3.1" => CreateImageToVideoRequestDiscriminatorModel.Veo31, "veo3.1_fast" => CreateImageToVideoRequestDiscriminatorModel.Veo31Fast, _ => null, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45.g.cs index ed23617d..c3514a48 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45.g.cs @@ -50,6 +50,20 @@ public sealed partial class CreateImageToVideoRequestGen45 [global::System.Text.Json.Serialization.JsonPropertyName("contentModeration")] public global::Runway.CreateImageToVideoRequestGen45ContentModeration? ContentModeration { get; set; } + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outputFormat")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45OutputFormatJsonConverter))] + public global::Runway.CreateImageToVideoRequestGen45OutputFormat? OutputFormat { get; set; } + + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("proresProfile")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestGen45ProresProfileJsonConverter))] + public global::Runway.CreateImageToVideoRequestGen45ProresProfile? ProresProfile { get; set; } + /// /// /// @@ -82,6 +96,12 @@ public sealed partial class CreateImageToVideoRequestGen45 /// /// Settings that affect the behavior of the content moderation system. /// + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -93,6 +113,8 @@ public CreateImageToVideoRequestGen45( int duration, int? seed, global::Runway.CreateImageToVideoRequestGen45ContentModeration? contentModeration, + global::Runway.CreateImageToVideoRequestGen45OutputFormat? outputFormat, + global::Runway.CreateImageToVideoRequestGen45ProresProfile? proresProfile, string model = "gen4.5") { this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); @@ -101,6 +123,8 @@ public CreateImageToVideoRequestGen45( this.Ratio = ratio; this.Duration = duration; this.ContentModeration = contentModeration; + this.OutputFormat = outputFormat; + this.ProresProfile = proresProfile; this.Model = model; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45OutputFormat.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45OutputFormat.g.cs new file mode 100644 index 00000000..9ac11d05 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45OutputFormat.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + public enum CreateImageToVideoRequestGen45OutputFormat + { + /// + /// + /// + Mp4, + /// + /// + /// + PngSequence, + /// + /// + /// + Prores, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateImageToVideoRequestGen45OutputFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateImageToVideoRequestGen45OutputFormat value) + { + return value switch + { + CreateImageToVideoRequestGen45OutputFormat.Mp4 => "mp4", + CreateImageToVideoRequestGen45OutputFormat.PngSequence => "png_sequence", + CreateImageToVideoRequestGen45OutputFormat.Prores => "prores", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateImageToVideoRequestGen45OutputFormat? ToEnum(string value) + { + return value switch + { + "mp4" => CreateImageToVideoRequestGen45OutputFormat.Mp4, + "png_sequence" => CreateImageToVideoRequestGen45OutputFormat.PngSequence, + "prores" => CreateImageToVideoRequestGen45OutputFormat.Prores, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45ProresProfile.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45ProresProfile.g.cs new file mode 100644 index 00000000..f5907951 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestGen45ProresProfile.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// + public enum CreateImageToVideoRequestGen45ProresProfile + { + /// + /// + /// + x422, + /// + /// + /// + x422Hq, + /// + /// + /// + x422Lt, + /// + /// + /// + x422Proxy, + /// + /// + /// + x4444, + /// + /// + /// + x4444Xq, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateImageToVideoRequestGen45ProresProfileExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateImageToVideoRequestGen45ProresProfile value) + { + return value switch + { + CreateImageToVideoRequestGen45ProresProfile.x422 => "422", + CreateImageToVideoRequestGen45ProresProfile.x422Hq => "422 HQ", + CreateImageToVideoRequestGen45ProresProfile.x422Lt => "422 LT", + CreateImageToVideoRequestGen45ProresProfile.x422Proxy => "422 Proxy", + CreateImageToVideoRequestGen45ProresProfile.x4444 => "4444", + CreateImageToVideoRequestGen45ProresProfile.x4444Xq => "4444 XQ", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateImageToVideoRequestGen45ProresProfile? ToEnum(string value) + { + return value switch + { + "422" => CreateImageToVideoRequestGen45ProresProfile.x422, + "422 HQ" => CreateImageToVideoRequestGen45ProresProfile.x422Hq, + "422 LT" => CreateImageToVideoRequestGen45ProresProfile.x422Lt, + "422 Proxy" => CreateImageToVideoRequestGen45ProresProfile.x422Proxy, + "4444" => CreateImageToVideoRequestGen45ProresProfile.x4444, + "4444 XQ" => CreateImageToVideoRequestGen45ProresProfile.x4444Xq, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.Json.g.cs new file mode 100644 index 00000000..12afaaf8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoRequestHailuo3 + { + /// + /// 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.CreateImageToVideoRequestHailuo3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoRequestHailuo3), + jsonSerializerContext) as global::Runway.CreateImageToVideoRequestHailuo3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoRequestHailuo3? 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.CreateImageToVideoRequestHailuo3? 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.CreateImageToVideoRequestHailuo3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestHailuo3; + } + + /// + /// 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.CreateImageToVideoRequestHailuo3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.g.cs new file mode 100644 index 00000000..d4dc868c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3.g.cs @@ -0,0 +1,116 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageToVideoRequestHailuo3 + { + /// + /// An image or array of images. Use position `first`/`last` for keyframe mode, or omit position for reference images. The two modes cannot be mixed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptImage")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.AnyOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.AnyOf> PromptImage { get; set; } + + /// + /// A non-empty text prompt describing what should appear in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PromptText { get; set; } + + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3ResolutionJsonConverter))] + public global::Runway.CreateImageToVideoRequestHailuo3Resolution? Resolution { get; set; } + + /// + /// The number of seconds of duration for the output video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestHailuo3RatioJsonConverter))] + public global::Runway.CreateImageToVideoRequestHailuo3Ratio? Ratio { get; set; } + + /// + /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// + /// + /// "hailuo3" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "hailuo3"; + + /// + /// 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. + /// + /// + /// An image or array of images. Use position `first`/`last` for keyframe mode, or omit position for reference images. The two modes cannot be mixed. + /// + /// + /// A non-empty text prompt describing what should appear in the output. + /// + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + /// + /// The number of seconds of duration for the output video. + /// + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + /// + /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateImageToVideoRequestHailuo3( + global::Runway.AnyOf> promptImage, + string promptText, + global::Runway.CreateImageToVideoRequestHailuo3Resolution? resolution, + int? duration, + global::Runway.CreateImageToVideoRequestHailuo3Ratio? ratio, + global::System.Collections.Generic.IList? referenceAudio, + string model = "hailuo3") + { + this.PromptImage = promptImage; + this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); + this.Resolution = resolution; + this.Duration = duration; + this.Ratio = ratio; + this.ReferenceAudio = referenceAudio; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoRequestHailuo3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.Json.g.cs new file mode 100644 index 00000000..1dbdd8d8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoRequestHailuo3PromptImageVariant2Item + { + /// + /// 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.CreateImageToVideoRequestHailuo3PromptImageVariant2Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoRequestHailuo3PromptImageVariant2Item), + jsonSerializerContext) as global::Runway.CreateImageToVideoRequestHailuo3PromptImageVariant2Item; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoRequestHailuo3PromptImageVariant2Item? 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.CreateImageToVideoRequestHailuo3PromptImageVariant2Item? 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.CreateImageToVideoRequestHailuo3PromptImageVariant2Item), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestHailuo3PromptImageVariant2Item; + } + + /// + /// 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.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.g.cs new file mode 100644 index 00000000..b3f47adc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3PromptImageVariant2Item.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageToVideoRequestHailuo3PromptImageVariant2Item + { + + /// + /// 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.CreateImageToVideoRequestHailuo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Ratio.g.cs new file mode 100644 index 00000000..e4788061 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Ratio.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + public enum CreateImageToVideoRequestHailuo3Ratio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x3_4, + /// + /// + /// + x4_3, + /// + /// + /// + x9_16, + /// + /// + /// + Adaptive, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateImageToVideoRequestHailuo3RatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateImageToVideoRequestHailuo3Ratio value) + { + return value switch + { + CreateImageToVideoRequestHailuo3Ratio.x16_9 => "16:9", + CreateImageToVideoRequestHailuo3Ratio.x1_1 => "1:1", + CreateImageToVideoRequestHailuo3Ratio.x21_9 => "21:9", + CreateImageToVideoRequestHailuo3Ratio.x3_4 => "3:4", + CreateImageToVideoRequestHailuo3Ratio.x4_3 => "4:3", + CreateImageToVideoRequestHailuo3Ratio.x9_16 => "9:16", + CreateImageToVideoRequestHailuo3Ratio.Adaptive => "adaptive", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateImageToVideoRequestHailuo3Ratio? ToEnum(string value) + { + return value switch + { + "16:9" => CreateImageToVideoRequestHailuo3Ratio.x16_9, + "1:1" => CreateImageToVideoRequestHailuo3Ratio.x1_1, + "21:9" => CreateImageToVideoRequestHailuo3Ratio.x21_9, + "3:4" => CreateImageToVideoRequestHailuo3Ratio.x3_4, + "4:3" => CreateImageToVideoRequestHailuo3Ratio.x4_3, + "9:16" => CreateImageToVideoRequestHailuo3Ratio.x9_16, + "adaptive" => CreateImageToVideoRequestHailuo3Ratio.Adaptive, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs similarity index 84% rename from src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs index ad1c835d..aad2bd08 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateImageToVideoRequestVeo3PromptImagePromptImage + public sealed partial class CreateImageToVideoRequestHailuo3ReferenceAudioItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage? FromJson( + public static global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage), - jsonSerializerContext) as global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage; + typeof(global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage? FromJson( + public static global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateImageToVideoRequestVeo3PromptImagePromptImage? FromJson( + public static global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateImageToVideoRequestVeo3PromptImagePromptImage), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestVeo3PromptImagePromptImage; + typeof(global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestHailuo3ReferenceAudioItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.g.cs new file mode 100644 index 00000000..183e01d3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3ReferenceAudioItem.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An audio reference allows the model to use the audio as additional context for the output. + /// + public sealed partial class CreateImageToVideoRequestHailuo3ReferenceAudioItem + { + /// + /// + /// + /// "audio" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "audio"; + + /// + /// 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 CreateImageToVideoRequestHailuo3ReferenceAudioItem( + string uri, + string type = "audio") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoRequestHailuo3ReferenceAudioItem() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateImageToVideoRequestHailuo3ReferenceAudioItem FromUri(string uri) + { + return new CreateImageToVideoRequestHailuo3ReferenceAudioItem + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Resolution.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Resolution.g.cs new file mode 100644 index 00000000..27a4bd64 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestHailuo3Resolution.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + public enum CreateImageToVideoRequestHailuo3Resolution + { + /// + /// + /// + x2k, + /// + /// + /// + x768p, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateImageToVideoRequestHailuo3ResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateImageToVideoRequestHailuo3Resolution value) + { + return value switch + { + CreateImageToVideoRequestHailuo3Resolution.x2k => "2K", + CreateImageToVideoRequestHailuo3Resolution.x768p => "768P", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateImageToVideoRequestHailuo3Resolution? ToEnum(string value) + { + return value switch + { + "2K" => CreateImageToVideoRequestHailuo3Resolution.x2k, + "768P" => CreateImageToVideoRequestHailuo3Resolution.x768p, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2.g.cs index da475452..a095ad3e 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2.g.cs @@ -43,7 +43,7 @@ public sealed partial class CreateImageToVideoRequestSeedance2 public global::Runway.CreateImageToVideoRequestSeedance2Ratio? Ratio { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -81,7 +81,7 @@ public sealed partial class CreateImageToVideoRequestSeedance2 /// The resolution of the output video. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.Json.g.cs new file mode 100644 index 00000000..7e8afebe --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoRequestSeedance25 + { + /// + /// 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.CreateImageToVideoRequestSeedance25? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoRequestSeedance25), + jsonSerializerContext) as global::Runway.CreateImageToVideoRequestSeedance25; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoRequestSeedance25? 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.CreateImageToVideoRequestSeedance25? 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.CreateImageToVideoRequestSeedance25), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestSeedance25; + } + + /// + /// 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.CreateImageToVideoRequestSeedance25.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.g.cs new file mode 100644 index 00000000..e4762a22 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25.g.cs @@ -0,0 +1,116 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageToVideoRequestSeedance25 + { + /// + /// An image or array of images. Use position `first`/`last` for keyframe mode, or omit position for reference images. The two modes cannot be mixed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptImage")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.AnyOfJsonConverter>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.AnyOf> PromptImage { get; set; } + + /// + /// An optional text prompt up to 15000 characters describing what should appear in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + public string? PromptText { get; set; } + + /// + /// Whether to generate audio for the video.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public bool? Audio { get; set; } + + /// + /// The number of seconds of duration for the output video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25RatioJsonConverter))] + public global::Runway.CreateImageToVideoRequestSeedance25Ratio? Ratio { get; set; } + + /// + /// An optional array of audio references. The total combined duration must not exceed 30 seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// + /// + /// "seedance2_5" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "seedance2_5"; + + /// + /// 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. + /// + /// + /// An image or array of images. Use position `first`/`last` for keyframe mode, or omit position for reference images. The two modes cannot be mixed. + /// + /// + /// An optional text prompt up to 15000 characters describing what should appear in the output. + /// + /// + /// Whether to generate audio for the video.
+ /// Default Value: true + /// + /// + /// The number of seconds of duration for the output video. + /// + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + /// + /// An optional array of audio references. The total combined duration must not exceed 30 seconds. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateImageToVideoRequestSeedance25( + global::Runway.AnyOf> promptImage, + string? promptText, + bool? audio, + int? duration, + global::Runway.CreateImageToVideoRequestSeedance25Ratio? ratio, + global::System.Collections.Generic.IList? referenceAudio, + string model = "seedance2_5") + { + this.PromptImage = promptImage; + this.PromptText = promptText; + this.Audio = audio; + this.Duration = duration; + this.Ratio = ratio; + this.ReferenceAudio = referenceAudio; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoRequestSeedance25() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.Json.g.cs new file mode 100644 index 00000000..08be3eb1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoRequestSeedance25PromptImagePromptImage + { + /// + /// 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.CreateImageToVideoRequestSeedance25PromptImagePromptImage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImage), + jsonSerializerContext) as global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImage? 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.CreateImageToVideoRequestSeedance25PromptImagePromptImage? 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.CreateImageToVideoRequestSeedance25PromptImagePromptImage), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImage; + } + + /// + /// 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.CreateImageToVideoRequestVeo3PromptImagePromptImage.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.g.cs similarity index 65% rename from src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.g.cs index a7cefb29..ad8b9ad1 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3PromptImagePromptImage.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImage.g.cs @@ -6,7 +6,7 @@ namespace Runway /// /// /// - public sealed partial class CreateImageToVideoRequestVeo3PromptImagePromptImage + public sealed partial class CreateImageToVideoRequestSeedance25PromptImagePromptImage { /// /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
@@ -18,11 +18,11 @@ public sealed partial class CreateImageToVideoRequestVeo3PromptImagePromptImage public required string Uri { get; set; } /// - /// The position of the image in the output video. "first" will use the image as the first frame of the video. + /// The position of the image in the output video. "first" will use the image as the first frame, "last" as the last frame. Omit for a reference image. /// - /// "first" [global::System.Text.Json.Serialization.JsonPropertyName("position")] - public string Position { get; set; } = "first"; + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionJsonConverter))] + public global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition? Position { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,44 +31,32 @@ public sealed partial class CreateImageToVideoRequestVeo3PromptImagePromptImage public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// 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 /// /// - /// The position of the image in the output video. "first" will use the image as the first frame of the video. + /// The position of the image in the output video. "first" will use the image as the first frame, "last" as the last frame. Omit for a reference image. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateImageToVideoRequestVeo3PromptImagePromptImage( + public CreateImageToVideoRequestSeedance25PromptImagePromptImage( string uri, - string position = "first") + global::Runway.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition? position) { this.Uri = uri; this.Position = position; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateImageToVideoRequestVeo3PromptImagePromptImage() + public CreateImageToVideoRequestSeedance25PromptImagePromptImage() { } - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static CreateImageToVideoRequestVeo3PromptImagePromptImage FromUri(string uri) - { - return new CreateImageToVideoRequestVeo3PromptImagePromptImage - { - Uri = uri, - }; - } - } } \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs new file mode 100644 index 00000000..c11bee80 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The position of the image in the output video. "first" will use the image as the first frame, "last" as the last frame. Omit for a reference image. + /// + public enum CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition + { + /// + /// + /// + First, + /// + /// + /// + Last, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateImageToVideoRequestSeedance25PromptImagePromptImagePositionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition value) + { + return value switch + { + CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.First => "first", + CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.Last => "last", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition? ToEnum(string value) + { + return value switch + { + "first" => CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.First, + "last" => CreateImageToVideoRequestSeedance25PromptImagePromptImagePosition.Last, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25Ratio.g.cs new file mode 100644 index 00000000..44aa8502 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25Ratio.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + public enum CreateImageToVideoRequestSeedance25Ratio + { + /// + /// + /// + x1112_834, + /// + /// + /// + x1280_720, + /// + /// + /// + x1470_630, + /// + /// + /// + x480_854, + /// + /// + /// + x560_752, + /// + /// + /// + x640_640, + /// + /// + /// + x720_1280, + /// + /// + /// + x752_560, + /// + /// + /// + x834_1112, + /// + /// + /// + x854_480, + /// + /// + /// + x960_960, + /// + /// + /// + x992_432, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateImageToVideoRequestSeedance25RatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateImageToVideoRequestSeedance25Ratio value) + { + return value switch + { + CreateImageToVideoRequestSeedance25Ratio.x1112_834 => "1112:834", + CreateImageToVideoRequestSeedance25Ratio.x1280_720 => "1280:720", + CreateImageToVideoRequestSeedance25Ratio.x1470_630 => "1470:630", + CreateImageToVideoRequestSeedance25Ratio.x480_854 => "480:854", + CreateImageToVideoRequestSeedance25Ratio.x560_752 => "560:752", + CreateImageToVideoRequestSeedance25Ratio.x640_640 => "640:640", + CreateImageToVideoRequestSeedance25Ratio.x720_1280 => "720:1280", + CreateImageToVideoRequestSeedance25Ratio.x752_560 => "752:560", + CreateImageToVideoRequestSeedance25Ratio.x834_1112 => "834:1112", + CreateImageToVideoRequestSeedance25Ratio.x854_480 => "854:480", + CreateImageToVideoRequestSeedance25Ratio.x960_960 => "960:960", + CreateImageToVideoRequestSeedance25Ratio.x992_432 => "992:432", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateImageToVideoRequestSeedance25Ratio? ToEnum(string value) + { + return value switch + { + "1112:834" => CreateImageToVideoRequestSeedance25Ratio.x1112_834, + "1280:720" => CreateImageToVideoRequestSeedance25Ratio.x1280_720, + "1470:630" => CreateImageToVideoRequestSeedance25Ratio.x1470_630, + "480:854" => CreateImageToVideoRequestSeedance25Ratio.x480_854, + "560:752" => CreateImageToVideoRequestSeedance25Ratio.x560_752, + "640:640" => CreateImageToVideoRequestSeedance25Ratio.x640_640, + "720:1280" => CreateImageToVideoRequestSeedance25Ratio.x720_1280, + "752:560" => CreateImageToVideoRequestSeedance25Ratio.x752_560, + "834:1112" => CreateImageToVideoRequestSeedance25Ratio.x834_1112, + "854:480" => CreateImageToVideoRequestSeedance25Ratio.x854_480, + "960:960" => CreateImageToVideoRequestSeedance25Ratio.x960_960, + "992:432" => CreateImageToVideoRequestSeedance25Ratio.x992_432, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs new file mode 100644 index 00000000..af84ab07 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoRequestSeedance25ReferenceAudioItem + { + /// + /// 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.CreateImageToVideoRequestSeedance25ReferenceAudioItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoRequestSeedance25ReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateImageToVideoRequestSeedance25ReferenceAudioItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoRequestSeedance25ReferenceAudioItem? 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.CreateImageToVideoRequestSeedance25ReferenceAudioItem? 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.CreateImageToVideoRequestSeedance25ReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestSeedance25ReferenceAudioItem; + } + + /// + /// 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.CreateImageToVideoRequestSeedance25ReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.g.cs new file mode 100644 index 00000000..899d38db --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance25ReferenceAudioItem.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An audio reference allows the model to use the audio as additional context for the output. + /// + public sealed partial class CreateImageToVideoRequestSeedance25ReferenceAudioItem + { + /// + /// + /// + /// "audio" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "audio"; + + /// + /// 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 CreateImageToVideoRequestSeedance25ReferenceAudioItem( + string uri, + string type = "audio") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoRequestSeedance25ReferenceAudioItem() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateImageToVideoRequestSeedance25ReferenceAudioItem FromUri(string uri) + { + return new CreateImageToVideoRequestSeedance25ReferenceAudioItem + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Fast.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Fast.g.cs index 3acfaf76..5b2b566c 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Fast.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Fast.g.cs @@ -43,7 +43,7 @@ public sealed partial class CreateImageToVideoRequestSeedance2Fast public global::Runway.CreateImageToVideoRequestSeedance2FastRatio? Ratio { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -81,7 +81,7 @@ public sealed partial class CreateImageToVideoRequestSeedance2Fast /// The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p only. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Mini.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Mini.g.cs index ee2ead31..d7909af6 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Mini.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestSeedance2Mini.g.cs @@ -43,7 +43,7 @@ public sealed partial class CreateImageToVideoRequestSeedance2Mini public global::Runway.CreateImageToVideoRequestSeedance2MiniRatio? Ratio { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -81,7 +81,7 @@ public sealed partial class CreateImageToVideoRequestSeedance2Mini /// The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p only. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.g.cs deleted file mode 100644 index f1a56987..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.g.cs +++ /dev/null @@ -1,103 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// - /// - public sealed partial class CreateImageToVideoRequestVeo3 - { - /// - /// A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] - public string? PromptText { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("promptImage")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.AnyOfJsonConverter>))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.AnyOf> PromptImage { get; set; } - - /// - /// The number of seconds of duration for the output video. - /// - /// 8 - [global::System.Text.Json.Serialization.JsonPropertyName("duration")] - public double Duration { get; set; } = 8; - - /// - /// The resolution of the output video. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateImageToVideoRequestVeo3RatioJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateImageToVideoRequestVeo3Ratio Ratio { get; set; } - - /// - /// Text describing what should not appear in the output video. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("negativePrompt")] - public string? NegativePrompt { get; set; } - - /// - /// - /// - /// "veo3" - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string Model { get; set; } = "veo3"; - - /// - /// 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 resolution of the output video. - /// - /// - /// A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output. - /// - /// - /// Text describing what should not appear in the output video. - /// - /// - /// The number of seconds of duration for the output video. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateImageToVideoRequestVeo3( - global::Runway.AnyOf> promptImage, - global::Runway.CreateImageToVideoRequestVeo3Ratio ratio, - string? promptText, - string? negativePrompt, - double duration = 8, - string model = "veo3") - { - this.PromptText = promptText; - this.PromptImage = promptImage; - this.Duration = duration; - this.Ratio = ratio; - this.NegativePrompt = negativePrompt; - this.Model = model; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateImageToVideoRequestVeo3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3Ratio.g.cs deleted file mode 100644 index 19920f83..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3Ratio.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The resolution of the output video. - /// - public enum CreateImageToVideoRequestVeo3Ratio - { - /// - /// - /// - x1080_1920, - /// - /// - /// - x1280_720, - /// - /// - /// - x1920_1080, - /// - /// - /// - x720_1280, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateImageToVideoRequestVeo3RatioExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateImageToVideoRequestVeo3Ratio value) - { - return value switch - { - CreateImageToVideoRequestVeo3Ratio.x1080_1920 => "1080:1920", - CreateImageToVideoRequestVeo3Ratio.x1280_720 => "1280:720", - CreateImageToVideoRequestVeo3Ratio.x1920_1080 => "1920:1080", - CreateImageToVideoRequestVeo3Ratio.x720_1280 => "720:1280", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateImageToVideoRequestVeo3Ratio? ToEnum(string value) - { - return value switch - { - "1080:1920" => CreateImageToVideoRequestVeo3Ratio.x1080_1920, - "1280:720" => CreateImageToVideoRequestVeo3Ratio.x1280_720, - "1920:1080" => CreateImageToVideoRequestVeo3Ratio.x1920_1080, - "720:1280" => CreateImageToVideoRequestVeo3Ratio.x720_1280, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse.g.cs index 477d434d..5b0bfb73 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateImageToVideoResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateImageToVideoResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateImageToVideoResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateImageToVideoResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateImageToVideoResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse2.g.cs index 9b8c5010..63e4ae6a 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateImageToVideoResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateImageToVideoResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateImageToVideoResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.Json.g.cs similarity index 88% rename from src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.Json.g.cs index 692d1369..63fe11ba 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoRequestVeo3.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateImageToVideoRequestVeo3 + public sealed partial class CreateImageToVideoResponse3 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateImageToVideoRequestVeo3? FromJson( + public static global::Runway.CreateImageToVideoResponse3? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateImageToVideoRequestVeo3), - jsonSerializerContext) as global::Runway.CreateImageToVideoRequestVeo3; + typeof(global::Runway.CreateImageToVideoResponse3), + jsonSerializerContext) as global::Runway.CreateImageToVideoResponse3; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateImageToVideoRequestVeo3? FromJson( + public static global::Runway.CreateImageToVideoResponse3? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateImageToVideoRequestVeo3? FromJson( + public static global::Runway.CreateImageToVideoResponse3? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateImageToVideoRequestVeo3), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoRequestVeo3; + typeof(global::Runway.CreateImageToVideoResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoResponse3; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.g.cs new file mode 100644 index 00000000..ff8b50f1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageToVideoResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateImageToVideoResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..c9323d38 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoResponseEstimatedCost + { + /// + /// 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.CreateImageToVideoResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateImageToVideoResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoResponseEstimatedCost? 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.CreateImageToVideoResponseEstimatedCost? 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.CreateImageToVideoResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoResponseEstimatedCost; + } + + /// + /// 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.CreateImageToVideoResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.g.cs new file mode 100644 index 00000000..26b74556 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateImageToVideoResponseEstimatedCost + { + /// + /// 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 CreateImageToVideoResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.Json.g.cs new file mode 100644 index 00000000..cf82ccd6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoResponseIssue + { + /// + /// 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.CreateImageToVideoResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoResponseIssue), + jsonSerializerContext) as global::Runway.CreateImageToVideoResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoResponseIssue? 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.CreateImageToVideoResponseIssue? 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.CreateImageToVideoResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoResponseIssue; + } + + /// + /// 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.CreateImageToVideoResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.g.cs new file mode 100644 index 00000000..2ca39039 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageToVideoResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateImageToVideoResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageToVideoResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.Json.g.cs new file mode 100644 index 00000000..5537d80a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageToVideoResponseIssue2 + { + /// + /// 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.CreateImageToVideoResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageToVideoResponseIssue2), + jsonSerializerContext) as global::Runway.CreateImageToVideoResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageToVideoResponseIssue2? 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.CreateImageToVideoResponseIssue2? 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.CreateImageToVideoResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageToVideoResponseIssue2; + } + + /// + /// 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.CreateImageToVideoResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.g.cs new file mode 100644 index 00000000..5cf7da54 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageToVideoResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageToVideoResponseIssue2 + { + + /// + /// 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.CreateImageUpscaleResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse.g.cs index 0a1dfbb2..51bdde0b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateImageUpscaleResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateImageUpscaleResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateImageUpscaleResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateImageUpscaleResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateImageUpscaleResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse2.g.cs index 610645ef..31d6fd67 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateImageUpscaleResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateImageUpscaleResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateImageUpscaleResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.Json.g.cs new file mode 100644 index 00000000..c4297dd3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageUpscaleResponse3 + { + /// + /// 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.CreateImageUpscaleResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageUpscaleResponse3), + jsonSerializerContext) as global::Runway.CreateImageUpscaleResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageUpscaleResponse3? 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.CreateImageUpscaleResponse3? 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.CreateImageUpscaleResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageUpscaleResponse3; + } + + /// + /// 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.CreateImageUpscaleResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.g.cs new file mode 100644 index 00000000..676748f3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageUpscaleResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateImageUpscaleResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageUpscaleResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..746102b7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageUpscaleResponseEstimatedCost + { + /// + /// 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.CreateImageUpscaleResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageUpscaleResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateImageUpscaleResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageUpscaleResponseEstimatedCost? 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.CreateImageUpscaleResponseEstimatedCost? 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.CreateImageUpscaleResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageUpscaleResponseEstimatedCost; + } + + /// + /// 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.CreateImageUpscaleResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.g.cs new file mode 100644 index 00000000..a96e6750 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateImageUpscaleResponseEstimatedCost + { + /// + /// 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 CreateImageUpscaleResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageUpscaleResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.Json.g.cs new file mode 100644 index 00000000..9f2c18b1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageUpscaleResponseIssue + { + /// + /// 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.CreateImageUpscaleResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageUpscaleResponseIssue), + jsonSerializerContext) as global::Runway.CreateImageUpscaleResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageUpscaleResponseIssue? 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.CreateImageUpscaleResponseIssue? 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.CreateImageUpscaleResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageUpscaleResponseIssue; + } + + /// + /// 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.CreateImageUpscaleResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.g.cs new file mode 100644 index 00000000..a547c6e0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageUpscaleResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateImageUpscaleResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateImageUpscaleResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.Json.g.cs new file mode 100644 index 00000000..be2ef77d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateImageUpscaleResponseIssue2 + { + /// + /// 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.CreateImageUpscaleResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateImageUpscaleResponseIssue2), + jsonSerializerContext) as global::Runway.CreateImageUpscaleResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateImageUpscaleResponseIssue2? 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.CreateImageUpscaleResponseIssue2? 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.CreateImageUpscaleResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateImageUpscaleResponseIssue2; + } + + /// + /// 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.CreateImageUpscaleResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.g.cs new file mode 100644 index 00000000..0d6e9f34 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateImageUpscaleResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateImageUpscaleResponseIssue2 + { + + /// + /// 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 8a510773..7e919de1 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseModel.g.cs @@ -107,6 +107,10 @@ public enum CreateOrganizationUsageResponseModel /// /// /// + Hailuo3, + /// + /// + /// Happyhorse10, /// /// @@ -179,6 +183,10 @@ public enum CreateOrganizationUsageResponseModel /// /// /// + Seedance25, + /// + /// + /// Seedance2Fast, /// /// @@ -246,6 +254,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseModel val CreateOrganizationUsageResponseModel.Gwm1AvatarAsyncAudioToVideo => "gwm1_avatar_async_audio_to_video", CreateOrganizationUsageResponseModel.Gwm1AvatarAsyncTextToVideo => "gwm1_avatar_async_text_to_video", CreateOrganizationUsageResponseModel.Gwm1Avatars => "gwm1_avatars", + CreateOrganizationUsageResponseModel.Hailuo3 => "hailuo3", CreateOrganizationUsageResponseModel.Happyhorse10 => "happyhorse_1_0", CreateOrganizationUsageResponseModel.Kling25TurboPro => "kling2.5_turbo_pro", CreateOrganizationUsageResponseModel.Kling304k => "kling3.0_4k", @@ -264,6 +273,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseModel val CreateOrganizationUsageResponseModel.ProductUgc => "product_ugc", CreateOrganizationUsageResponseModel.SeedAudio => "seed_audio", CreateOrganizationUsageResponseModel.Seedance2 => "seedance2", + CreateOrganizationUsageResponseModel.Seedance25 => "seedance2_5", CreateOrganizationUsageResponseModel.Seedance2Fast => "seedance2_fast", CreateOrganizationUsageResponseModel.Seedance2Mini => "seedance2_mini", CreateOrganizationUsageResponseModel.Seedream5Lite => "seedream5_lite", @@ -306,6 +316,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseModel val "gwm1_avatar_async_audio_to_video" => CreateOrganizationUsageResponseModel.Gwm1AvatarAsyncAudioToVideo, "gwm1_avatar_async_text_to_video" => CreateOrganizationUsageResponseModel.Gwm1AvatarAsyncTextToVideo, "gwm1_avatars" => CreateOrganizationUsageResponseModel.Gwm1Avatars, + "hailuo3" => CreateOrganizationUsageResponseModel.Hailuo3, "happyhorse_1_0" => CreateOrganizationUsageResponseModel.Happyhorse10, "kling2.5_turbo_pro" => CreateOrganizationUsageResponseModel.Kling25TurboPro, "kling3.0_4k" => CreateOrganizationUsageResponseModel.Kling304k, @@ -324,6 +335,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseModel val "product_ugc" => CreateOrganizationUsageResponseModel.ProductUgc, "seed_audio" => CreateOrganizationUsageResponseModel.SeedAudio, "seedance2" => CreateOrganizationUsageResponseModel.Seedance2, + "seedance2_5" => CreateOrganizationUsageResponseModel.Seedance25, "seedance2_fast" => CreateOrganizationUsageResponseModel.Seedance2Fast, "seedance2_mini" => CreateOrganizationUsageResponseModel.Seedance2Mini, "seedream5_lite" => CreateOrganizationUsageResponseModel.Seedream5Lite, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs index 4a6b7502..29c47e3f 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs @@ -107,6 +107,10 @@ public enum CreateOrganizationUsageResponseResultUsedCreditModel /// /// /// + Hailuo3, + /// + /// + /// Happyhorse10, /// /// @@ -179,6 +183,10 @@ public enum CreateOrganizationUsageResponseResultUsedCreditModel /// /// /// + Seedance25, + /// + /// + /// Seedance2Fast, /// /// @@ -246,6 +254,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseResultUse CreateOrganizationUsageResponseResultUsedCreditModel.Gwm1AvatarAsyncAudioToVideo => "gwm1_avatar_async_audio_to_video", CreateOrganizationUsageResponseResultUsedCreditModel.Gwm1AvatarAsyncTextToVideo => "gwm1_avatar_async_text_to_video", CreateOrganizationUsageResponseResultUsedCreditModel.Gwm1Avatars => "gwm1_avatars", + CreateOrganizationUsageResponseResultUsedCreditModel.Hailuo3 => "hailuo3", CreateOrganizationUsageResponseResultUsedCreditModel.Happyhorse10 => "happyhorse_1_0", CreateOrganizationUsageResponseResultUsedCreditModel.Kling25TurboPro => "kling2.5_turbo_pro", CreateOrganizationUsageResponseResultUsedCreditModel.Kling304k => "kling3.0_4k", @@ -264,6 +273,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseResultUse CreateOrganizationUsageResponseResultUsedCreditModel.ProductUgc => "product_ugc", CreateOrganizationUsageResponseResultUsedCreditModel.SeedAudio => "seed_audio", CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2 => "seedance2", + CreateOrganizationUsageResponseResultUsedCreditModel.Seedance25 => "seedance2_5", CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Fast => "seedance2_fast", CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Mini => "seedance2_mini", CreateOrganizationUsageResponseResultUsedCreditModel.Seedream5Lite => "seedream5_lite", @@ -306,6 +316,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseResultUse "gwm1_avatar_async_audio_to_video" => CreateOrganizationUsageResponseResultUsedCreditModel.Gwm1AvatarAsyncAudioToVideo, "gwm1_avatar_async_text_to_video" => CreateOrganizationUsageResponseResultUsedCreditModel.Gwm1AvatarAsyncTextToVideo, "gwm1_avatars" => CreateOrganizationUsageResponseResultUsedCreditModel.Gwm1Avatars, + "hailuo3" => CreateOrganizationUsageResponseResultUsedCreditModel.Hailuo3, "happyhorse_1_0" => CreateOrganizationUsageResponseResultUsedCreditModel.Happyhorse10, "kling2.5_turbo_pro" => CreateOrganizationUsageResponseResultUsedCreditModel.Kling25TurboPro, "kling3.0_4k" => CreateOrganizationUsageResponseResultUsedCreditModel.Kling304k, @@ -324,6 +335,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseResultUse "product_ugc" => CreateOrganizationUsageResponseResultUsedCreditModel.ProductUgc, "seed_audio" => CreateOrganizationUsageResponseResultUsedCreditModel.SeedAudio, "seedance2" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2, + "seedance2_5" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance25, "seedance2_fast" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Fast, "seedance2_mini" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Mini, "seedream5_lite" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedream5Lite, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs index 96fcce91..f15b3fa5 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesAdLocalizationResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesAdLocalizationResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesAdLocalizationResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs index 0b7a605a..c1d5b1eb 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesAdLocalizationResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesAdLocalizationResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesAdLocalizationResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.Json.g.cs new file mode 100644 index 00000000..4bb5ff45 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationResponse3 + { + /// + /// 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.CreateRecipesAdLocalizationResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponse3? 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.CreateRecipesAdLocalizationResponse3? 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.CreateRecipesAdLocalizationResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationResponse3; + } + + /// + /// 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.CreateRecipesAdLocalizationResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.g.cs new file mode 100644 index 00000000..7bfc5a48 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesAdLocalizationResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesAdLocalizationResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..af1a1406 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationResponseEstimatedCost + { + /// + /// 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.CreateRecipesAdLocalizationResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost? 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.CreateRecipesAdLocalizationResponseEstimatedCost? 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.CreateRecipesAdLocalizationResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesAdLocalizationResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.g.cs new file mode 100644 index 00000000..35868714 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesAdLocalizationResponseEstimatedCost + { + /// + /// 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 CreateRecipesAdLocalizationResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.Json.g.cs new file mode 100644 index 00000000..e888fbb4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationResponseIssue + { + /// + /// 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.CreateRecipesAdLocalizationResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponseIssue? 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.CreateRecipesAdLocalizationResponseIssue? 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.CreateRecipesAdLocalizationResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationResponseIssue; + } + + /// + /// 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.CreateRecipesAdLocalizationResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.g.cs new file mode 100644 index 00000000..1ab48d74 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesAdLocalizationResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesAdLocalizationResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.Json.g.cs new file mode 100644 index 00000000..2f997ef3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationResponseIssue2 + { + /// + /// 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.CreateRecipesAdLocalizationResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponseIssue2? 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.CreateRecipesAdLocalizationResponseIssue2? 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.CreateRecipesAdLocalizationResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationResponseIssue2; + } + + /// + /// 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.CreateRecipesAdLocalizationResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.g.cs new file mode 100644 index 00000000..59adfd81 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesAdLocalizationResponseIssue2 + { + + /// + /// 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.CreateRecipesMarketingStockImageResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse.g.cs index 500c32c0..407b444d 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesMarketingStockImageResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesMarketingStockImageResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesMarketingStockImageResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse2.g.cs index 8a61055f..7c952509 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesMarketingStockImageResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesMarketingStockImageResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesMarketingStockImageResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.Json.g.cs new file mode 100644 index 00000000..6d4c2d75 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMarketingStockImageResponse3 + { + /// + /// 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.CreateRecipesMarketingStockImageResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMarketingStockImageResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesMarketingStockImageResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMarketingStockImageResponse3? 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.CreateRecipesMarketingStockImageResponse3? 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.CreateRecipesMarketingStockImageResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMarketingStockImageResponse3; + } + + /// + /// 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.CreateRecipesMarketingStockImageResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.g.cs new file mode 100644 index 00000000..69f1f769 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesMarketingStockImageResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesMarketingStockImageResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesMarketingStockImageResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..fd134892 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMarketingStockImageResponseEstimatedCost + { + /// + /// 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.CreateRecipesMarketingStockImageResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost? 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.CreateRecipesMarketingStockImageResponseEstimatedCost? 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.CreateRecipesMarketingStockImageResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMarketingStockImageResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesMarketingStockImageResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.g.cs new file mode 100644 index 00000000..b6851943 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesMarketingStockImageResponseEstimatedCost + { + /// + /// 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 CreateRecipesMarketingStockImageResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesMarketingStockImageResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.Json.g.cs new file mode 100644 index 00000000..892f112a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMarketingStockImageResponseIssue + { + /// + /// 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.CreateRecipesMarketingStockImageResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMarketingStockImageResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesMarketingStockImageResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMarketingStockImageResponseIssue? 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.CreateRecipesMarketingStockImageResponseIssue? 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.CreateRecipesMarketingStockImageResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMarketingStockImageResponseIssue; + } + + /// + /// 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.CreateRecipesMarketingStockImageResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.g.cs new file mode 100644 index 00000000..86bc6825 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesMarketingStockImageResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesMarketingStockImageResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesMarketingStockImageResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.Json.g.cs new file mode 100644 index 00000000..f6741414 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMarketingStockImageResponseIssue2 + { + /// + /// 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.CreateRecipesMarketingStockImageResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMarketingStockImageResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesMarketingStockImageResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMarketingStockImageResponseIssue2? 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.CreateRecipesMarketingStockImageResponseIssue2? 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.CreateRecipesMarketingStockImageResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMarketingStockImageResponseIssue2; + } + + /// + /// 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.CreateRecipesMarketingStockImageResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.g.cs new file mode 100644 index 00000000..e9f9b733 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMarketingStockImageResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesMarketingStockImageResponseIssue2 + { + + /// + /// 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.CreateRecipesMultiShotVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse.g.cs index 1b68d10b..b85d38e5 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesMultiShotVideoResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesMultiShotVideoResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesMultiShotVideoResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse2.g.cs index 012cd897..3646aaa6 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesMultiShotVideoResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesMultiShotVideoResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesMultiShotVideoResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.Json.g.cs new file mode 100644 index 00000000..a4a79a29 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMultiShotVideoResponse3 + { + /// + /// 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.CreateRecipesMultiShotVideoResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMultiShotVideoResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesMultiShotVideoResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMultiShotVideoResponse3? 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.CreateRecipesMultiShotVideoResponse3? 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.CreateRecipesMultiShotVideoResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMultiShotVideoResponse3; + } + + /// + /// 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.CreateRecipesMultiShotVideoResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.g.cs new file mode 100644 index 00000000..c94cecc2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesMultiShotVideoResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesMultiShotVideoResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesMultiShotVideoResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..0e5b3279 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMultiShotVideoResponseEstimatedCost + { + /// + /// 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.CreateRecipesMultiShotVideoResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost? 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.CreateRecipesMultiShotVideoResponseEstimatedCost? 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.CreateRecipesMultiShotVideoResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMultiShotVideoResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesMultiShotVideoResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.g.cs new file mode 100644 index 00000000..830c59c5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesMultiShotVideoResponseEstimatedCost + { + /// + /// 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 CreateRecipesMultiShotVideoResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesMultiShotVideoResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.Json.g.cs new file mode 100644 index 00000000..56747d70 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMultiShotVideoResponseIssue + { + /// + /// 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.CreateRecipesMultiShotVideoResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMultiShotVideoResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesMultiShotVideoResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMultiShotVideoResponseIssue? 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.CreateRecipesMultiShotVideoResponseIssue? 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.CreateRecipesMultiShotVideoResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMultiShotVideoResponseIssue; + } + + /// + /// 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.CreateRecipesMultiShotVideoResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.g.cs new file mode 100644 index 00000000..269884b4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesMultiShotVideoResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesMultiShotVideoResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesMultiShotVideoResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.Json.g.cs new file mode 100644 index 00000000..fc4b6af6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesMultiShotVideoResponseIssue2 + { + /// + /// 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.CreateRecipesMultiShotVideoResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesMultiShotVideoResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesMultiShotVideoResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesMultiShotVideoResponseIssue2? 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.CreateRecipesMultiShotVideoResponseIssue2? 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.CreateRecipesMultiShotVideoResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesMultiShotVideoResponseIssue2; + } + + /// + /// 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.CreateRecipesMultiShotVideoResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.g.cs new file mode 100644 index 00000000..ec44d709 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesMultiShotVideoResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesMultiShotVideoResponseIssue2 + { + + /// + /// 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.CreateRecipesProductAdResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse.g.cs index a778f77e..7b45ae0e 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesProductAdResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesProductAdResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesProductAdResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductAdResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesProductAdResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse2.g.cs index 6f29f24a..b3331533 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesProductAdResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesProductAdResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductAdResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.Json.g.cs new file mode 100644 index 00000000..d9e1d8e1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductAdResponse3 + { + /// + /// 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.CreateRecipesProductAdResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductAdResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesProductAdResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductAdResponse3? 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.CreateRecipesProductAdResponse3? 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.CreateRecipesProductAdResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductAdResponse3; + } + + /// + /// 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.CreateRecipesProductAdResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.g.cs new file mode 100644 index 00000000..97b47d5d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductAdResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductAdResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductAdResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..6fcdc6c0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductAdResponseEstimatedCost + { + /// + /// 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.CreateRecipesProductAdResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductAdResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesProductAdResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductAdResponseEstimatedCost? 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.CreateRecipesProductAdResponseEstimatedCost? 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.CreateRecipesProductAdResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductAdResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesProductAdResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.g.cs new file mode 100644 index 00000000..41977323 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesProductAdResponseEstimatedCost + { + /// + /// 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 CreateRecipesProductAdResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductAdResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.Json.g.cs new file mode 100644 index 00000000..a37903e8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductAdResponseIssue + { + /// + /// 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.CreateRecipesProductAdResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductAdResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesProductAdResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductAdResponseIssue? 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.CreateRecipesProductAdResponseIssue? 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.CreateRecipesProductAdResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductAdResponseIssue; + } + + /// + /// 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.CreateRecipesProductAdResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.g.cs new file mode 100644 index 00000000..20fc82d1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductAdResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductAdResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductAdResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.Json.g.cs new file mode 100644 index 00000000..c222f6c3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductAdResponseIssue2 + { + /// + /// 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.CreateRecipesProductAdResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductAdResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesProductAdResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductAdResponseIssue2? 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.CreateRecipesProductAdResponseIssue2? 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.CreateRecipesProductAdResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductAdResponseIssue2; + } + + /// + /// 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.CreateRecipesProductAdResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.g.cs new file mode 100644 index 00000000..ac89f735 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductAdResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductAdResponseIssue2 + { + + /// + /// 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.CreateRecipesProductCampaignImageResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse.g.cs index 9feb0e55..9207e79f 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesProductCampaignImageResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesProductCampaignImageResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductCampaignImageResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse2.g.cs index c2277c91..c106b564 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesProductCampaignImageResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesProductCampaignImageResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductCampaignImageResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.Json.g.cs new file mode 100644 index 00000000..596bad63 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductCampaignImageResponse3 + { + /// + /// 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.CreateRecipesProductCampaignImageResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductCampaignImageResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesProductCampaignImageResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductCampaignImageResponse3? 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.CreateRecipesProductCampaignImageResponse3? 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.CreateRecipesProductCampaignImageResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductCampaignImageResponse3; + } + + /// + /// 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.CreateRecipesProductCampaignImageResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.g.cs new file mode 100644 index 00000000..9bf4ec8d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductCampaignImageResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductCampaignImageResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductCampaignImageResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..a53c6c01 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductCampaignImageResponseEstimatedCost + { + /// + /// 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.CreateRecipesProductCampaignImageResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost? 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.CreateRecipesProductCampaignImageResponseEstimatedCost? 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.CreateRecipesProductCampaignImageResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductCampaignImageResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesProductCampaignImageResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.g.cs new file mode 100644 index 00000000..082c1ec7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesProductCampaignImageResponseEstimatedCost + { + /// + /// 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 CreateRecipesProductCampaignImageResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductCampaignImageResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.Json.g.cs new file mode 100644 index 00000000..53f11150 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductCampaignImageResponseIssue + { + /// + /// 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.CreateRecipesProductCampaignImageResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductCampaignImageResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesProductCampaignImageResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductCampaignImageResponseIssue? 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.CreateRecipesProductCampaignImageResponseIssue? 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.CreateRecipesProductCampaignImageResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductCampaignImageResponseIssue; + } + + /// + /// 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.CreateRecipesProductCampaignImageResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.g.cs new file mode 100644 index 00000000..c72d4bcb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductCampaignImageResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductCampaignImageResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductCampaignImageResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.Json.g.cs new file mode 100644 index 00000000..416bc366 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductCampaignImageResponseIssue2 + { + /// + /// 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.CreateRecipesProductCampaignImageResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductCampaignImageResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesProductCampaignImageResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductCampaignImageResponseIssue2? 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.CreateRecipesProductCampaignImageResponseIssue2? 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.CreateRecipesProductCampaignImageResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductCampaignImageResponseIssue2; + } + + /// + /// 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.CreateRecipesProductCampaignImageResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.g.cs new file mode 100644 index 00000000..ad6517c3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductCampaignImageResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductCampaignImageResponseIssue2 + { + + /// + /// 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.CreateRecipesProductSwapResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse.g.cs index 78ce0272..9faee122 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesProductSwapResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesProductSwapResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesProductSwapResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductSwapResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesProductSwapResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse2.g.cs index 734c6de2..9b93e865 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesProductSwapResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesProductSwapResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductSwapResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.Json.g.cs new file mode 100644 index 00000000..176f6d99 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductSwapResponse3 + { + /// + /// 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.CreateRecipesProductSwapResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductSwapResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesProductSwapResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductSwapResponse3? 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.CreateRecipesProductSwapResponse3? 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.CreateRecipesProductSwapResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductSwapResponse3; + } + + /// + /// 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.CreateRecipesProductSwapResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.g.cs new file mode 100644 index 00000000..90b9ca03 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductSwapResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductSwapResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductSwapResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..073c8cf8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductSwapResponseEstimatedCost + { + /// + /// 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.CreateRecipesProductSwapResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductSwapResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesProductSwapResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductSwapResponseEstimatedCost? 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.CreateRecipesProductSwapResponseEstimatedCost? 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.CreateRecipesProductSwapResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductSwapResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesProductSwapResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.g.cs new file mode 100644 index 00000000..9debfc41 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesProductSwapResponseEstimatedCost + { + /// + /// 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 CreateRecipesProductSwapResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductSwapResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.Json.g.cs new file mode 100644 index 00000000..5eb8c5d9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductSwapResponseIssue + { + /// + /// 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.CreateRecipesProductSwapResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductSwapResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesProductSwapResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductSwapResponseIssue? 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.CreateRecipesProductSwapResponseIssue? 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.CreateRecipesProductSwapResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductSwapResponseIssue; + } + + /// + /// 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.CreateRecipesProductSwapResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.g.cs new file mode 100644 index 00000000..fed0aea5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductSwapResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductSwapResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductSwapResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.Json.g.cs new file mode 100644 index 00000000..4763eff9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductSwapResponseIssue2 + { + /// + /// 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.CreateRecipesProductSwapResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductSwapResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesProductSwapResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductSwapResponseIssue2? 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.CreateRecipesProductSwapResponseIssue2? 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.CreateRecipesProductSwapResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductSwapResponseIssue2; + } + + /// + /// 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.CreateRecipesProductSwapResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.g.cs new file mode 100644 index 00000000..35b2b4f4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductSwapResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductSwapResponseIssue2 + { + + /// + /// 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.CreateRecipesProductUgcResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse.g.cs index 81bdeb69..e275bcc6 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateRecipesProductUgcResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesProductUgcResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateRecipesProductUgcResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductUgcResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateRecipesProductUgcResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse2.g.cs index bd83df25..bbe141bf 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateRecipesProductUgcResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateRecipesProductUgcResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateRecipesProductUgcResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.Json.g.cs new file mode 100644 index 00000000..333f4018 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductUgcResponse3 + { + /// + /// 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.CreateRecipesProductUgcResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductUgcResponse3), + jsonSerializerContext) as global::Runway.CreateRecipesProductUgcResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductUgcResponse3? 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.CreateRecipesProductUgcResponse3? 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.CreateRecipesProductUgcResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductUgcResponse3; + } + + /// + /// 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.CreateRecipesProductUgcResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.g.cs new file mode 100644 index 00000000..541c4d11 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductUgcResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductUgcResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductUgcResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..abffa7f6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductUgcResponseEstimatedCost + { + /// + /// 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.CreateRecipesProductUgcResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductUgcResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateRecipesProductUgcResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductUgcResponseEstimatedCost? 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.CreateRecipesProductUgcResponseEstimatedCost? 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.CreateRecipesProductUgcResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductUgcResponseEstimatedCost; + } + + /// + /// 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.CreateRecipesProductUgcResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.g.cs new file mode 100644 index 00000000..5da84b7f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateRecipesProductUgcResponseEstimatedCost + { + /// + /// 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 CreateRecipesProductUgcResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductUgcResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.Json.g.cs new file mode 100644 index 00000000..ae2c4070 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductUgcResponseIssue + { + /// + /// 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.CreateRecipesProductUgcResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductUgcResponseIssue), + jsonSerializerContext) as global::Runway.CreateRecipesProductUgcResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductUgcResponseIssue? 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.CreateRecipesProductUgcResponseIssue? 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.CreateRecipesProductUgcResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductUgcResponseIssue; + } + + /// + /// 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.CreateRecipesProductUgcResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.g.cs new file mode 100644 index 00000000..6a4ed553 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductUgcResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesProductUgcResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesProductUgcResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.Json.g.cs new file mode 100644 index 00000000..94005631 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesProductUgcResponseIssue2 + { + /// + /// 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.CreateRecipesProductUgcResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesProductUgcResponseIssue2), + jsonSerializerContext) as global::Runway.CreateRecipesProductUgcResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesProductUgcResponseIssue2? 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.CreateRecipesProductUgcResponseIssue2? 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.CreateRecipesProductUgcResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesProductUgcResponseIssue2; + } + + /// + /// 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.CreateRecipesProductUgcResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.g.cs new file mode 100644 index 00000000..7549343b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesProductUgcResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesProductUgcResponseIssue2 + { + + /// + /// 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.CreateRoutersRequestSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.g.cs index 9a80bee0..db4a88df 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.g.cs @@ -33,6 +33,12 @@ public sealed partial class CreateRoutersRequestSettings [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForJsonConverter))] public global::Runway.CreateRoutersRequestSettingsOptimizeFor? OptimizeFor { get; set; } + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback")] + public global::Runway.CreateRoutersRequestSettingsFallback? Fallback { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,6 +60,9 @@ public sealed partial class CreateRoutersRequestSettings /// /// Soft preference among eligible models: cost, latency, or quality. /// + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -61,12 +70,14 @@ public CreateRoutersRequestSettings( double? schemaVersion, global::Runway.CreateRoutersRequestSettingsModels? models, global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, - global::Runway.CreateRoutersRequestSettingsOptimizeFor? optimizeFor) + global::Runway.CreateRoutersRequestSettingsOptimizeFor? optimizeFor, + global::Runway.CreateRoutersRequestSettingsFallback? fallback) { this.SchemaVersion = schemaVersion; this.Models = models; this.MaxCreditsPerGeneration = maxCreditsPerGeneration; this.OptimizeFor = optimizeFor; + this.Fallback = fallback; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.Json.g.cs new file mode 100644 index 00000000..62e6a901 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersRequestSettingsFallback + { + /// + /// 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.CreateRoutersRequestSettingsFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersRequestSettingsFallback), + jsonSerializerContext) as global::Runway.CreateRoutersRequestSettingsFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersRequestSettingsFallback? 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.CreateRoutersRequestSettingsFallback? 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.CreateRoutersRequestSettingsFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersRequestSettingsFallback; + } + + /// + /// 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.CreateRoutersRequestSettingsFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.g.cs new file mode 100644 index 00000000..c25c11fc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsFallback.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + public sealed partial class CreateRoutersRequestSettingsFallback + { + /// + /// When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("onCapacity")] + public bool? OnCapacity { 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 true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRoutersRequestSettingsFallback( + bool? onCapacity) + { + this.OnCapacity = onCapacity; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersRequestSettingsFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.g.cs index 73736c54..ffa0a636 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.g.cs @@ -34,6 +34,12 @@ public sealed partial class CreateRoutersResponseSettings [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForJsonConverter))] public global::Runway.CreateRoutersResponseSettingsOptimizeFor? OptimizeFor { get; set; } + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback")] + public global::Runway.CreateRoutersResponseSettingsFallback? Fallback { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,6 +58,9 @@ public sealed partial class CreateRoutersResponseSettings /// /// Soft preference among eligible models: cost, latency, or quality. /// + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// /// /// Settings JSON schema version used when this snapshot was written. /// @@ -62,12 +71,14 @@ public CreateRoutersResponseSettings( global::Runway.CreateRoutersResponseSettingsModels? models, global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, global::Runway.CreateRoutersResponseSettingsOptimizeFor? optimizeFor, + global::Runway.CreateRoutersResponseSettingsFallback? fallback, double schemaVersion = 1) { this.SchemaVersion = schemaVersion; this.Models = models; this.MaxCreditsPerGeneration = maxCreditsPerGeneration; this.OptimizeFor = optimizeFor; + this.Fallback = fallback; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.Json.g.cs new file mode 100644 index 00000000..82434f2a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersResponseSettingsFallback + { + /// + /// 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.CreateRoutersResponseSettingsFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersResponseSettingsFallback), + jsonSerializerContext) as global::Runway.CreateRoutersResponseSettingsFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersResponseSettingsFallback? 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.CreateRoutersResponseSettingsFallback? 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.CreateRoutersResponseSettingsFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersResponseSettingsFallback; + } + + /// + /// 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.CreateRoutersResponseSettingsFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.g.cs new file mode 100644 index 00000000..94f405e0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsFallback.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + public sealed partial class CreateRoutersResponseSettingsFallback + { + /// + /// When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("onCapacity")] + public bool? OnCapacity { 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 true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRoutersResponseSettingsFallback( + bool? onCapacity) + { + this.OnCapacity = onCapacity; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersResponseSettingsFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse.g.cs index 5901b3c7..9076daf4 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateSoundEffectResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateSoundEffectResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateSoundEffectResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateSoundEffectResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateSoundEffectResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse2.g.cs index 094ebd2a..7a0efdd8 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateSoundEffectResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateSoundEffectResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateSoundEffectResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.Json.g.cs new file mode 100644 index 00000000..396ec5d5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSoundEffectResponse3 + { + /// + /// 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.CreateSoundEffectResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSoundEffectResponse3), + jsonSerializerContext) as global::Runway.CreateSoundEffectResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSoundEffectResponse3? 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.CreateSoundEffectResponse3? 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.CreateSoundEffectResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSoundEffectResponse3; + } + + /// + /// 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.CreateSoundEffectResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.g.cs new file mode 100644 index 00000000..5b01237e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateSoundEffectResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSoundEffectResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSoundEffectResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..0ffd9f3e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSoundEffectResponseEstimatedCost + { + /// + /// 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.CreateSoundEffectResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSoundEffectResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateSoundEffectResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSoundEffectResponseEstimatedCost? 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.CreateSoundEffectResponseEstimatedCost? 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.CreateSoundEffectResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSoundEffectResponseEstimatedCost; + } + + /// + /// 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.CreateSoundEffectResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.g.cs new file mode 100644 index 00000000..ceb76309 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateSoundEffectResponseEstimatedCost + { + /// + /// 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 CreateSoundEffectResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSoundEffectResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.Json.g.cs new file mode 100644 index 00000000..17176df9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSoundEffectResponseIssue + { + /// + /// 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.CreateSoundEffectResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSoundEffectResponseIssue), + jsonSerializerContext) as global::Runway.CreateSoundEffectResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSoundEffectResponseIssue? 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.CreateSoundEffectResponseIssue? 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.CreateSoundEffectResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSoundEffectResponseIssue; + } + + /// + /// 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.CreateSoundEffectResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.g.cs new file mode 100644 index 00000000..b77e2eb0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateSoundEffectResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSoundEffectResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSoundEffectResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.Json.g.cs new file mode 100644 index 00000000..e82bbb5d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSoundEffectResponseIssue2 + { + /// + /// 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.CreateSoundEffectResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSoundEffectResponseIssue2), + jsonSerializerContext) as global::Runway.CreateSoundEffectResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSoundEffectResponseIssue2? 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.CreateSoundEffectResponseIssue2? 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.CreateSoundEffectResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSoundEffectResponseIssue2; + } + + /// + /// 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.CreateSoundEffectResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.g.cs new file mode 100644 index 00000000..20f6f7f6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSoundEffectResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateSoundEffectResponseIssue2 + { + + /// + /// 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.CreateSpeechToSpeechResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse.g.cs index cda93346..73a74b8b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateSpeechToSpeechResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateSpeechToSpeechResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateSpeechToSpeechResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateSpeechToSpeechResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateSpeechToSpeechResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse2.g.cs index 497c8430..a66fd949 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateSpeechToSpeechResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateSpeechToSpeechResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateSpeechToSpeechResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.Json.g.cs new file mode 100644 index 00000000..de0fea6f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSpeechToSpeechResponse3 + { + /// + /// 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.CreateSpeechToSpeechResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSpeechToSpeechResponse3), + jsonSerializerContext) as global::Runway.CreateSpeechToSpeechResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSpeechToSpeechResponse3? 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.CreateSpeechToSpeechResponse3? 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.CreateSpeechToSpeechResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSpeechToSpeechResponse3; + } + + /// + /// 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.CreateSpeechToSpeechResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.g.cs new file mode 100644 index 00000000..541da431 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateSpeechToSpeechResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSpeechToSpeechResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSpeechToSpeechResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..f9372653 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSpeechToSpeechResponseEstimatedCost + { + /// + /// 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.CreateSpeechToSpeechResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSpeechToSpeechResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateSpeechToSpeechResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSpeechToSpeechResponseEstimatedCost? 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.CreateSpeechToSpeechResponseEstimatedCost? 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.CreateSpeechToSpeechResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSpeechToSpeechResponseEstimatedCost; + } + + /// + /// 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.CreateSpeechToSpeechResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.g.cs new file mode 100644 index 00000000..b87f01cb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateSpeechToSpeechResponseEstimatedCost + { + /// + /// 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 CreateSpeechToSpeechResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSpeechToSpeechResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.Json.g.cs new file mode 100644 index 00000000..3a34ba17 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSpeechToSpeechResponseIssue + { + /// + /// 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.CreateSpeechToSpeechResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSpeechToSpeechResponseIssue), + jsonSerializerContext) as global::Runway.CreateSpeechToSpeechResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSpeechToSpeechResponseIssue? 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.CreateSpeechToSpeechResponseIssue? 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.CreateSpeechToSpeechResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSpeechToSpeechResponseIssue; + } + + /// + /// 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.CreateSpeechToSpeechResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.g.cs new file mode 100644 index 00000000..3d8bc686 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateSpeechToSpeechResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateSpeechToSpeechResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateSpeechToSpeechResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.Json.g.cs new file mode 100644 index 00000000..2c92153a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateSpeechToSpeechResponseIssue2 + { + /// + /// 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.CreateSpeechToSpeechResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateSpeechToSpeechResponseIssue2), + jsonSerializerContext) as global::Runway.CreateSpeechToSpeechResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateSpeechToSpeechResponseIssue2? 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.CreateSpeechToSpeechResponseIssue2? 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.CreateSpeechToSpeechResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateSpeechToSpeechResponseIssue2; + } + + /// + /// 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.CreateSpeechToSpeechResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.g.cs new file mode 100644 index 00000000..0ba172e8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateSpeechToSpeechResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateSpeechToSpeechResponseIssue2 + { + + /// + /// 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.CreateTextToImageRequestSeedream5Lite.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Lite.g.cs index 95a27ccd..ec5cb0dc 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Lite.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Lite.g.cs @@ -42,6 +42,12 @@ public sealed partial class CreateTextToImageRequestSeedream5Lite [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 CreateTextToImageRequestSeedream5Lite /// /// 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 CreateTextToImageRequestSeedream5Lite( global::Runway.CreateTextToImageRequestSeedream5LiteOutputFormat? outputFormat, global::System.Collections.Generic.IList? referenceImages, int? outputCount, + bool? grounding, string model = "seedream5_lite") { this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); @@ -90,6 +100,7 @@ public CreateTextToImageRequestSeedream5Lite( this.OutputFormat = outputFormat; this.ReferenceImages = referenceImages; this.OutputCount = outputCount; + this.Grounding = grounding; this.Model = model; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse.g.cs index f15df21f..bc1ff18c 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateTextToImageResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateTextToImageResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateTextToImageResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTextToImageResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateTextToImageResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse2.g.cs index fe361ab6..70d0afcc 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateTextToImageResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateTextToImageResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTextToImageResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.Json.g.cs similarity index 88% rename from src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.Json.g.cs rename to src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.Json.g.cs index 793f89a0..9e8839f8 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.Json.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.Json.g.cs @@ -2,7 +2,7 @@ namespace Runway { - public sealed partial class CreateTextToVideoRequestVeo3 + public sealed partial class CreateTextToImageResponse3 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Runway.CreateTextToVideoRequestVeo3? FromJson( + public static global::Runway.CreateTextToImageResponse3? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Runway.CreateTextToVideoRequestVeo3), - jsonSerializerContext) as global::Runway.CreateTextToVideoRequestVeo3; + typeof(global::Runway.CreateTextToImageResponse3), + jsonSerializerContext) as global::Runway.CreateTextToImageResponse3; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Runway.CreateTextToVideoRequestVeo3? FromJson( + public static global::Runway.CreateTextToImageResponse3? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [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.CreateTextToVideoRequestVeo3? FromJson( + public static global::Runway.CreateTextToImageResponse3? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.CreateTextToVideoRequestVeo3), - jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestVeo3; + typeof(global::Runway.CreateTextToImageResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToImageResponse3; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Runway.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.g.cs new file mode 100644 index 00000000..6414d8ce --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToImageResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToImageResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToImageResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..e0265428 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToImageResponseEstimatedCost + { + /// + /// 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.CreateTextToImageResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToImageResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateTextToImageResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToImageResponseEstimatedCost? 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.CreateTextToImageResponseEstimatedCost? 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.CreateTextToImageResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToImageResponseEstimatedCost; + } + + /// + /// 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.CreateTextToImageResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.g.cs new file mode 100644 index 00000000..ce1ff816 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateTextToImageResponseEstimatedCost + { + /// + /// 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 CreateTextToImageResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToImageResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.Json.g.cs new file mode 100644 index 00000000..9aaf1e47 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToImageResponseIssue + { + /// + /// 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.CreateTextToImageResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToImageResponseIssue), + jsonSerializerContext) as global::Runway.CreateTextToImageResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToImageResponseIssue? 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.CreateTextToImageResponseIssue? 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.CreateTextToImageResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToImageResponseIssue; + } + + /// + /// 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.CreateTextToImageResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.g.cs new file mode 100644 index 00000000..63b06ec3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToImageResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToImageResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToImageResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.Json.g.cs new file mode 100644 index 00000000..b5f1eff7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToImageResponseIssue2 + { + /// + /// 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.CreateTextToImageResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToImageResponseIssue2), + jsonSerializerContext) as global::Runway.CreateTextToImageResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToImageResponseIssue2? 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.CreateTextToImageResponseIssue2? 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.CreateTextToImageResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToImageResponseIssue2; + } + + /// + /// 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.CreateTextToImageResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.g.cs new file mode 100644 index 00000000..a596de94 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToImageResponseIssue2 + { + + /// + /// 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.CreateTextToSpeechRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequest.g.cs index f1d80e22..c950eaf2 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequest.g.cs @@ -87,6 +87,43 @@ public bool TryPickElevenMultilingualV2( public global::Runway.CreateTextToSpeechRequestElevenMultilingualV2 PickElevenMultilingualV2() => IsElevenMultilingualV2 ? ElevenMultilingualV2! : throw new global::System.InvalidOperationException($"Expected union variant 'ElevenMultilingualV2' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateTextToSpeechRequestElevenV3? ElevenV3 { get; init; } +#else + public global::Runway.CreateTextToSpeechRequestElevenV3? ElevenV3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ElevenV3))] +#endif + public bool IsElevenV3 => ElevenV3 != null; + + /// + /// + /// + public bool TryPickElevenV3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateTextToSpeechRequestElevenV3? value) + { + value = ElevenV3; + return IsElevenV3; + } + + /// + /// + /// + public global::Runway.CreateTextToSpeechRequestElevenV3 PickElevenV3() => IsElevenV3 + ? ElevenV3! + : throw new global::System.InvalidOperationException($"Expected union variant 'ElevenV3' but the value was {ToString()}."); /// /// /// @@ -133,25 +170,51 @@ public CreateTextToSpeechRequest(global::Runway.CreateTextToSpeechRequestElevenM /// public static CreateTextToSpeechRequest FromElevenMultilingualV2(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2? value) => new CreateTextToSpeechRequest(value); + /// + /// + /// + public static implicit operator CreateTextToSpeechRequest(global::Runway.CreateTextToSpeechRequestElevenV3 value) => new CreateTextToSpeechRequest((global::Runway.CreateTextToSpeechRequestElevenV3?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateTextToSpeechRequestElevenV3?(CreateTextToSpeechRequest @this) => @this.ElevenV3; + + /// + /// + /// + public CreateTextToSpeechRequest(global::Runway.CreateTextToSpeechRequestElevenV3? value) + { + ElevenV3 = value; + } + + /// + /// + /// + public static CreateTextToSpeechRequest FromElevenV3(global::Runway.CreateTextToSpeechRequestElevenV3? value) => new CreateTextToSpeechRequest(value); + /// /// /// public CreateTextToSpeechRequest( global::Runway.CreateTextToSpeechRequestDiscriminatorModel? model, global::Runway.CreateTextToSpeechRequestSeedAudio? seedAudio, - global::Runway.CreateTextToSpeechRequestElevenMultilingualV2? elevenMultilingualV2 + global::Runway.CreateTextToSpeechRequestElevenMultilingualV2? elevenMultilingualV2, + global::Runway.CreateTextToSpeechRequestElevenV3? elevenV3 ) { Model = model; SeedAudio = seedAudio; ElevenMultilingualV2 = elevenMultilingualV2; + ElevenV3 = elevenV3; } /// /// /// public object? Object => + ElevenV3 as object ?? ElevenMultilingualV2 as object ?? SeedAudio as object ; @@ -161,7 +224,8 @@ SeedAudio as object /// public override string? ToString() => SeedAudio?.ToString() ?? - ElevenMultilingualV2?.ToString() + ElevenMultilingualV2?.ToString() ?? + ElevenV3?.ToString() ; /// @@ -169,7 +233,7 @@ SeedAudio as object /// public bool Validate() { - return IsSeedAudio && !IsElevenMultilingualV2 || !IsSeedAudio && IsElevenMultilingualV2; + return IsSeedAudio && !IsElevenMultilingualV2 && !IsElevenV3 || !IsSeedAudio && IsElevenMultilingualV2 && !IsElevenV3 || !IsSeedAudio && !IsElevenMultilingualV2 && IsElevenV3; } /// @@ -178,6 +242,7 @@ public bool Validate() public TResult? Match( global::System.Func? seedAudio = null, global::System.Func? elevenMultilingualV2 = null, + global::System.Func? elevenV3 = null, bool validate = true) { if (validate) @@ -193,6 +258,10 @@ public bool Validate() { return elevenMultilingualV2(ElevenMultilingualV2!); } + else if (IsElevenV3 && elevenV3 != null) + { + return elevenV3(ElevenV3!); + } return default(TResult); } @@ -204,6 +273,8 @@ public void Match( global::System.Action? seedAudio = null, global::System.Action? elevenMultilingualV2 = null, + + global::System.Action? elevenV3 = null, bool validate = true) { if (validate) @@ -219,6 +290,10 @@ public void Match( { elevenMultilingualV2?.Invoke(ElevenMultilingualV2!); } + else if (IsElevenV3) + { + elevenV3?.Invoke(ElevenV3!); + } } /// @@ -227,6 +302,7 @@ public void Match( public void Switch( global::System.Action? seedAudio = null, global::System.Action? elevenMultilingualV2 = null, + global::System.Action? elevenV3 = null, bool validate = true) { if (validate) @@ -242,6 +318,10 @@ public void Switch( { elevenMultilingualV2?.Invoke(ElevenMultilingualV2!); } + else if (IsElevenV3) + { + elevenV3?.Invoke(ElevenV3!); + } } /// @@ -255,6 +335,8 @@ public override int GetHashCode() typeof(global::Runway.CreateTextToSpeechRequestSeedAudio), ElevenMultilingualV2, typeof(global::Runway.CreateTextToSpeechRequestElevenMultilingualV2), + ElevenV3, + typeof(global::Runway.CreateTextToSpeechRequestElevenV3), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -272,7 +354,8 @@ public bool Equals(CreateTextToSpeechRequest other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(SeedAudio, other.SeedAudio) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ElevenMultilingualV2, other.ElevenMultilingualV2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ElevenMultilingualV2, other.ElevenMultilingualV2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ElevenV3, other.ElevenV3) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestDiscriminatorModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestDiscriminatorModel.g.cs index a0d9f435..cb41053d 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestDiscriminatorModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestDiscriminatorModel.g.cs @@ -15,6 +15,10 @@ public enum CreateTextToSpeechRequestDiscriminatorModel /// /// /// + ElevenV3, + /// + /// + /// SeedAudio, } @@ -31,6 +35,7 @@ public static string ToValueString(this CreateTextToSpeechRequestDiscriminatorMo return value switch { CreateTextToSpeechRequestDiscriminatorModel.ElevenMultilingualV2 => "eleven_multilingual_v2", + CreateTextToSpeechRequestDiscriminatorModel.ElevenV3 => "eleven_v3", CreateTextToSpeechRequestDiscriminatorModel.SeedAudio => "seed_audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -43,6 +48,7 @@ public static string ToValueString(this CreateTextToSpeechRequestDiscriminatorMo return value switch { "eleven_multilingual_v2" => CreateTextToSpeechRequestDiscriminatorModel.ElevenMultilingualV2, + "eleven_v3" => CreateTextToSpeechRequestDiscriminatorModel.ElevenV3, "seed_audio" => CreateTextToSpeechRequestDiscriminatorModel.SeedAudio, _ => null, }; diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.Json.g.cs new file mode 100644 index 00000000..b0878fc5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechRequestElevenV3 + { + /// + /// 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.CreateTextToSpeechRequestElevenV3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechRequestElevenV3), + jsonSerializerContext) as global::Runway.CreateTextToSpeechRequestElevenV3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechRequestElevenV3? 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.CreateTextToSpeechRequestElevenV3? 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.CreateTextToSpeechRequestElevenV3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechRequestElevenV3; + } + + /// + /// 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.CreateTextToSpeechRequestElevenV3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.g.cs new file mode 100644 index 00000000..e2687e30 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3.g.cs @@ -0,0 +1,158 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToSpeechRequestElevenV3 + { + /// + /// The text to convert to speech. You can include expressive audio tags like [laughs] or [whispers] in the script. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PromptText { get; set; } + + /// + /// The voice to use for the generated speech. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice Voice { get; set; } + + /// + /// Voice stability (0–1). Lower values allow broader emotional range; higher values are steadier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stability")] + public double? Stability { get; set; } + + /// + /// How closely the output tracks the original speaker (0–1). Maps to ElevenLabs similarity_boost. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("similarityBoost")] + public double? SimilarityBoost { get; set; } + + /// + /// Style exaggeration (0–1). Higher values amplify the speaker style. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("style")] + public double? Style { get; set; } + + /// + /// Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and above speed up. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speed")] + public double? Speed { get; set; } + + /// + /// Boost similarity to the original speaker at a small latency cost. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("useSpeakerBoost")] + public bool? UseSpeakerBoost { get; set; } + + /// + /// ISO 639-1 language code to enforce pronunciation and normalization. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] + public string? LanguageCode { get; set; } + + /// + /// Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("applyTextNormalization")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3ApplyTextNormalizationJsonConverter))] + public global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization? ApplyTextNormalization { get; set; } + + /// + /// Optional seed for more deterministic output (0–4294967295). Not guaranteed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { get; set; } + + /// + /// + /// + /// "eleven_v3" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "eleven_v3"; + + /// + /// 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 text to convert to speech. You can include expressive audio tags like [laughs] or [whispers] in the script. + /// + /// + /// The voice to use for the generated speech. + /// + /// + /// Voice stability (0–1). Lower values allow broader emotional range; higher values are steadier. + /// + /// + /// How closely the output tracks the original speaker (0–1). Maps to ElevenLabs similarity_boost. + /// + /// + /// Style exaggeration (0–1). Higher values amplify the speaker style. + /// + /// + /// Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and above speed up. + /// + /// + /// Boost similarity to the original speaker at a small latency cost. + /// + /// + /// ISO 639-1 language code to enforce pronunciation and normalization. + /// + /// + /// Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers). + /// + /// + /// Optional seed for more deterministic output (0–4294967295). Not guaranteed. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToSpeechRequestElevenV3( + string promptText, + global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice voice, + double? stability, + double? similarityBoost, + double? style, + double? speed, + bool? useSpeakerBoost, + string? languageCode, + global::Runway.CreateTextToSpeechRequestElevenV3ApplyTextNormalization? applyTextNormalization, + int? seed, + string model = "eleven_v3") + { + this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); + this.Voice = voice ?? throw new global::System.ArgumentNullException(nameof(voice)); + this.Stability = stability; + this.SimilarityBoost = similarityBoost; + this.Style = style; + this.Speed = speed; + this.UseSpeakerBoost = useSpeakerBoost; + this.LanguageCode = languageCode; + this.ApplyTextNormalization = applyTextNormalization; + this.Seed = seed; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechRequestElevenV3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs new file mode 100644 index 00000000..5210e9bd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3ApplyTextNormalization.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers). + /// + public enum CreateTextToSpeechRequestElevenV3ApplyTextNormalization + { + /// + /// 'auto', 'on', or 'off' (e.g. spelling out numbers). + /// + Auto, + /// + /// 'auto', 'on', or 'off' (e.g. spelling out numbers). + /// + Off, + /// + /// 'auto', 'on', or 'off' (e.g. spelling out numbers). + /// + On, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToSpeechRequestElevenV3ApplyTextNormalizationExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToSpeechRequestElevenV3ApplyTextNormalization value) + { + return value switch + { + CreateTextToSpeechRequestElevenV3ApplyTextNormalization.Auto => "auto", + CreateTextToSpeechRequestElevenV3ApplyTextNormalization.Off => "off", + CreateTextToSpeechRequestElevenV3ApplyTextNormalization.On => "on", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToSpeechRequestElevenV3ApplyTextNormalization? ToEnum(string value) + { + return value switch + { + "auto" => CreateTextToSpeechRequestElevenV3ApplyTextNormalization.Auto, + "off" => CreateTextToSpeechRequestElevenV3ApplyTextNormalization.Off, + "on" => CreateTextToSpeechRequestElevenV3ApplyTextNormalization.On, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.Json.g.cs new file mode 100644 index 00000000..7a274849 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechRequestElevenV3VoiceDiscriminator + { + /// + /// 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminator), + jsonSerializerContext) as global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminator? 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminator? 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminator; + } + + /// + /// 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.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.g.cs new file mode 100644 index 00000000..2befa677 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToSpeechRequestElevenV3VoiceDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeJsonConverter))] + public global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType? Type { 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 CreateTextToSpeechRequestElevenV3VoiceDiscriminator( + global::Runway.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechRequestElevenV3VoiceDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs new file mode 100644 index 00000000..6f7ce080 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType + { + /// + /// + /// + RunwayPreset, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToSpeechRequestElevenV3VoiceDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType value) + { + return value switch + { + CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.RunwayPreset => "runway-preset", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType? ToEnum(string value) + { + return value switch + { + "runway-preset" => CreateTextToSpeechRequestElevenV3VoiceDiscriminatorType.RunwayPreset, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.Json.g.cs new file mode 100644 index 00000000..e9b2b111 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice + { + /// + /// 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice), + jsonSerializerContext) as global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice? 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice? 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice; + } + + /// + /// 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.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.g.cs new file mode 100644 index 00000000..9a5f7ce7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A voice preset from the RunwayML API. + /// + public sealed partial class CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice + { + /// + /// + /// + /// "runway-preset" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "runway-preset"; + + /// + /// The preset voice ID to use for the generated speech. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presetId")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId PresetId { 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 preset voice ID to use for the generated speech. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice( + global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId presetId, + string type = "runway-preset") + { + this.Type = type; + this.PresetId = presetId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice FromPresetId(global::Runway.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId presetId) + { + return new CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoice + { + PresetId = presetId, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs new file mode 100644 index 00000000..7cc0692e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.g.cs @@ -0,0 +1,333 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The preset voice ID to use for the generated speech. + /// + public enum CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId + { + /// + /// + /// + Arjun, + /// + /// + /// + Benjamin, + /// + /// + /// + Bernard, + /// + /// + /// + Billy, + /// + /// + /// + Brodie, + /// + /// + /// + Chad, + /// + /// + /// + Claudia, + /// + /// + /// + Clint, + /// + /// + /// + Eleanor, + /// + /// + /// + Elias, + /// + /// + /// + Ella, + /// + /// + /// + Elliot, + /// + /// + /// + Frank, + /// + /// + /// + Grungle, + /// + /// + /// + Jack, + /// + /// + /// + James, + /// + /// + /// + Katie, + /// + /// + /// + Kendrick, + /// + /// + /// + Kiana, + /// + /// + /// + Kirk, + /// + /// + /// + Kylie, + /// + /// + /// + Lara, + /// + /// + /// + Leslie, + /// + /// + /// + Lisa, + /// + /// + /// + Mabel, + /// + /// + /// + Maggie, + /// + /// + /// + Malachi, + /// + /// + /// + Mariah, + /// + /// + /// + Mark, + /// + /// + /// + Marlene, + /// + /// + /// + Martin, + /// + /// + /// + Maya, + /// + /// + /// + Miriam, + /// + /// + /// + Monster, + /// + /// + /// + Myrna, + /// + /// + /// + Niki, + /// + /// + /// + Noah, + /// + /// + /// + Paula, + /// + /// + /// + Pip, + /// + /// + /// + Rachel, + /// + /// + /// + Ragnar, + /// + /// + /// + Rina, + /// + /// + /// + Rusty, + /// + /// + /// + Sandra, + /// + /// + /// + Serene, + /// + /// + /// + Tom, + /// + /// + /// + Vincent, + /// + /// + /// + Wanda, + /// + /// + /// + Xylar, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetIdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId value) + { + return value switch + { + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Arjun => "Arjun", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Benjamin => "Benjamin", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Bernard => "Bernard", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Billy => "Billy", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Brodie => "Brodie", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Chad => "Chad", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Claudia => "Claudia", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Clint => "Clint", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Eleanor => "Eleanor", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Elias => "Elias", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Ella => "Ella", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Elliot => "Elliot", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Frank => "Frank", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Grungle => "Grungle", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Jack => "Jack", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.James => "James", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Katie => "Katie", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kendrick => "Kendrick", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kiana => "Kiana", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kirk => "Kirk", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kylie => "Kylie", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Lara => "Lara", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Leslie => "Leslie", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Lisa => "Lisa", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Mabel => "Mabel", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Maggie => "Maggie", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Malachi => "Malachi", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Mariah => "Mariah", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Mark => "Mark", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Marlene => "Marlene", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Martin => "Martin", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Maya => "Maya", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Miriam => "Miriam", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Monster => "Monster", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Myrna => "Myrna", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Niki => "Niki", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Noah => "Noah", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Paula => "Paula", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Pip => "Pip", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Rachel => "Rachel", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Ragnar => "Ragnar", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Rina => "Rina", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Rusty => "Rusty", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Sandra => "Sandra", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Serene => "Serene", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Tom => "Tom", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Vincent => "Vincent", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Wanda => "Wanda", + CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Xylar => "Xylar", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId? ToEnum(string value) + { + return value switch + { + "Arjun" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Arjun, + "Benjamin" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Benjamin, + "Bernard" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Bernard, + "Billy" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Billy, + "Brodie" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Brodie, + "Chad" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Chad, + "Claudia" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Claudia, + "Clint" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Clint, + "Eleanor" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Eleanor, + "Elias" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Elias, + "Ella" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Ella, + "Elliot" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Elliot, + "Frank" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Frank, + "Grungle" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Grungle, + "Jack" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Jack, + "James" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.James, + "Katie" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Katie, + "Kendrick" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kendrick, + "Kiana" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kiana, + "Kirk" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kirk, + "Kylie" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Kylie, + "Lara" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Lara, + "Leslie" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Leslie, + "Lisa" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Lisa, + "Mabel" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Mabel, + "Maggie" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Maggie, + "Malachi" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Malachi, + "Mariah" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Mariah, + "Mark" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Mark, + "Marlene" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Marlene, + "Martin" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Martin, + "Maya" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Maya, + "Miriam" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Miriam, + "Monster" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Monster, + "Myrna" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Myrna, + "Niki" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Niki, + "Noah" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Noah, + "Paula" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Paula, + "Pip" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Pip, + "Rachel" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Rachel, + "Ragnar" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Ragnar, + "Rina" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Rina, + "Rusty" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Rusty, + "Sandra" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Sandra, + "Serene" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Serene, + "Tom" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Tom, + "Vincent" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Vincent, + "Wanda" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Wanda, + "Xylar" => CreateTextToSpeechRequestElevenV3VoiceRunwayPresetVoicePresetId.Xylar, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudio.g.cs index c5a0d991..83f0bf6a 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudio.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudio.g.cs @@ -19,7 +19,8 @@ public sealed partial class CreateTextToSpeechRequestSeedAudio /// The voice to use for text-to-speech generation. If omitted, a default voice is used. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? Voice { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice4JsonConverter))] + public global::Runway.Voice4? Voice { get; set; } /// /// Relative speech speed. Negative is slower, positive is faster; 0 is normal. @@ -95,7 +96,7 @@ public sealed partial class CreateTextToSpeechRequestSeedAudio #endif public CreateTextToSpeechRequestSeedAudio( string promptText, - global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? voice, + global::Runway.Voice4? voice, int? speechRate, int? loudnessRate, int? pitchRate, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.g.cs index be380e81..ecffa275 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.g.cs @@ -12,6 +12,10 @@ public enum CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType /// /// ReferenceAudio, + /// + /// + /// + SeedPreset, } /// @@ -27,6 +31,7 @@ public static string ToValueString(this CreateTextToSpeechRequestSeedAudioVoiceD return value switch { CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.ReferenceAudio => "reference-audio", + CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.SeedPreset => "seed-preset", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -38,6 +43,7 @@ public static string ToValueString(this CreateTextToSpeechRequestSeedAudioVoiceD return value switch { "reference-audio" => CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.ReferenceAudio, + "seed-preset" => CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType.SeedPreset, _ => null, }; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.Json.g.cs new file mode 100644 index 00000000..b3850026 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice + { + /// + /// 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice), + jsonSerializerContext) as global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice; + } + + /// + /// 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.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.g.cs new file mode 100644 index 00000000..5d56d009 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A preset voice for Seed Audio text-to-speech. + /// + public sealed partial class CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice + { + /// + /// + /// + /// "seed-preset" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "seed-preset"; + + /// + /// A Seed Audio preset voice id. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presetId")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId PresetId { 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 Seed Audio preset voice id. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice( + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId presetId, + string type = "seed-preset") + { + this.Type = type; + this.PresetId = presetId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice FromPresetId(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId presetId) + { + return new CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice + { + PresetId = presetId, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs new file mode 100644 index 00000000..e85d998d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.g.cs @@ -0,0 +1,159 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A Seed Audio preset voice id. + /// + public enum CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId + { + /// + /// + /// + CedricEnZh, + /// + /// + /// + CelesteZh, + /// + /// + /// + CorinneMixedEnZh, + /// + /// + /// + EstherMixedEnZh, + /// + /// + /// + FelixZh, + /// + /// + /// + JeanEnZh, + /// + /// + /// + KianEnZh, + /// + /// + /// + LylaMixedEnZh, + /// + /// + /// + MabelEnZh, + /// + /// + /// + MagnusEnZh, + /// + /// + /// + MindyEnEsIdPtZh, + /// + /// + /// + MonkeyKingZh, + /// + /// + /// + NadiaEnZh, + /// + /// + /// + OpalEnZh, + /// + /// + /// + PearlEnZh, + /// + /// + /// + QuentinEnZh, + /// + /// + /// + SandyEsMixedEnZh, + /// + /// + /// + SophieEnZh, + /// + /// + /// + TracyEsZh, + /// + /// + /// + ViviMixedEnZhJaEsId, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetIdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId value) + { + return value switch + { + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.CedricEnZh => "cedric_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.CelesteZh => "celeste_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.CorinneMixedEnZh => "corinne_mixed_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.EstherMixedEnZh => "esther_mixed_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.FelixZh => "felix_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.JeanEnZh => "jean_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.KianEnZh => "kian_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.LylaMixedEnZh => "lyla_mixed_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MabelEnZh => "mabel_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MagnusEnZh => "magnus_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MindyEnEsIdPtZh => "mindy_en_es_id_pt_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MonkeyKingZh => "monkey_king_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.NadiaEnZh => "nadia_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.OpalEnZh => "opal_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.PearlEnZh => "pearl_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.QuentinEnZh => "quentin_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.SandyEsMixedEnZh => "sandy_es_mixed_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.SophieEnZh => "sophie_en_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.TracyEsZh => "tracy_es_zh", + CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.ViviMixedEnZhJaEsId => "vivi_mixed_en_zh_ja_es_id", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId? ToEnum(string value) + { + return value switch + { + "cedric_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.CedricEnZh, + "celeste_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.CelesteZh, + "corinne_mixed_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.CorinneMixedEnZh, + "esther_mixed_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.EstherMixedEnZh, + "felix_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.FelixZh, + "jean_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.JeanEnZh, + "kian_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.KianEnZh, + "lyla_mixed_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.LylaMixedEnZh, + "mabel_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MabelEnZh, + "magnus_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MagnusEnZh, + "mindy_en_es_id_pt_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MindyEnEsIdPtZh, + "monkey_king_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.MonkeyKingZh, + "nadia_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.NadiaEnZh, + "opal_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.OpalEnZh, + "pearl_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.PearlEnZh, + "quentin_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.QuentinEnZh, + "sandy_es_mixed_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.SandyEsMixedEnZh, + "sophie_en_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.SophieEnZh, + "tracy_es_zh" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.TracyEsZh, + "vivi_mixed_en_zh_ja_es_id" => CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoicePresetId.ViviMixedEnZhJaEsId, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse.g.cs index 2765354a..6a14bec1 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateTextToSpeechResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateTextToSpeechResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateTextToSpeechResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTextToSpeechResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateTextToSpeechResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse2.g.cs index 4f30bc87..ae389845 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateTextToSpeechResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateTextToSpeechResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTextToSpeechResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.Json.g.cs new file mode 100644 index 00000000..60f12862 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechResponse3 + { + /// + /// 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.CreateTextToSpeechResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechResponse3), + jsonSerializerContext) as global::Runway.CreateTextToSpeechResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechResponse3? 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.CreateTextToSpeechResponse3? 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.CreateTextToSpeechResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechResponse3; + } + + /// + /// 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.CreateTextToSpeechResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.g.cs new file mode 100644 index 00000000..c4a751b4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToSpeechResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToSpeechResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..e6d381db --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechResponseEstimatedCost + { + /// + /// 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.CreateTextToSpeechResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateTextToSpeechResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechResponseEstimatedCost? 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.CreateTextToSpeechResponseEstimatedCost? 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.CreateTextToSpeechResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechResponseEstimatedCost; + } + + /// + /// 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.CreateTextToSpeechResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.g.cs new file mode 100644 index 00000000..24a6fce1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateTextToSpeechResponseEstimatedCost + { + /// + /// 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 CreateTextToSpeechResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.Json.g.cs new file mode 100644 index 00000000..55561b1c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechResponseIssue + { + /// + /// 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.CreateTextToSpeechResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechResponseIssue), + jsonSerializerContext) as global::Runway.CreateTextToSpeechResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechResponseIssue? 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.CreateTextToSpeechResponseIssue? 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.CreateTextToSpeechResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechResponseIssue; + } + + /// + /// 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.CreateTextToSpeechResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.g.cs new file mode 100644 index 00000000..b88ff98c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToSpeechResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToSpeechResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToSpeechResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.Json.g.cs new file mode 100644 index 00000000..0fe4118b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToSpeechResponseIssue2 + { + /// + /// 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.CreateTextToSpeechResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToSpeechResponseIssue2), + jsonSerializerContext) as global::Runway.CreateTextToSpeechResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToSpeechResponseIssue2? 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.CreateTextToSpeechResponseIssue2? 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.CreateTextToSpeechResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToSpeechResponseIssue2; + } + + /// + /// 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.CreateTextToSpeechResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.g.cs new file mode 100644 index 00000000..3f11156f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToSpeechResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToSpeechResponseIssue2 + { + + /// + /// 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.CreateTextToVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequest.g.cs index d6fc6225..c949e56f 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequest.g.cs @@ -125,6 +125,43 @@ public bool TryPickVeo31Fast( ? Veo31Fast! : throw new global::System.InvalidOperationException($"Expected union variant 'Veo31Fast' but the value was {ToString()}."); + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateTextToVideoRequestHailuo3? Hailuo3 { get; init; } +#else + public global::Runway.CreateTextToVideoRequestHailuo3? Hailuo3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Hailuo3))] +#endif + public bool IsHailuo3 => Hailuo3 != null; + + /// + /// + /// + public bool TryPickHailuo3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateTextToVideoRequestHailuo3? value) + { + value = Hailuo3; + return IsHailuo3; + } + + /// + /// + /// + public global::Runway.CreateTextToVideoRequestHailuo3 PickHailuo3() => IsHailuo3 + ? Hailuo3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Hailuo3' but the value was {ToString()}."); + /// /// /// @@ -314,38 +351,38 @@ public bool TryPickGeminiOmniFlash( /// /// #if NET6_0_OR_GREATER - public global::Runway.CreateTextToVideoRequestVeo3? Veo3 { get; init; } + public global::Runway.CreateTextToVideoRequestSeedance25? Seedance25 { get; init; } #else - public global::Runway.CreateTextToVideoRequestVeo3? Veo3 { get; } + public global::Runway.CreateTextToVideoRequestSeedance25? Seedance25 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Veo3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Seedance25))] #endif - public bool IsVeo3 => Veo3 != null; + public bool IsSeedance25 => Seedance25 != null; /// /// /// - public bool TryPickVeo3( + public bool TryPickSeedance25( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateTextToVideoRequestVeo3? value) + out global::Runway.CreateTextToVideoRequestSeedance25? value) { - value = Veo3; - return IsVeo3; + value = Seedance25; + return IsSeedance25; } /// /// /// - public global::Runway.CreateTextToVideoRequestVeo3 PickVeo3() => IsVeo3 - ? Veo3! - : throw new global::System.InvalidOperationException($"Expected union variant 'Veo3' but the value was {ToString()}."); + public global::Runway.CreateTextToVideoRequestSeedance25 PickSeedance25() => IsSeedance25 + ? Seedance25! + : throw new global::System.InvalidOperationException($"Expected union variant 'Seedance25' but the value was {ToString()}."); /// /// /// @@ -415,6 +452,29 @@ public CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestVeo31Fast /// public static CreateTextToVideoRequest FromVeo31Fast(global::Runway.CreateTextToVideoRequestVeo31Fast? value) => new CreateTextToVideoRequest(value); + /// + /// + /// + public static implicit operator CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestHailuo3 value) => new CreateTextToVideoRequest((global::Runway.CreateTextToVideoRequestHailuo3?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateTextToVideoRequestHailuo3?(CreateTextToVideoRequest @this) => @this.Hailuo3; + + /// + /// + /// + public CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestHailuo3? value) + { + Hailuo3 = value; + } + + /// + /// + /// + public static CreateTextToVideoRequest FromHailuo3(global::Runway.CreateTextToVideoRequestHailuo3? value) => new CreateTextToVideoRequest(value); + /// /// /// @@ -533,25 +593,25 @@ public CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestGeminiOmn /// /// /// - public static implicit operator CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestVeo3 value) => new CreateTextToVideoRequest((global::Runway.CreateTextToVideoRequestVeo3?)value); + public static implicit operator CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestSeedance25 value) => new CreateTextToVideoRequest((global::Runway.CreateTextToVideoRequestSeedance25?)value); /// /// /// - public static implicit operator global::Runway.CreateTextToVideoRequestVeo3?(CreateTextToVideoRequest @this) => @this.Veo3; + public static implicit operator global::Runway.CreateTextToVideoRequestSeedance25?(CreateTextToVideoRequest @this) => @this.Seedance25; /// /// /// - public CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestVeo3? value) + public CreateTextToVideoRequest(global::Runway.CreateTextToVideoRequestSeedance25? value) { - Veo3 = value; + Seedance25 = value; } /// /// /// - public static CreateTextToVideoRequest FromVeo3(global::Runway.CreateTextToVideoRequestVeo3? value) => new CreateTextToVideoRequest(value); + public static CreateTextToVideoRequest FromSeedance25(global::Runway.CreateTextToVideoRequestSeedance25? value) => new CreateTextToVideoRequest(value); /// /// @@ -561,12 +621,13 @@ public CreateTextToVideoRequest( global::Runway.CreateTextToVideoRequestGen45? gen45, global::Runway.CreateTextToVideoRequestVeo31? veo31, global::Runway.CreateTextToVideoRequestVeo31Fast? veo31Fast, + global::Runway.CreateTextToVideoRequestHailuo3? hailuo3, global::Runway.CreateTextToVideoRequestHappyhorse10? happyhorse10, global::Runway.CreateTextToVideoRequestSeedance2? seedance2, global::Runway.CreateTextToVideoRequestSeedance2Fast? seedance2Fast, global::Runway.CreateTextToVideoRequestSeedance2Mini? seedance2Mini, global::Runway.CreateTextToVideoRequestGeminiOmniFlash? geminiOmniFlash, - global::Runway.CreateTextToVideoRequestVeo3? veo3 + global::Runway.CreateTextToVideoRequestSeedance25? seedance25 ) { Model = model; @@ -574,24 +635,26 @@ public CreateTextToVideoRequest( Gen45 = gen45; Veo31 = veo31; Veo31Fast = veo31Fast; + Hailuo3 = hailuo3; Happyhorse10 = happyhorse10; Seedance2 = seedance2; Seedance2Fast = seedance2Fast; Seedance2Mini = seedance2Mini; GeminiOmniFlash = geminiOmniFlash; - Veo3 = veo3; + Seedance25 = seedance25; } /// /// /// public object? Object => - Veo3 as object ?? + Seedance25 as object ?? GeminiOmniFlash as object ?? Seedance2Mini as object ?? Seedance2Fast as object ?? Seedance2 as object ?? Happyhorse10 as object ?? + Hailuo3 as object ?? Veo31Fast as object ?? Veo31 as object ?? Gen45 as object @@ -604,12 +667,13 @@ Gen45 as object Gen45?.ToString() ?? Veo31?.ToString() ?? Veo31Fast?.ToString() ?? + Hailuo3?.ToString() ?? Happyhorse10?.ToString() ?? Seedance2?.ToString() ?? Seedance2Fast?.ToString() ?? Seedance2Mini?.ToString() ?? GeminiOmniFlash?.ToString() ?? - Veo3?.ToString() + Seedance25?.ToString() ; /// @@ -617,7 +681,7 @@ Gen45 as object /// public bool Validate() { - return IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && IsSeedance2Mini && !IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && IsGeminiOmniFlash && !IsVeo3 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && IsVeo3; + return IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && IsGeminiOmniFlash && !IsSeedance25 || !IsGen45 && !IsVeo31 && !IsVeo31Fast && !IsHailuo3 && !IsHappyhorse10 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && IsSeedance25; } /// @@ -627,12 +691,13 @@ public bool Validate() global::System.Func? gen45 = null, global::System.Func? veo31 = null, global::System.Func? veo31Fast = null, + global::System.Func? hailuo3 = null, global::System.Func? happyhorse10 = null, global::System.Func? seedance2 = null, global::System.Func? seedance2Fast = null, global::System.Func? seedance2Mini = null, global::System.Func? geminiOmniFlash = null, - global::System.Func? veo3 = null, + global::System.Func? seedance25 = null, bool validate = true) { if (validate) @@ -652,6 +717,10 @@ public bool Validate() { return veo31Fast(Veo31Fast!); } + else if (IsHailuo3 && hailuo3 != null) + { + return hailuo3(Hailuo3!); + } else if (IsHappyhorse10 && happyhorse10 != null) { return happyhorse10(Happyhorse10!); @@ -672,9 +741,9 @@ public bool Validate() { return geminiOmniFlash(GeminiOmniFlash!); } - else if (IsVeo3 && veo3 != null) + else if (IsSeedance25 && seedance25 != null) { - return veo3(Veo3!); + return seedance25(Seedance25!); } return default(TResult); @@ -690,6 +759,8 @@ public void Match( global::System.Action? veo31Fast = null, + global::System.Action? hailuo3 = null, + global::System.Action? happyhorse10 = null, global::System.Action? seedance2 = null, @@ -700,7 +771,7 @@ public void Match( global::System.Action? geminiOmniFlash = null, - global::System.Action? veo3 = null, + global::System.Action? seedance25 = null, bool validate = true) { if (validate) @@ -720,6 +791,10 @@ public void Match( { veo31Fast?.Invoke(Veo31Fast!); } + else if (IsHailuo3) + { + hailuo3?.Invoke(Hailuo3!); + } else if (IsHappyhorse10) { happyhorse10?.Invoke(Happyhorse10!); @@ -740,9 +815,9 @@ public void Match( { geminiOmniFlash?.Invoke(GeminiOmniFlash!); } - else if (IsVeo3) + else if (IsSeedance25) { - veo3?.Invoke(Veo3!); + seedance25?.Invoke(Seedance25!); } } @@ -753,12 +828,13 @@ public void Switch( global::System.Action? gen45 = null, global::System.Action? veo31 = null, global::System.Action? veo31Fast = null, + global::System.Action? hailuo3 = null, global::System.Action? happyhorse10 = null, global::System.Action? seedance2 = null, global::System.Action? seedance2Fast = null, global::System.Action? seedance2Mini = null, global::System.Action? geminiOmniFlash = null, - global::System.Action? veo3 = null, + global::System.Action? seedance25 = null, bool validate = true) { if (validate) @@ -778,6 +854,10 @@ public void Switch( { veo31Fast?.Invoke(Veo31Fast!); } + else if (IsHailuo3) + { + hailuo3?.Invoke(Hailuo3!); + } else if (IsHappyhorse10) { happyhorse10?.Invoke(Happyhorse10!); @@ -798,9 +878,9 @@ public void Switch( { geminiOmniFlash?.Invoke(GeminiOmniFlash!); } - else if (IsVeo3) + else if (IsSeedance25) { - veo3?.Invoke(Veo3!); + seedance25?.Invoke(Seedance25!); } } @@ -817,6 +897,8 @@ public override int GetHashCode() typeof(global::Runway.CreateTextToVideoRequestVeo31), Veo31Fast, typeof(global::Runway.CreateTextToVideoRequestVeo31Fast), + Hailuo3, + typeof(global::Runway.CreateTextToVideoRequestHailuo3), Happyhorse10, typeof(global::Runway.CreateTextToVideoRequestHappyhorse10), Seedance2, @@ -827,8 +909,8 @@ public override int GetHashCode() typeof(global::Runway.CreateTextToVideoRequestSeedance2Mini), GeminiOmniFlash, typeof(global::Runway.CreateTextToVideoRequestGeminiOmniFlash), - Veo3, - typeof(global::Runway.CreateTextToVideoRequestVeo3), + Seedance25, + typeof(global::Runway.CreateTextToVideoRequestSeedance25), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -848,12 +930,13 @@ public bool Equals(CreateTextToVideoRequest other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Gen45, other.Gen45) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Veo31, other.Veo31) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Veo31Fast, other.Veo31Fast) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Hailuo3, other.Hailuo3) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Happyhorse10, other.Happyhorse10) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2, other.Seedance2) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2Fast, other.Seedance2Fast) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2Mini, other.Seedance2Mini) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GeminiOmniFlash, other.GeminiOmniFlash) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Veo3, other.Veo3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance25, other.Seedance25) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestDiscriminatorModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestDiscriminatorModel.g.cs index f450c1eb..4a502642 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestDiscriminatorModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestDiscriminatorModel.g.cs @@ -19,6 +19,10 @@ public enum CreateTextToVideoRequestDiscriminatorModel /// /// /// + Hailuo3, + /// + /// + /// Happyhorse10, /// /// @@ -27,15 +31,15 @@ public enum CreateTextToVideoRequestDiscriminatorModel /// /// /// - Seedance2Fast, + Seedance25, /// /// /// - Seedance2Mini, + Seedance2Fast, /// /// /// - Veo3, + Seedance2Mini, /// /// /// @@ -60,11 +64,12 @@ public static string ToValueString(this CreateTextToVideoRequestDiscriminatorMod { CreateTextToVideoRequestDiscriminatorModel.GeminiOmniFlash => "gemini_omni_flash", CreateTextToVideoRequestDiscriminatorModel.Gen45 => "gen4.5", + CreateTextToVideoRequestDiscriminatorModel.Hailuo3 => "hailuo3", CreateTextToVideoRequestDiscriminatorModel.Happyhorse10 => "happyhorse_1_0", CreateTextToVideoRequestDiscriminatorModel.Seedance2 => "seedance2", + CreateTextToVideoRequestDiscriminatorModel.Seedance25 => "seedance2_5", CreateTextToVideoRequestDiscriminatorModel.Seedance2Fast => "seedance2_fast", CreateTextToVideoRequestDiscriminatorModel.Seedance2Mini => "seedance2_mini", - CreateTextToVideoRequestDiscriminatorModel.Veo3 => "veo3", CreateTextToVideoRequestDiscriminatorModel.Veo31 => "veo3.1", CreateTextToVideoRequestDiscriminatorModel.Veo31Fast => "veo3.1_fast", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -79,11 +84,12 @@ public static string ToValueString(this CreateTextToVideoRequestDiscriminatorMod { "gemini_omni_flash" => CreateTextToVideoRequestDiscriminatorModel.GeminiOmniFlash, "gen4.5" => CreateTextToVideoRequestDiscriminatorModel.Gen45, + "hailuo3" => CreateTextToVideoRequestDiscriminatorModel.Hailuo3, "happyhorse_1_0" => CreateTextToVideoRequestDiscriminatorModel.Happyhorse10, "seedance2" => CreateTextToVideoRequestDiscriminatorModel.Seedance2, + "seedance2_5" => CreateTextToVideoRequestDiscriminatorModel.Seedance25, "seedance2_fast" => CreateTextToVideoRequestDiscriminatorModel.Seedance2Fast, "seedance2_mini" => CreateTextToVideoRequestDiscriminatorModel.Seedance2Mini, - "veo3" => CreateTextToVideoRequestDiscriminatorModel.Veo3, "veo3.1" => CreateTextToVideoRequestDiscriminatorModel.Veo31, "veo3.1_fast" => CreateTextToVideoRequestDiscriminatorModel.Veo31Fast, _ => null, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45.g.cs index 1a468e01..e21b408c 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45.g.cs @@ -42,6 +42,20 @@ public sealed partial class CreateTextToVideoRequestGen45 [global::System.Text.Json.Serialization.JsonPropertyName("contentModeration")] public global::Runway.CreateTextToVideoRequestGen45ContentModeration? ContentModeration { get; set; } + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outputFormat")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45OutputFormatJsonConverter))] + public global::Runway.CreateTextToVideoRequestGen45OutputFormat? OutputFormat { get; set; } + + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("proresProfile")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToVideoRequestGen45ProresProfileJsonConverter))] + public global::Runway.CreateTextToVideoRequestGen45ProresProfile? ProresProfile { get; set; } + /// /// /// @@ -73,6 +87,12 @@ public sealed partial class CreateTextToVideoRequestGen45 /// /// Settings that affect the behavior of the content moderation system. /// + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -83,6 +103,8 @@ public CreateTextToVideoRequestGen45( int duration, int? seed, global::Runway.CreateTextToVideoRequestGen45ContentModeration? contentModeration, + global::Runway.CreateTextToVideoRequestGen45OutputFormat? outputFormat, + global::Runway.CreateTextToVideoRequestGen45ProresProfile? proresProfile, string model = "gen4.5") { this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); @@ -90,6 +112,8 @@ public CreateTextToVideoRequestGen45( this.Duration = duration; this.Seed = seed; this.ContentModeration = contentModeration; + this.OutputFormat = outputFormat; + this.ProresProfile = proresProfile; this.Model = model; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45OutputFormat.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45OutputFormat.g.cs new file mode 100644 index 00000000..a712553b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45OutputFormat.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + public enum CreateTextToVideoRequestGen45OutputFormat + { + /// + /// + /// + Mp4, + /// + /// + /// + PngSequence, + /// + /// + /// + Prores, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToVideoRequestGen45OutputFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToVideoRequestGen45OutputFormat value) + { + return value switch + { + CreateTextToVideoRequestGen45OutputFormat.Mp4 => "mp4", + CreateTextToVideoRequestGen45OutputFormat.PngSequence => "png_sequence", + CreateTextToVideoRequestGen45OutputFormat.Prores => "prores", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToVideoRequestGen45OutputFormat? ToEnum(string value) + { + return value switch + { + "mp4" => CreateTextToVideoRequestGen45OutputFormat.Mp4, + "png_sequence" => CreateTextToVideoRequestGen45OutputFormat.PngSequence, + "prores" => CreateTextToVideoRequestGen45OutputFormat.Prores, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45ProresProfile.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45ProresProfile.g.cs new file mode 100644 index 00000000..abe97c87 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestGen45ProresProfile.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// + public enum CreateTextToVideoRequestGen45ProresProfile + { + /// + /// + /// + x422, + /// + /// + /// + x422Hq, + /// + /// + /// + x422Lt, + /// + /// + /// + x422Proxy, + /// + /// + /// + x4444, + /// + /// + /// + x4444Xq, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToVideoRequestGen45ProresProfileExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToVideoRequestGen45ProresProfile value) + { + return value switch + { + CreateTextToVideoRequestGen45ProresProfile.x422 => "422", + CreateTextToVideoRequestGen45ProresProfile.x422Hq => "422 HQ", + CreateTextToVideoRequestGen45ProresProfile.x422Lt => "422 LT", + CreateTextToVideoRequestGen45ProresProfile.x422Proxy => "422 Proxy", + CreateTextToVideoRequestGen45ProresProfile.x4444 => "4444", + CreateTextToVideoRequestGen45ProresProfile.x4444Xq => "4444 XQ", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToVideoRequestGen45ProresProfile? ToEnum(string value) + { + return value switch + { + "422" => CreateTextToVideoRequestGen45ProresProfile.x422, + "422 HQ" => CreateTextToVideoRequestGen45ProresProfile.x422Hq, + "422 LT" => CreateTextToVideoRequestGen45ProresProfile.x422Lt, + "422 Proxy" => CreateTextToVideoRequestGen45ProresProfile.x422Proxy, + "4444" => CreateTextToVideoRequestGen45ProresProfile.x4444, + "4444 XQ" => CreateTextToVideoRequestGen45ProresProfile.x4444Xq, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.Json.g.cs new file mode 100644 index 00000000..2f929829 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestHailuo3 + { + /// + /// 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.CreateTextToVideoRequestHailuo3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestHailuo3), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestHailuo3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestHailuo3? 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.CreateTextToVideoRequestHailuo3? 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.CreateTextToVideoRequestHailuo3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestHailuo3; + } + + /// + /// 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.CreateTextToVideoRequestHailuo3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.g.cs new file mode 100644 index 00000000..e9c3d6cb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3.g.cs @@ -0,0 +1,137 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoRequestHailuo3 + { + /// + /// A non-empty text prompt describing what should appear in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PromptText { get; set; } + + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3ResolutionJsonConverter))] + public global::Runway.CreateTextToVideoRequestHailuo3Resolution? Resolution { get; set; } + + /// + /// The number of seconds of duration for the output video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToVideoRequestHailuo3RatioJsonConverter))] + public global::Runway.CreateTextToVideoRequestHailuo3Ratio? Ratio { get; set; } + + /// + /// An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("references")] + public global::System.Collections.Generic.IList? References { get; set; } + + /// + /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceVideos")] + public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } + + /// + /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// + /// + /// "hailuo3" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "hailuo3"; + + /// + /// 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 non-empty text prompt describing what should appear in the output. + /// + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + /// + /// The number of seconds of duration for the output video. + /// + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + /// + /// An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + /// + /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + /// + /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoRequestHailuo3( + string promptText, + global::Runway.CreateTextToVideoRequestHailuo3Resolution? resolution, + int? duration, + global::Runway.CreateTextToVideoRequestHailuo3Ratio? ratio, + global::System.Collections.Generic.IList? references, + global::System.Collections.Generic.IList? referenceVideos, + global::System.Collections.Generic.IList? referenceAudio, + string model = "hailuo3") + { + this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); + this.Resolution = resolution; + this.Duration = duration; + this.Ratio = ratio; + this.References = references; + this.ReferenceVideos = referenceVideos; + this.ReferenceAudio = referenceAudio; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestHailuo3() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToVideoRequestHailuo3 FromPromptText(string promptText) + { + return new CreateTextToVideoRequestHailuo3 + { + PromptText = promptText, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Ratio.g.cs new file mode 100644 index 00000000..bec0582b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Ratio.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + public enum CreateTextToVideoRequestHailuo3Ratio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x3_4, + /// + /// + /// + x4_3, + /// + /// + /// + x9_16, + /// + /// + /// + Adaptive, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToVideoRequestHailuo3RatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToVideoRequestHailuo3Ratio value) + { + return value switch + { + CreateTextToVideoRequestHailuo3Ratio.x16_9 => "16:9", + CreateTextToVideoRequestHailuo3Ratio.x1_1 => "1:1", + CreateTextToVideoRequestHailuo3Ratio.x21_9 => "21:9", + CreateTextToVideoRequestHailuo3Ratio.x3_4 => "3:4", + CreateTextToVideoRequestHailuo3Ratio.x4_3 => "4:3", + CreateTextToVideoRequestHailuo3Ratio.x9_16 => "9:16", + CreateTextToVideoRequestHailuo3Ratio.Adaptive => "adaptive", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToVideoRequestHailuo3Ratio? ToEnum(string value) + { + return value switch + { + "16:9" => CreateTextToVideoRequestHailuo3Ratio.x16_9, + "1:1" => CreateTextToVideoRequestHailuo3Ratio.x1_1, + "21:9" => CreateTextToVideoRequestHailuo3Ratio.x21_9, + "3:4" => CreateTextToVideoRequestHailuo3Ratio.x3_4, + "4:3" => CreateTextToVideoRequestHailuo3Ratio.x4_3, + "9:16" => CreateTextToVideoRequestHailuo3Ratio.x9_16, + "adaptive" => CreateTextToVideoRequestHailuo3Ratio.Adaptive, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.Json.g.cs new file mode 100644 index 00000000..87bf1682 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestHailuo3Reference + { + /// + /// 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.CreateTextToVideoRequestHailuo3Reference? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestHailuo3Reference), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestHailuo3Reference; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestHailuo3Reference? 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.CreateTextToVideoRequestHailuo3Reference? 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.CreateTextToVideoRequestHailuo3Reference), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestHailuo3Reference; + } + + /// + /// 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.CreateTextToVideoRequestHailuo3Reference.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.g.cs new file mode 100644 index 00000000..fb7b126f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Reference.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoRequestHailuo3Reference + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + ///
+ /// https://example.com/image.jpg + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoRequestHailuo3Reference( + string uri) + { + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestHailuo3Reference() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs new file mode 100644 index 00000000..1a7db152 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestHailuo3ReferenceAudioItem + { + /// + /// 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.CreateTextToVideoRequestHailuo3ReferenceAudioItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestHailuo3ReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestHailuo3ReferenceAudioItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestHailuo3ReferenceAudioItem? 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.CreateTextToVideoRequestHailuo3ReferenceAudioItem? 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.CreateTextToVideoRequestHailuo3ReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestHailuo3ReferenceAudioItem; + } + + /// + /// 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.CreateTextToVideoRequestHailuo3ReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.g.cs new file mode 100644 index 00000000..20d5dd45 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceAudioItem.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An audio reference allows the model to use the audio as additional context for the output. + /// + public sealed partial class CreateTextToVideoRequestHailuo3ReferenceAudioItem + { + /// + /// + /// + /// "audio" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "audio"; + + /// + /// 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 CreateTextToVideoRequestHailuo3ReferenceAudioItem( + string uri, + string type = "audio") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestHailuo3ReferenceAudioItem() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToVideoRequestHailuo3ReferenceAudioItem FromUri(string uri) + { + return new CreateTextToVideoRequestHailuo3ReferenceAudioItem + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.Json.g.cs new file mode 100644 index 00000000..c5797dad --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestHailuo3ReferenceVideo + { + /// + /// 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.CreateTextToVideoRequestHailuo3ReferenceVideo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestHailuo3ReferenceVideo), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestHailuo3ReferenceVideo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestHailuo3ReferenceVideo? 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.CreateTextToVideoRequestHailuo3ReferenceVideo? 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.CreateTextToVideoRequestHailuo3ReferenceVideo), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestHailuo3ReferenceVideo; + } + + /// + /// 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.CreateTextToVideoRequestHailuo3ReferenceVideo.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.g.cs new file mode 100644 index 00000000..8ca836b8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3ReferenceVideo.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A video reference allows the model to use the video as additional context for the output. + /// + public sealed partial class CreateTextToVideoRequestHailuo3ReferenceVideo + { + /// + /// + /// + /// "video" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "video"; + + /// + /// 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; } + + /// + /// 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 + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoRequestHailuo3ReferenceVideo( + string uri, + string type = "video") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestHailuo3ReferenceVideo() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToVideoRequestHailuo3ReferenceVideo FromUri(string uri) + { + return new CreateTextToVideoRequestHailuo3ReferenceVideo + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Resolution.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Resolution.g.cs new file mode 100644 index 00000000..07fc31cc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestHailuo3Resolution.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + public enum CreateTextToVideoRequestHailuo3Resolution + { + /// + /// + /// + x2k, + /// + /// + /// + x768p, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToVideoRequestHailuo3ResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToVideoRequestHailuo3Resolution value) + { + return value switch + { + CreateTextToVideoRequestHailuo3Resolution.x2k => "2K", + CreateTextToVideoRequestHailuo3Resolution.x768p => "768P", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToVideoRequestHailuo3Resolution? ToEnum(string value) + { + return value switch + { + "2K" => CreateTextToVideoRequestHailuo3Resolution.x2k, + "768P" => CreateTextToVideoRequestHailuo3Resolution.x768p, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2.g.cs index cfd670d2..3888d29c 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2.g.cs @@ -48,7 +48,7 @@ public sealed partial class CreateTextToVideoRequestSeedance2 public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -89,7 +89,7 @@ public sealed partial class CreateTextToVideoRequestSeedance2 /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.Json.g.cs new file mode 100644 index 00000000..dd4f5d5b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestSeedance25 + { + /// + /// 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.CreateTextToVideoRequestSeedance25? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestSeedance25), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestSeedance25; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestSeedance25? 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.CreateTextToVideoRequestSeedance25? 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.CreateTextToVideoRequestSeedance25), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestSeedance25; + } + + /// + /// 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.CreateTextToVideoRequestSeedance25.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.g.cs new file mode 100644 index 00000000..e2f6be21 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25.g.cs @@ -0,0 +1,125 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoRequestSeedance25 + { + /// + /// An optional text prompt up to 15000 characters describing what should appear in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + public string? PromptText { get; set; } + + /// + /// Whether to generate audio for the video.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public bool? Audio { get; set; } + + /// + /// The number of seconds of duration for the output video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToVideoRequestSeedance25RatioJsonConverter))] + public global::Runway.CreateTextToVideoRequestSeedance25Ratio? Ratio { get; set; } + + /// + /// An optional array of image references (up to 30). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("references")] + public global::System.Collections.Generic.IList? References { get; set; } + + /// + /// An optional array of video references. The combined duration across all video references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceVideos")] + public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } + + /// + /// An optional array of audio references. The total combined duration must be less than 30 seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// + /// + /// "seedance2_5" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "seedance2_5"; + + /// + /// 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. + /// + /// + /// An optional text prompt up to 15000 characters describing what should appear in the output. + /// + /// + /// Whether to generate audio for the video.
+ /// Default Value: true + /// + /// + /// The number of seconds of duration for the output video. + /// + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + /// + /// An optional array of image references (up to 30). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + /// + /// An optional array of video references. The combined duration across all video references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + /// + /// An optional array of audio references. The total combined duration must be less than 30 seconds. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoRequestSeedance25( + string? promptText, + bool? audio, + int? duration, + global::Runway.CreateTextToVideoRequestSeedance25Ratio? ratio, + global::System.Collections.Generic.IList? references, + global::System.Collections.Generic.IList? referenceVideos, + global::System.Collections.Generic.IList? referenceAudio, + string model = "seedance2_5") + { + this.PromptText = promptText; + this.Audio = audio; + this.Duration = duration; + this.Ratio = ratio; + this.References = references; + this.ReferenceVideos = referenceVideos; + this.ReferenceAudio = referenceAudio; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestSeedance25() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Ratio.g.cs new file mode 100644 index 00000000..e48bd819 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Ratio.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + public enum CreateTextToVideoRequestSeedance25Ratio + { + /// + /// + /// + x1112_834, + /// + /// + /// + x1280_720, + /// + /// + /// + x1470_630, + /// + /// + /// + x480_854, + /// + /// + /// + x560_752, + /// + /// + /// + x640_640, + /// + /// + /// + x720_1280, + /// + /// + /// + x752_560, + /// + /// + /// + x834_1112, + /// + /// + /// + x854_480, + /// + /// + /// + x960_960, + /// + /// + /// + x992_432, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTextToVideoRequestSeedance25RatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTextToVideoRequestSeedance25Ratio value) + { + return value switch + { + CreateTextToVideoRequestSeedance25Ratio.x1112_834 => "1112:834", + CreateTextToVideoRequestSeedance25Ratio.x1280_720 => "1280:720", + CreateTextToVideoRequestSeedance25Ratio.x1470_630 => "1470:630", + CreateTextToVideoRequestSeedance25Ratio.x480_854 => "480:854", + CreateTextToVideoRequestSeedance25Ratio.x560_752 => "560:752", + CreateTextToVideoRequestSeedance25Ratio.x640_640 => "640:640", + CreateTextToVideoRequestSeedance25Ratio.x720_1280 => "720:1280", + CreateTextToVideoRequestSeedance25Ratio.x752_560 => "752:560", + CreateTextToVideoRequestSeedance25Ratio.x834_1112 => "834:1112", + CreateTextToVideoRequestSeedance25Ratio.x854_480 => "854:480", + CreateTextToVideoRequestSeedance25Ratio.x960_960 => "960:960", + CreateTextToVideoRequestSeedance25Ratio.x992_432 => "992:432", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTextToVideoRequestSeedance25Ratio? ToEnum(string value) + { + return value switch + { + "1112:834" => CreateTextToVideoRequestSeedance25Ratio.x1112_834, + "1280:720" => CreateTextToVideoRequestSeedance25Ratio.x1280_720, + "1470:630" => CreateTextToVideoRequestSeedance25Ratio.x1470_630, + "480:854" => CreateTextToVideoRequestSeedance25Ratio.x480_854, + "560:752" => CreateTextToVideoRequestSeedance25Ratio.x560_752, + "640:640" => CreateTextToVideoRequestSeedance25Ratio.x640_640, + "720:1280" => CreateTextToVideoRequestSeedance25Ratio.x720_1280, + "752:560" => CreateTextToVideoRequestSeedance25Ratio.x752_560, + "834:1112" => CreateTextToVideoRequestSeedance25Ratio.x834_1112, + "854:480" => CreateTextToVideoRequestSeedance25Ratio.x854_480, + "960:960" => CreateTextToVideoRequestSeedance25Ratio.x960_960, + "992:432" => CreateTextToVideoRequestSeedance25Ratio.x992_432, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.Json.g.cs new file mode 100644 index 00000000..b1d659d5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestSeedance25Reference + { + /// + /// 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.CreateTextToVideoRequestSeedance25Reference? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestSeedance25Reference), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestSeedance25Reference; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestSeedance25Reference? 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.CreateTextToVideoRequestSeedance25Reference? 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.CreateTextToVideoRequestSeedance25Reference), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestSeedance25Reference; + } + + /// + /// 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.CreateTextToVideoRequestSeedance25Reference.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.g.cs new file mode 100644 index 00000000..a409cc58 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25Reference.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoRequestSeedance25Reference + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + ///
+ /// https://example.com/image.jpg + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoRequestSeedance25Reference( + string uri) + { + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestSeedance25Reference() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs new file mode 100644 index 00000000..997de9d4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestSeedance25ReferenceAudioItem + { + /// + /// 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.CreateTextToVideoRequestSeedance25ReferenceAudioItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestSeedance25ReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestSeedance25ReferenceAudioItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestSeedance25ReferenceAudioItem? 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.CreateTextToVideoRequestSeedance25ReferenceAudioItem? 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.CreateTextToVideoRequestSeedance25ReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestSeedance25ReferenceAudioItem; + } + + /// + /// 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.CreateTextToVideoRequestSeedance25ReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.g.cs new file mode 100644 index 00000000..06307852 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceAudioItem.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An audio reference allows the model to use the audio as additional context for the output. + /// + public sealed partial class CreateTextToVideoRequestSeedance25ReferenceAudioItem + { + /// + /// + /// + /// "audio" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "audio"; + + /// + /// 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 CreateTextToVideoRequestSeedance25ReferenceAudioItem( + string uri, + string type = "audio") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestSeedance25ReferenceAudioItem() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToVideoRequestSeedance25ReferenceAudioItem FromUri(string uri) + { + return new CreateTextToVideoRequestSeedance25ReferenceAudioItem + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.Json.g.cs new file mode 100644 index 00000000..441e2a63 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoRequestSeedance25ReferenceVideo + { + /// + /// 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.CreateTextToVideoRequestSeedance25ReferenceVideo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoRequestSeedance25ReferenceVideo), + jsonSerializerContext) as global::Runway.CreateTextToVideoRequestSeedance25ReferenceVideo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoRequestSeedance25ReferenceVideo? 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.CreateTextToVideoRequestSeedance25ReferenceVideo? 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.CreateTextToVideoRequestSeedance25ReferenceVideo), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoRequestSeedance25ReferenceVideo; + } + + /// + /// 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.CreateTextToVideoRequestSeedance25ReferenceVideo.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.g.cs new file mode 100644 index 00000000..5beec319 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance25ReferenceVideo.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A video reference allows the model to use the video as additional context for the output. + /// + public sealed partial class CreateTextToVideoRequestSeedance25ReferenceVideo + { + /// + /// + /// + /// "video" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "video"; + + /// + /// 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; } + + /// + /// 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 + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoRequestSeedance25ReferenceVideo( + string uri, + string type = "video") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoRequestSeedance25ReferenceVideo() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateTextToVideoRequestSeedance25ReferenceVideo FromUri(string uri) + { + return new CreateTextToVideoRequestSeedance25ReferenceVideo + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Fast.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Fast.g.cs index 69c9abed..8f654ca3 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Fast.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Fast.g.cs @@ -48,7 +48,7 @@ public sealed partial class CreateTextToVideoRequestSeedance2Fast public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -89,7 +89,7 @@ public sealed partial class CreateTextToVideoRequestSeedance2Fast /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Mini.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Mini.g.cs index 08fa9af1..2ba6da6e 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Mini.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestSeedance2Mini.g.cs @@ -48,7 +48,7 @@ public sealed partial class CreateTextToVideoRequestSeedance2Mini public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -89,7 +89,7 @@ public sealed partial class CreateTextToVideoRequestSeedance2Mini /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.g.cs deleted file mode 100644 index 37ed90bb..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3.g.cs +++ /dev/null @@ -1,93 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// - /// - public sealed partial class CreateTextToVideoRequestVeo3 - { - /// - /// A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string PromptText { get; set; } - - /// - /// The number of seconds of duration for the output video. - /// - /// 8 - [global::System.Text.Json.Serialization.JsonPropertyName("duration")] - public double Duration { get; set; } = 8; - - /// - /// The resolution of the output video. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateTextToVideoRequestVeo3RatioJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.CreateTextToVideoRequestVeo3Ratio Ratio { get; set; } - - /// - /// Text describing what should not appear in the output video. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("negativePrompt")] - public string? NegativePrompt { get; set; } - - /// - /// - /// - /// "veo3" - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string Model { get; set; } = "veo3"; - - /// - /// 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 non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output. - /// - /// - /// The resolution of the output video. - /// - /// - /// Text describing what should not appear in the output video. - /// - /// - /// The number of seconds of duration for the output video. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateTextToVideoRequestVeo3( - string promptText, - global::Runway.CreateTextToVideoRequestVeo3Ratio ratio, - string? negativePrompt, - double duration = 8, - string model = "veo3") - { - this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); - this.Duration = duration; - this.Ratio = ratio; - this.NegativePrompt = negativePrompt; - this.Model = model; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateTextToVideoRequestVeo3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3Ratio.g.cs deleted file mode 100644 index e2078260..00000000 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoRequestVeo3Ratio.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Runway -{ - /// - /// The resolution of the output video. - /// - public enum CreateTextToVideoRequestVeo3Ratio - { - /// - /// - /// - x1080_1920, - /// - /// - /// - x1280_720, - /// - /// - /// - x1920_1080, - /// - /// - /// - x720_1280, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateTextToVideoRequestVeo3RatioExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateTextToVideoRequestVeo3Ratio value) - { - return value switch - { - CreateTextToVideoRequestVeo3Ratio.x1080_1920 => "1080:1920", - CreateTextToVideoRequestVeo3Ratio.x1280_720 => "1280:720", - CreateTextToVideoRequestVeo3Ratio.x1920_1080 => "1920:1080", - CreateTextToVideoRequestVeo3Ratio.x720_1280 => "720:1280", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateTextToVideoRequestVeo3Ratio? ToEnum(string value) - { - return value switch - { - "1080:1920" => CreateTextToVideoRequestVeo3Ratio.x1080_1920, - "1280:720" => CreateTextToVideoRequestVeo3Ratio.x1280_720, - "1920:1080" => CreateTextToVideoRequestVeo3Ratio.x1920_1080, - "720:1280" => CreateTextToVideoRequestVeo3Ratio.x720_1280, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse.g.cs index 5b65dc54..5a8a7f0b 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateTextToVideoResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateTextToVideoResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateTextToVideoResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTextToVideoResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateTextToVideoResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse2.g.cs index cae5006b..edbf0abd 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateTextToVideoResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateTextToVideoResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTextToVideoResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.Json.g.cs new file mode 100644 index 00000000..d9837883 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoResponse3 + { + /// + /// 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.CreateTextToVideoResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoResponse3), + jsonSerializerContext) as global::Runway.CreateTextToVideoResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoResponse3? 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.CreateTextToVideoResponse3? 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.CreateTextToVideoResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoResponse3; + } + + /// + /// 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.CreateTextToVideoResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.g.cs new file mode 100644 index 00000000..652eb245 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..6e2b03dd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoResponseEstimatedCost + { + /// + /// 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.CreateTextToVideoResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateTextToVideoResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoResponseEstimatedCost? 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.CreateTextToVideoResponseEstimatedCost? 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.CreateTextToVideoResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoResponseEstimatedCost; + } + + /// + /// 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.CreateTextToVideoResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.g.cs new file mode 100644 index 00000000..05f489eb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateTextToVideoResponseEstimatedCost + { + /// + /// 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 CreateTextToVideoResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.Json.g.cs new file mode 100644 index 00000000..3ffeade3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoResponseIssue + { + /// + /// 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.CreateTextToVideoResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoResponseIssue), + jsonSerializerContext) as global::Runway.CreateTextToVideoResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoResponseIssue? 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.CreateTextToVideoResponseIssue? 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.CreateTextToVideoResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoResponseIssue; + } + + /// + /// 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.CreateTextToVideoResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.g.cs new file mode 100644 index 00000000..f9f0573c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateTextToVideoResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateTextToVideoResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.Json.g.cs new file mode 100644 index 00000000..31acf370 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateTextToVideoResponseIssue2 + { + /// + /// 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.CreateTextToVideoResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateTextToVideoResponseIssue2), + jsonSerializerContext) as global::Runway.CreateTextToVideoResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateTextToVideoResponseIssue2? 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.CreateTextToVideoResponseIssue2? 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.CreateTextToVideoResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateTextToVideoResponseIssue2; + } + + /// + /// 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.CreateTextToVideoResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.g.cs new file mode 100644 index 00000000..79fed70b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToVideoResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateTextToVideoResponseIssue2 + { + + /// + /// 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.CreateVideoToVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequest.g.cs index 0735f9dd..e5fad77d 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequest.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequest.g.cs @@ -51,6 +51,43 @@ public bool TryPickAleph2( ? Aleph2! : throw new global::System.InvalidOperationException($"Expected union variant 'Aleph2' but the value was {ToString()}."); + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateVideoToVideoRequestHailuo3? Hailuo3 { get; init; } +#else + public global::Runway.CreateVideoToVideoRequestHailuo3? Hailuo3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Hailuo3))] +#endif + public bool IsHailuo3 => Hailuo3 != null; + + /// + /// + /// + public bool TryPickHailuo3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateVideoToVideoRequestHailuo3? value) + { + value = Hailuo3; + return IsHailuo3; + } + + /// + /// + /// + public global::Runway.CreateVideoToVideoRequestHailuo3 PickHailuo3() => IsHailuo3 + ? Hailuo3! + : throw new global::System.InvalidOperationException($"Expected union variant 'Hailuo3' but the value was {ToString()}."); + /// /// /// @@ -198,6 +235,43 @@ public bool TryPickGeminiOmniFlash( public global::Runway.CreateVideoToVideoRequestGeminiOmniFlash PickGeminiOmniFlash() => IsGeminiOmniFlash ? GeminiOmniFlash! : throw new global::System.InvalidOperationException($"Expected union variant 'GeminiOmniFlash' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateVideoToVideoRequestSeedance25? Seedance25 { get; init; } +#else + public global::Runway.CreateVideoToVideoRequestSeedance25? Seedance25 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Seedance25))] +#endif + public bool IsSeedance25 => Seedance25 != null; + + /// + /// + /// + public bool TryPickSeedance25( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateVideoToVideoRequestSeedance25? value) + { + value = Seedance25; + return IsSeedance25; + } + + /// + /// + /// + public global::Runway.CreateVideoToVideoRequestSeedance25 PickSeedance25() => IsSeedance25 + ? Seedance25! + : throw new global::System.InvalidOperationException($"Expected union variant 'Seedance25' but the value was {ToString()}."); /// /// /// @@ -221,6 +295,29 @@ public CreateVideoToVideoRequest(global::Runway.CreateVideoToVideoRequestVariant /// public static CreateVideoToVideoRequest FromAleph2(global::Runway.CreateVideoToVideoRequestVariant1? value) => new CreateVideoToVideoRequest(value); + /// + /// + /// + public static implicit operator CreateVideoToVideoRequest(global::Runway.CreateVideoToVideoRequestHailuo3 value) => new CreateVideoToVideoRequest((global::Runway.CreateVideoToVideoRequestHailuo3?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateVideoToVideoRequestHailuo3?(CreateVideoToVideoRequest @this) => @this.Hailuo3; + + /// + /// + /// + public CreateVideoToVideoRequest(global::Runway.CreateVideoToVideoRequestHailuo3? value) + { + Hailuo3 = value; + } + + /// + /// + /// + public static CreateVideoToVideoRequest FromHailuo3(global::Runway.CreateVideoToVideoRequestHailuo3? value) => new CreateVideoToVideoRequest(value); + /// /// /// @@ -313,35 +410,64 @@ public CreateVideoToVideoRequest(global::Runway.CreateVideoToVideoRequestGeminiO /// public static CreateVideoToVideoRequest FromGeminiOmniFlash(global::Runway.CreateVideoToVideoRequestGeminiOmniFlash? value) => new CreateVideoToVideoRequest(value); + /// + /// + /// + public static implicit operator CreateVideoToVideoRequest(global::Runway.CreateVideoToVideoRequestSeedance25 value) => new CreateVideoToVideoRequest((global::Runway.CreateVideoToVideoRequestSeedance25?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateVideoToVideoRequestSeedance25?(CreateVideoToVideoRequest @this) => @this.Seedance25; + + /// + /// + /// + public CreateVideoToVideoRequest(global::Runway.CreateVideoToVideoRequestSeedance25? value) + { + Seedance25 = value; + } + + /// + /// + /// + public static CreateVideoToVideoRequest FromSeedance25(global::Runway.CreateVideoToVideoRequestSeedance25? value) => new CreateVideoToVideoRequest(value); + /// /// /// public CreateVideoToVideoRequest( global::Runway.CreateVideoToVideoRequestDiscriminatorModel? model, global::Runway.CreateVideoToVideoRequestVariant1? aleph2, + global::Runway.CreateVideoToVideoRequestHailuo3? hailuo3, global::Runway.CreateVideoToVideoRequestSeedance2? seedance2, global::Runway.CreateVideoToVideoRequestSeedance2Fast? seedance2Fast, global::Runway.CreateVideoToVideoRequestSeedance2Mini? seedance2Mini, - global::Runway.CreateVideoToVideoRequestGeminiOmniFlash? geminiOmniFlash + global::Runway.CreateVideoToVideoRequestGeminiOmniFlash? geminiOmniFlash, + global::Runway.CreateVideoToVideoRequestSeedance25? seedance25 ) { Model = model; Aleph2 = aleph2; + Hailuo3 = hailuo3; Seedance2 = seedance2; Seedance2Fast = seedance2Fast; Seedance2Mini = seedance2Mini; GeminiOmniFlash = geminiOmniFlash; + Seedance25 = seedance25; } /// /// /// public object? Object => + Seedance25 as object ?? GeminiOmniFlash as object ?? Seedance2Mini as object ?? Seedance2Fast as object ?? Seedance2 as object ?? + Hailuo3 as object ?? Aleph2 as object ; @@ -350,10 +476,12 @@ Aleph2 as object ///
public override string? ToString() => Aleph2?.ToString() ?? + Hailuo3?.ToString() ?? Seedance2?.ToString() ?? Seedance2Fast?.ToString() ?? Seedance2Mini?.ToString() ?? - GeminiOmniFlash?.ToString() + GeminiOmniFlash?.ToString() ?? + Seedance25?.ToString() ; /// @@ -361,7 +489,7 @@ Aleph2 as object /// public bool Validate() { - return IsAleph2 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash || !IsAleph2 && IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash || !IsAleph2 && !IsSeedance2 && IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash || !IsAleph2 && !IsSeedance2 && !IsSeedance2Fast && IsSeedance2Mini && !IsGeminiOmniFlash || !IsAleph2 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && IsGeminiOmniFlash; + return IsAleph2 && !IsHailuo3 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsAleph2 && IsHailuo3 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsAleph2 && !IsHailuo3 && IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsAleph2 && !IsHailuo3 && !IsSeedance2 && IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsAleph2 && !IsHailuo3 && !IsSeedance2 && !IsSeedance2Fast && IsSeedance2Mini && !IsGeminiOmniFlash && !IsSeedance25 || !IsAleph2 && !IsHailuo3 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && IsGeminiOmniFlash && !IsSeedance25 || !IsAleph2 && !IsHailuo3 && !IsSeedance2 && !IsSeedance2Fast && !IsSeedance2Mini && !IsGeminiOmniFlash && IsSeedance25; } /// @@ -369,10 +497,12 @@ public bool Validate() /// public TResult? Match( global::System.Func? aleph2 = null, + global::System.Func? hailuo3 = null, global::System.Func? seedance2 = null, global::System.Func? seedance2Fast = null, global::System.Func? seedance2Mini = null, global::System.Func? geminiOmniFlash = null, + global::System.Func? seedance25 = null, bool validate = true) { if (validate) @@ -384,6 +514,10 @@ public bool Validate() { return aleph2(Aleph2!); } + else if (IsHailuo3 && hailuo3 != null) + { + return hailuo3(Hailuo3!); + } else if (IsSeedance2 && seedance2 != null) { return seedance2(Seedance2!); @@ -400,6 +534,10 @@ public bool Validate() { return geminiOmniFlash(GeminiOmniFlash!); } + else if (IsSeedance25 && seedance25 != null) + { + return seedance25(Seedance25!); + } return default(TResult); } @@ -410,6 +548,8 @@ public bool Validate() public void Match( global::System.Action? aleph2 = null, + global::System.Action? hailuo3 = null, + global::System.Action? seedance2 = null, global::System.Action? seedance2Fast = null, @@ -417,6 +557,8 @@ public void Match( global::System.Action? seedance2Mini = null, global::System.Action? geminiOmniFlash = null, + + global::System.Action? seedance25 = null, bool validate = true) { if (validate) @@ -428,6 +570,10 @@ public void Match( { aleph2?.Invoke(Aleph2!); } + else if (IsHailuo3) + { + hailuo3?.Invoke(Hailuo3!); + } else if (IsSeedance2) { seedance2?.Invoke(Seedance2!); @@ -444,6 +590,10 @@ public void Match( { geminiOmniFlash?.Invoke(GeminiOmniFlash!); } + else if (IsSeedance25) + { + seedance25?.Invoke(Seedance25!); + } } /// @@ -451,10 +601,12 @@ public void Match( /// public void Switch( global::System.Action? aleph2 = null, + global::System.Action? hailuo3 = null, global::System.Action? seedance2 = null, global::System.Action? seedance2Fast = null, global::System.Action? seedance2Mini = null, global::System.Action? geminiOmniFlash = null, + global::System.Action? seedance25 = null, bool validate = true) { if (validate) @@ -466,6 +618,10 @@ public void Switch( { aleph2?.Invoke(Aleph2!); } + else if (IsHailuo3) + { + hailuo3?.Invoke(Hailuo3!); + } else if (IsSeedance2) { seedance2?.Invoke(Seedance2!); @@ -482,6 +638,10 @@ public void Switch( { geminiOmniFlash?.Invoke(GeminiOmniFlash!); } + else if (IsSeedance25) + { + seedance25?.Invoke(Seedance25!); + } } /// @@ -493,6 +653,8 @@ public override int GetHashCode() { Aleph2, typeof(global::Runway.CreateVideoToVideoRequestVariant1), + Hailuo3, + typeof(global::Runway.CreateVideoToVideoRequestHailuo3), Seedance2, typeof(global::Runway.CreateVideoToVideoRequestSeedance2), Seedance2Fast, @@ -501,6 +663,8 @@ public override int GetHashCode() typeof(global::Runway.CreateVideoToVideoRequestSeedance2Mini), GeminiOmniFlash, typeof(global::Runway.CreateVideoToVideoRequestGeminiOmniFlash), + Seedance25, + typeof(global::Runway.CreateVideoToVideoRequestSeedance25), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -518,10 +682,12 @@ public bool Equals(CreateVideoToVideoRequest other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Aleph2, other.Aleph2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Hailuo3, other.Hailuo3) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2, other.Seedance2) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2Fast, other.Seedance2Fast) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance2Mini, other.Seedance2Mini) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(GeminiOmniFlash, other.GeminiOmniFlash) + global::System.Collections.Generic.EqualityComparer.Default.Equals(GeminiOmniFlash, other.GeminiOmniFlash) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Seedance25, other.Seedance25) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestDiscriminatorModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestDiscriminatorModel.g.cs index 974e5fdb..405ac6a5 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestDiscriminatorModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestDiscriminatorModel.g.cs @@ -19,10 +19,18 @@ public enum CreateVideoToVideoRequestDiscriminatorModel /// /// /// + Hailuo3, + /// + /// + /// Seedance2, /// /// /// + Seedance25, + /// + /// + /// Seedance2Fast, /// /// @@ -44,7 +52,9 @@ public static string ToValueString(this CreateVideoToVideoRequestDiscriminatorMo { CreateVideoToVideoRequestDiscriminatorModel.Aleph2 => "aleph2", CreateVideoToVideoRequestDiscriminatorModel.GeminiOmniFlash => "gemini_omni_flash", + CreateVideoToVideoRequestDiscriminatorModel.Hailuo3 => "hailuo3", CreateVideoToVideoRequestDiscriminatorModel.Seedance2 => "seedance2", + CreateVideoToVideoRequestDiscriminatorModel.Seedance25 => "seedance2_5", CreateVideoToVideoRequestDiscriminatorModel.Seedance2Fast => "seedance2_fast", CreateVideoToVideoRequestDiscriminatorModel.Seedance2Mini => "seedance2_mini", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -59,7 +69,9 @@ public static string ToValueString(this CreateVideoToVideoRequestDiscriminatorMo { "aleph2" => CreateVideoToVideoRequestDiscriminatorModel.Aleph2, "gemini_omni_flash" => CreateVideoToVideoRequestDiscriminatorModel.GeminiOmniFlash, + "hailuo3" => CreateVideoToVideoRequestDiscriminatorModel.Hailuo3, "seedance2" => CreateVideoToVideoRequestDiscriminatorModel.Seedance2, + "seedance2_5" => CreateVideoToVideoRequestDiscriminatorModel.Seedance25, "seedance2_fast" => CreateVideoToVideoRequestDiscriminatorModel.Seedance2Fast, "seedance2_mini" => CreateVideoToVideoRequestDiscriminatorModel.Seedance2Mini, _ => null, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.Json.g.cs new file mode 100644 index 00000000..5a6c73aa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestHailuo3 + { + /// + /// 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.CreateVideoToVideoRequestHailuo3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestHailuo3), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestHailuo3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestHailuo3? 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.CreateVideoToVideoRequestHailuo3? 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.CreateVideoToVideoRequestHailuo3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestHailuo3; + } + + /// + /// 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.CreateVideoToVideoRequestHailuo3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.g.cs new file mode 100644 index 00000000..5d6708d5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3.g.cs @@ -0,0 +1,140 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoRequestHailuo3 + { + /// + /// The input video to use as a reference for the output video. If additional video references are provided, the combined duration across all video references must not exceed 15 seconds.
+ /// Example: https://example.com/video.mp4 + ///
+ /// https://example.com/video.mp4 + [global::System.Text.Json.Serialization.JsonPropertyName("promptVideo")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PromptVideo { get; set; } + + /// + /// A non-empty text prompt describing what should appear in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PromptText { get; set; } + + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3ResolutionJsonConverter))] + public global::Runway.CreateVideoToVideoRequestHailuo3Resolution? Resolution { get; set; } + + /// + /// The number of seconds of duration for the output video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestHailuo3RatioJsonConverter))] + public global::Runway.CreateVideoToVideoRequestHailuo3Ratio? Ratio { get; set; } + + /// + /// An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("references")] + public global::System.Collections.Generic.IList? References { get; set; } + + /// + /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceVideos")] + public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } + + /// + /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// + /// + /// "hailuo3" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "hailuo3"; + + /// + /// 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 input video to use as a reference for the output video. If additional video references are provided, the combined duration across all video references must not exceed 15 seconds.
+ /// Example: https://example.com/video.mp4 + /// + /// + /// A non-empty text prompt describing what should appear in the output. + /// + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + /// + /// The number of seconds of duration for the output video. + /// + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + /// + /// An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + /// + /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + /// + /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoRequestHailuo3( + string promptVideo, + string promptText, + global::Runway.CreateVideoToVideoRequestHailuo3Resolution? resolution, + int? duration, + global::Runway.CreateVideoToVideoRequestHailuo3Ratio? ratio, + global::System.Collections.Generic.IList? references, + global::System.Collections.Generic.IList? referenceVideos, + global::System.Collections.Generic.IList? referenceAudio, + string model = "hailuo3") + { + this.PromptVideo = promptVideo; + this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); + this.Resolution = resolution; + this.Duration = duration; + this.Ratio = ratio; + this.References = references; + this.ReferenceVideos = referenceVideos; + this.ReferenceAudio = referenceAudio; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestHailuo3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Ratio.g.cs new file mode 100644 index 00000000..5d74e880 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Ratio.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio. + /// + public enum CreateVideoToVideoRequestHailuo3Ratio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x3_4, + /// + /// + /// + x4_3, + /// + /// + /// + x9_16, + /// + /// + /// + Adaptive, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateVideoToVideoRequestHailuo3RatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateVideoToVideoRequestHailuo3Ratio value) + { + return value switch + { + CreateVideoToVideoRequestHailuo3Ratio.x16_9 => "16:9", + CreateVideoToVideoRequestHailuo3Ratio.x1_1 => "1:1", + CreateVideoToVideoRequestHailuo3Ratio.x21_9 => "21:9", + CreateVideoToVideoRequestHailuo3Ratio.x3_4 => "3:4", + CreateVideoToVideoRequestHailuo3Ratio.x4_3 => "4:3", + CreateVideoToVideoRequestHailuo3Ratio.x9_16 => "9:16", + CreateVideoToVideoRequestHailuo3Ratio.Adaptive => "adaptive", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateVideoToVideoRequestHailuo3Ratio? ToEnum(string value) + { + return value switch + { + "16:9" => CreateVideoToVideoRequestHailuo3Ratio.x16_9, + "1:1" => CreateVideoToVideoRequestHailuo3Ratio.x1_1, + "21:9" => CreateVideoToVideoRequestHailuo3Ratio.x21_9, + "3:4" => CreateVideoToVideoRequestHailuo3Ratio.x3_4, + "4:3" => CreateVideoToVideoRequestHailuo3Ratio.x4_3, + "9:16" => CreateVideoToVideoRequestHailuo3Ratio.x9_16, + "adaptive" => CreateVideoToVideoRequestHailuo3Ratio.Adaptive, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.Json.g.cs new file mode 100644 index 00000000..6cbefd15 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestHailuo3Reference + { + /// + /// 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.CreateVideoToVideoRequestHailuo3Reference? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestHailuo3Reference), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestHailuo3Reference; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestHailuo3Reference? 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.CreateVideoToVideoRequestHailuo3Reference? 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.CreateVideoToVideoRequestHailuo3Reference), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestHailuo3Reference; + } + + /// + /// 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.CreateVideoToVideoRequestHailuo3Reference.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.g.cs new file mode 100644 index 00000000..5d16020d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Reference.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoRequestHailuo3Reference + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + ///
+ /// https://example.com/image.jpg + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoRequestHailuo3Reference( + string uri) + { + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestHailuo3Reference() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs new file mode 100644 index 00000000..c89ebe4c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestHailuo3ReferenceAudioItem + { + /// + /// 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.CreateVideoToVideoRequestHailuo3ReferenceAudioItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestHailuo3ReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestHailuo3ReferenceAudioItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestHailuo3ReferenceAudioItem? 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.CreateVideoToVideoRequestHailuo3ReferenceAudioItem? 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.CreateVideoToVideoRequestHailuo3ReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestHailuo3ReferenceAudioItem; + } + + /// + /// 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.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.g.cs new file mode 100644 index 00000000..d49eaf03 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceAudioItem.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An audio reference allows the model to use the audio as additional context for the output. + /// + public sealed partial class CreateVideoToVideoRequestHailuo3ReferenceAudioItem + { + /// + /// + /// + /// "audio" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "audio"; + + /// + /// 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 CreateVideoToVideoRequestHailuo3ReferenceAudioItem( + string uri, + string type = "audio") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestHailuo3ReferenceAudioItem() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateVideoToVideoRequestHailuo3ReferenceAudioItem FromUri(string uri) + { + return new CreateVideoToVideoRequestHailuo3ReferenceAudioItem + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.Json.g.cs new file mode 100644 index 00000000..e126584e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestHailuo3ReferenceVideo + { + /// + /// 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.CreateVideoToVideoRequestHailuo3ReferenceVideo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestHailuo3ReferenceVideo), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestHailuo3ReferenceVideo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestHailuo3ReferenceVideo? 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.CreateVideoToVideoRequestHailuo3ReferenceVideo? 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.CreateVideoToVideoRequestHailuo3ReferenceVideo), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestHailuo3ReferenceVideo; + } + + /// + /// 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.CreateVideoToVideoRequestHailuo3ReferenceVideo.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.g.cs new file mode 100644 index 00000000..c4e9e9a4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3ReferenceVideo.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A video reference allows the model to use the video as additional context for the output. + /// + public sealed partial class CreateVideoToVideoRequestHailuo3ReferenceVideo + { + /// + /// + /// + /// "video" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "video"; + + /// + /// 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; } + + /// + /// 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 + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoRequestHailuo3ReferenceVideo( + string uri, + string type = "video") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestHailuo3ReferenceVideo() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateVideoToVideoRequestHailuo3ReferenceVideo FromUri(string uri) + { + return new CreateVideoToVideoRequestHailuo3ReferenceVideo + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Resolution.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Resolution.g.cs new file mode 100644 index 00000000..b74202c9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestHailuo3Resolution.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The output resolution. Hailuo 3.0 supports 768P and 2K. + /// + public enum CreateVideoToVideoRequestHailuo3Resolution + { + /// + /// + /// + x2k, + /// + /// + /// + x768p, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateVideoToVideoRequestHailuo3ResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateVideoToVideoRequestHailuo3Resolution value) + { + return value switch + { + CreateVideoToVideoRequestHailuo3Resolution.x2k => "2K", + CreateVideoToVideoRequestHailuo3Resolution.x768p => "768P", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateVideoToVideoRequestHailuo3Resolution? ToEnum(string value) + { + return value switch + { + "2K" => CreateVideoToVideoRequestHailuo3Resolution.x2k, + "768P" => CreateVideoToVideoRequestHailuo3Resolution.x768p, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2.g.cs index 3e08a73c..5007a4f3 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2.g.cs @@ -56,7 +56,7 @@ public sealed partial class CreateVideoToVideoRequestSeedance2 public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -101,7 +101,7 @@ public sealed partial class CreateVideoToVideoRequestSeedance2 /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.Json.g.cs new file mode 100644 index 00000000..43d17a82 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestSeedance25 + { + /// + /// 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.CreateVideoToVideoRequestSeedance25? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestSeedance25), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestSeedance25; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestSeedance25? 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.CreateVideoToVideoRequestSeedance25? 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.CreateVideoToVideoRequestSeedance25), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestSeedance25; + } + + /// + /// 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.CreateVideoToVideoRequestSeedance25.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.g.cs new file mode 100644 index 00000000..c307d00f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25.g.cs @@ -0,0 +1,166 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoRequestSeedance25 + { + /// + /// The input video to use as a reference for the output video. If additional video references are provided, the combined duration across all video references must not exceed 30 seconds.
+ /// Example: https://example.com/video.mp4 + ///
+ /// https://example.com/video.mp4 + [global::System.Text.Json.Serialization.JsonPropertyName("promptVideo")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string PromptVideo { get; set; } + + /// + /// An optional text prompt up to 15000 characters describing what should appear in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + public string? PromptText { get; set; } + + /// + /// Whether to generate audio for the video.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public bool? Audio { get; set; } + + /// + /// How the input video is used. `reference` (the default) generates a new video conditioned on the input video and accepts `duration` and `ratio`. `extend` continues the input video, requires `promptText`, and matches the input aspect ratio, so `ratio` may not be provided.
+ /// Default Value: reference + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25ModeJsonConverter))] + public global::Runway.CreateVideoToVideoRequestSeedance25Mode? Mode { get; set; } + + /// + /// The number of seconds of duration for the output video. Defaults to 5. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestSeedance25RatioJsonConverter))] + public global::Runway.CreateVideoToVideoRequestSeedance25Ratio? Ratio { get; set; } + + /// + /// An optional array of image references (up to 30). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("references")] + public global::System.Collections.Generic.IList? References { get; set; } + + /// + /// An optional array of video references. The combined duration across all video references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceVideos")] + public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } + + /// + /// An optional array of audio references. The total combined duration must be less than 30 seconds. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// + /// + /// "seedance2_5" + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string Model { get; set; } = "seedance2_5"; + + /// + /// 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 input video to use as a reference for the output video. If additional video references are provided, the combined duration across all video references must not exceed 30 seconds.
+ /// Example: https://example.com/video.mp4 + /// + /// + /// An optional text prompt up to 15000 characters describing what should appear in the output. + /// + /// + /// Whether to generate audio for the video.
+ /// Default Value: true + /// + /// + /// How the input video is used. `reference` (the default) generates a new video conditioned on the input video and accepts `duration` and `ratio`. `extend` continues the input video, requires `promptText`, and matches the input aspect ratio, so `ratio` may not be provided.
+ /// Default Value: reference + /// + /// + /// The number of seconds of duration for the output video. Defaults to 5. + /// + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + /// + /// An optional array of image references (up to 30). See [our docs](/assets/inputs#images) on image inputs for more information. + /// + /// + /// An optional array of video references. The combined duration across all video references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. + /// + /// + /// An optional array of audio references. The total combined duration must be less than 30 seconds. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoRequestSeedance25( + string promptVideo, + string? promptText, + bool? audio, + global::Runway.CreateVideoToVideoRequestSeedance25Mode? mode, + int? duration, + global::Runway.CreateVideoToVideoRequestSeedance25Ratio? ratio, + global::System.Collections.Generic.IList? references, + global::System.Collections.Generic.IList? referenceVideos, + global::System.Collections.Generic.IList? referenceAudio, + string model = "seedance2_5") + { + this.PromptVideo = promptVideo; + this.PromptText = promptText; + this.Audio = audio; + this.Mode = mode; + this.Duration = duration; + this.Ratio = ratio; + this.References = references; + this.ReferenceVideos = referenceVideos; + this.ReferenceAudio = referenceAudio; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestSeedance25() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateVideoToVideoRequestSeedance25 FromPromptVideo(string promptVideo) + { + return new CreateVideoToVideoRequestSeedance25 + { + PromptVideo = promptVideo, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Mode.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Mode.g.cs new file mode 100644 index 00000000..f8ea0979 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Mode.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Runway +{ + /// + /// How the input video is used. `reference` (the default) generates a new video conditioned on the input video and accepts `duration` and `ratio`. `extend` continues the input video, requires `promptText`, and matches the input aspect ratio, so `ratio` may not be provided.
+ /// Default Value: reference + ///
+ public enum CreateVideoToVideoRequestSeedance25Mode + { + /// + /// + /// + Extend, + /// + /// + /// + Reference, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateVideoToVideoRequestSeedance25ModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateVideoToVideoRequestSeedance25Mode value) + { + return value switch + { + CreateVideoToVideoRequestSeedance25Mode.Extend => "extend", + CreateVideoToVideoRequestSeedance25Mode.Reference => "reference", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateVideoToVideoRequestSeedance25Mode? ToEnum(string value) + { + return value switch + { + "extend" => CreateVideoToVideoRequestSeedance25Mode.Extend, + "reference" => CreateVideoToVideoRequestSeedance25Mode.Reference, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Ratio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Ratio.g.cs new file mode 100644 index 00000000..3910f9fd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Ratio.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolution of the output video. Seedance 2.5 supports 480p and 720p only. + /// + public enum CreateVideoToVideoRequestSeedance25Ratio + { + /// + /// + /// + x1112_834, + /// + /// + /// + x1280_720, + /// + /// + /// + x1470_630, + /// + /// + /// + x480_854, + /// + /// + /// + x560_752, + /// + /// + /// + x640_640, + /// + /// + /// + x720_1280, + /// + /// + /// + x752_560, + /// + /// + /// + x834_1112, + /// + /// + /// + x854_480, + /// + /// + /// + x960_960, + /// + /// + /// + x992_432, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateVideoToVideoRequestSeedance25RatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateVideoToVideoRequestSeedance25Ratio value) + { + return value switch + { + CreateVideoToVideoRequestSeedance25Ratio.x1112_834 => "1112:834", + CreateVideoToVideoRequestSeedance25Ratio.x1280_720 => "1280:720", + CreateVideoToVideoRequestSeedance25Ratio.x1470_630 => "1470:630", + CreateVideoToVideoRequestSeedance25Ratio.x480_854 => "480:854", + CreateVideoToVideoRequestSeedance25Ratio.x560_752 => "560:752", + CreateVideoToVideoRequestSeedance25Ratio.x640_640 => "640:640", + CreateVideoToVideoRequestSeedance25Ratio.x720_1280 => "720:1280", + CreateVideoToVideoRequestSeedance25Ratio.x752_560 => "752:560", + CreateVideoToVideoRequestSeedance25Ratio.x834_1112 => "834:1112", + CreateVideoToVideoRequestSeedance25Ratio.x854_480 => "854:480", + CreateVideoToVideoRequestSeedance25Ratio.x960_960 => "960:960", + CreateVideoToVideoRequestSeedance25Ratio.x992_432 => "992:432", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateVideoToVideoRequestSeedance25Ratio? ToEnum(string value) + { + return value switch + { + "1112:834" => CreateVideoToVideoRequestSeedance25Ratio.x1112_834, + "1280:720" => CreateVideoToVideoRequestSeedance25Ratio.x1280_720, + "1470:630" => CreateVideoToVideoRequestSeedance25Ratio.x1470_630, + "480:854" => CreateVideoToVideoRequestSeedance25Ratio.x480_854, + "560:752" => CreateVideoToVideoRequestSeedance25Ratio.x560_752, + "640:640" => CreateVideoToVideoRequestSeedance25Ratio.x640_640, + "720:1280" => CreateVideoToVideoRequestSeedance25Ratio.x720_1280, + "752:560" => CreateVideoToVideoRequestSeedance25Ratio.x752_560, + "834:1112" => CreateVideoToVideoRequestSeedance25Ratio.x834_1112, + "854:480" => CreateVideoToVideoRequestSeedance25Ratio.x854_480, + "960:960" => CreateVideoToVideoRequestSeedance25Ratio.x960_960, + "992:432" => CreateVideoToVideoRequestSeedance25Ratio.x992_432, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.Json.g.cs new file mode 100644 index 00000000..889e9186 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestSeedance25Reference + { + /// + /// 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.CreateVideoToVideoRequestSeedance25Reference? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestSeedance25Reference), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestSeedance25Reference; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestSeedance25Reference? 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.CreateVideoToVideoRequestSeedance25Reference? 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.CreateVideoToVideoRequestSeedance25Reference), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestSeedance25Reference; + } + + /// + /// 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.CreateVideoToVideoRequestSeedance25Reference.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.g.cs new file mode 100644 index 00000000..b1ccae77 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25Reference.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoRequestSeedance25Reference + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + ///
+ /// https://example.com/image.jpg + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoRequestSeedance25Reference( + string uri) + { + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestSeedance25Reference() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs new file mode 100644 index 00000000..3a0e60a8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestSeedance25ReferenceAudioItem + { + /// + /// 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.CreateVideoToVideoRequestSeedance25ReferenceAudioItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestSeedance25ReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestSeedance25ReferenceAudioItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestSeedance25ReferenceAudioItem? 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.CreateVideoToVideoRequestSeedance25ReferenceAudioItem? 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.CreateVideoToVideoRequestSeedance25ReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestSeedance25ReferenceAudioItem; + } + + /// + /// 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.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.g.cs new file mode 100644 index 00000000..90490404 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceAudioItem.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An audio reference allows the model to use the audio as additional context for the output. + /// + public sealed partial class CreateVideoToVideoRequestSeedance25ReferenceAudioItem + { + /// + /// + /// + /// "audio" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "audio"; + + /// + /// 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 CreateVideoToVideoRequestSeedance25ReferenceAudioItem( + string uri, + string type = "audio") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestSeedance25ReferenceAudioItem() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateVideoToVideoRequestSeedance25ReferenceAudioItem FromUri(string uri) + { + return new CreateVideoToVideoRequestSeedance25ReferenceAudioItem + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.Json.g.cs new file mode 100644 index 00000000..5773e54d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoRequestSeedance25ReferenceVideo + { + /// + /// 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.CreateVideoToVideoRequestSeedance25ReferenceVideo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoRequestSeedance25ReferenceVideo), + jsonSerializerContext) as global::Runway.CreateVideoToVideoRequestSeedance25ReferenceVideo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoRequestSeedance25ReferenceVideo? 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.CreateVideoToVideoRequestSeedance25ReferenceVideo? 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.CreateVideoToVideoRequestSeedance25ReferenceVideo), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoRequestSeedance25ReferenceVideo; + } + + /// + /// 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.CreateVideoToVideoRequestSeedance25ReferenceVideo.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.g.cs new file mode 100644 index 00000000..8983129d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance25ReferenceVideo.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A video reference allows the model to use the video as additional context for the output. + /// + public sealed partial class CreateVideoToVideoRequestSeedance25ReferenceVideo + { + /// + /// + /// + /// "video" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "video"; + + /// + /// 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; } + + /// + /// 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 + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoRequestSeedance25ReferenceVideo( + string uri, + string type = "video") + { + this.Type = type; + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoRequestSeedance25ReferenceVideo() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateVideoToVideoRequestSeedance25ReferenceVideo FromUri(string uri) + { + return new CreateVideoToVideoRequestSeedance25ReferenceVideo + { + Uri = uri, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Fast.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Fast.g.cs index 92e4b35e..34c5f44a 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Fast.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Fast.g.cs @@ -56,7 +56,7 @@ public sealed partial class CreateVideoToVideoRequestSeedance2Fast public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -101,7 +101,7 @@ public sealed partial class CreateVideoToVideoRequestSeedance2Fast /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Mini.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Mini.g.cs index 922e4f2d..e6faebf2 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Mini.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestSeedance2Mini.g.cs @@ -56,7 +56,7 @@ public sealed partial class CreateVideoToVideoRequestSeedance2Mini public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } @@ -101,7 +101,7 @@ public sealed partial class CreateVideoToVideoRequestSeedance2Mini /// An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information. /// /// - /// An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds. + /// An optional array of audio references. The total combined duration must not exceed 15 seconds. /// /// #if NET7_0_OR_GREATER diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1.g.cs index 4e0aab8d..63150b96 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1.g.cs @@ -57,6 +57,20 @@ public sealed partial class CreateVideoToVideoRequestVariant1 [global::System.Text.Json.Serialization.JsonPropertyName("contentModeration")] public global::Runway.CreateVideoToVideoRequestVariant1ContentModeration? ContentModeration { get; set; } + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outputFormat")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1OutputFormatJsonConverter))] + public global::Runway.CreateVideoToVideoRequestVariant1OutputFormat? OutputFormat { get; set; } + + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("proresProfile")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateVideoToVideoRequestVariant1ProresProfileJsonConverter))] + public global::Runway.CreateVideoToVideoRequestVariant1ProresProfile? ProresProfile { get; set; } + /// /// /// @@ -92,6 +106,12 @@ public sealed partial class CreateVideoToVideoRequestVariant1 /// /// Settings that affect the behavior of the content moderation system. /// + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -103,6 +123,8 @@ public CreateVideoToVideoRequestVariant1( int? seed, global::Runway.CreateVideoToVideoRequestVariant1TargetAspectRatio? targetAspectRatio, global::Runway.CreateVideoToVideoRequestVariant1ContentModeration? contentModeration, + global::Runway.CreateVideoToVideoRequestVariant1OutputFormat? outputFormat, + global::Runway.CreateVideoToVideoRequestVariant1ProresProfile? proresProfile, string model = "aleph2") { this.PromptText = promptText; @@ -111,6 +133,8 @@ public CreateVideoToVideoRequestVariant1( this.Seed = seed; this.TargetAspectRatio = targetAspectRatio; this.ContentModeration = contentModeration; + this.OutputFormat = outputFormat; + this.ProresProfile = proresProfile; this.Model = model; } diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1OutputFormat.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1OutputFormat.g.cs new file mode 100644 index 00000000..6d99c613 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1OutputFormat.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output. + /// + public enum CreateVideoToVideoRequestVariant1OutputFormat + { + /// + /// + /// + Mp4, + /// + /// + /// + PngSequence, + /// + /// + /// + Prores, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateVideoToVideoRequestVariant1OutputFormatExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateVideoToVideoRequestVariant1OutputFormat value) + { + return value switch + { + CreateVideoToVideoRequestVariant1OutputFormat.Mp4 => "mp4", + CreateVideoToVideoRequestVariant1OutputFormat.PngSequence => "png_sequence", + CreateVideoToVideoRequestVariant1OutputFormat.Prores => "prores", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateVideoToVideoRequestVariant1OutputFormat? ToEnum(string value) + { + return value switch + { + "mp4" => CreateVideoToVideoRequestVariant1OutputFormat.Mp4, + "png_sequence" => CreateVideoToVideoRequestVariant1OutputFormat.PngSequence, + "prores" => CreateVideoToVideoRequestVariant1OutputFormat.Prores, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1ProresProfile.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1ProresProfile.g.cs new file mode 100644 index 00000000..98fec63d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoRequestVariant1ProresProfile.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`. + /// + public enum CreateVideoToVideoRequestVariant1ProresProfile + { + /// + /// + /// + x422, + /// + /// + /// + x422Hq, + /// + /// + /// + x422Lt, + /// + /// + /// + x422Proxy, + /// + /// + /// + x4444, + /// + /// + /// + x4444Xq, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateVideoToVideoRequestVariant1ProresProfileExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateVideoToVideoRequestVariant1ProresProfile value) + { + return value switch + { + CreateVideoToVideoRequestVariant1ProresProfile.x422 => "422", + CreateVideoToVideoRequestVariant1ProresProfile.x422Hq => "422 HQ", + CreateVideoToVideoRequestVariant1ProresProfile.x422Lt => "422 LT", + CreateVideoToVideoRequestVariant1ProresProfile.x422Proxy => "422 Proxy", + CreateVideoToVideoRequestVariant1ProresProfile.x4444 => "4444", + CreateVideoToVideoRequestVariant1ProresProfile.x4444Xq => "4444 XQ", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateVideoToVideoRequestVariant1ProresProfile? ToEnum(string value) + { + return value switch + { + "422" => CreateVideoToVideoRequestVariant1ProresProfile.x422, + "422 HQ" => CreateVideoToVideoRequestVariant1ProresProfile.x422Hq, + "422 LT" => CreateVideoToVideoRequestVariant1ProresProfile.x422Lt, + "422 Proxy" => CreateVideoToVideoRequestVariant1ProresProfile.x422Proxy, + "4444" => CreateVideoToVideoRequestVariant1ProresProfile.x4444, + "4444 XQ" => CreateVideoToVideoRequestVariant1ProresProfile.x4444Xq, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse.g.cs index b4af2262..d908bda9 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateVideoToVideoResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateVideoToVideoResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateVideoToVideoResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVideoToVideoResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateVideoToVideoResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse2.g.cs index cf81b47a..df49b570 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateVideoToVideoResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateVideoToVideoResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVideoToVideoResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.Json.g.cs new file mode 100644 index 00000000..d529208e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoResponse3 + { + /// + /// 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.CreateVideoToVideoResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoResponse3), + jsonSerializerContext) as global::Runway.CreateVideoToVideoResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoResponse3? 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.CreateVideoToVideoResponse3? 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.CreateVideoToVideoResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoResponse3; + } + + /// + /// 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.CreateVideoToVideoResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.g.cs new file mode 100644 index 00000000..6c3e08f2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..f5cc3938 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoResponseEstimatedCost + { + /// + /// 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.CreateVideoToVideoResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateVideoToVideoResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoResponseEstimatedCost? 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.CreateVideoToVideoResponseEstimatedCost? 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.CreateVideoToVideoResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoResponseEstimatedCost; + } + + /// + /// 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.CreateVideoToVideoResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.g.cs new file mode 100644 index 00000000..86735580 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateVideoToVideoResponseEstimatedCost + { + /// + /// 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 CreateVideoToVideoResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.Json.g.cs new file mode 100644 index 00000000..a5cf5419 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoResponseIssue + { + /// + /// 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.CreateVideoToVideoResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoResponseIssue), + jsonSerializerContext) as global::Runway.CreateVideoToVideoResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoResponseIssue? 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.CreateVideoToVideoResponseIssue? 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.CreateVideoToVideoResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoResponseIssue; + } + + /// + /// 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.CreateVideoToVideoResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.g.cs new file mode 100644 index 00000000..d2cc9125 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoToVideoResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoToVideoResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.Json.g.cs new file mode 100644 index 00000000..15edae5f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoToVideoResponseIssue2 + { + /// + /// 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.CreateVideoToVideoResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoToVideoResponseIssue2), + jsonSerializerContext) as global::Runway.CreateVideoToVideoResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoToVideoResponseIssue2? 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.CreateVideoToVideoResponseIssue2? 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.CreateVideoToVideoResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoToVideoResponseIssue2; + } + + /// + /// 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.CreateVideoToVideoResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.g.cs new file mode 100644 index 00000000..50808303 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoToVideoResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoToVideoResponseIssue2 + { + + /// + /// 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.CreateVideoUpscaleResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse.g.cs index 38c01a1c..cd00fe7c 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateVideoUpscaleResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateVideoUpscaleResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateVideoUpscaleResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVideoUpscaleResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateVideoUpscaleResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse2.g.cs index 601b69a9..1bb7f1f5 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateVideoUpscaleResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateVideoUpscaleResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVideoUpscaleResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.Json.g.cs new file mode 100644 index 00000000..c566bd1e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoUpscaleResponse3 + { + /// + /// 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.CreateVideoUpscaleResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoUpscaleResponse3), + jsonSerializerContext) as global::Runway.CreateVideoUpscaleResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoUpscaleResponse3? 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.CreateVideoUpscaleResponse3? 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.CreateVideoUpscaleResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoUpscaleResponse3; + } + + /// + /// 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.CreateVideoUpscaleResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.g.cs new file mode 100644 index 00000000..f9ccb8cf --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoUpscaleResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoUpscaleResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoUpscaleResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..b6e13504 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoUpscaleResponseEstimatedCost + { + /// + /// 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.CreateVideoUpscaleResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoUpscaleResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateVideoUpscaleResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoUpscaleResponseEstimatedCost? 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.CreateVideoUpscaleResponseEstimatedCost? 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.CreateVideoUpscaleResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoUpscaleResponseEstimatedCost; + } + + /// + /// 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.CreateVideoUpscaleResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.g.cs new file mode 100644 index 00000000..9fdc6900 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateVideoUpscaleResponseEstimatedCost + { + /// + /// 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 CreateVideoUpscaleResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoUpscaleResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.Json.g.cs new file mode 100644 index 00000000..e3baa948 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoUpscaleResponseIssue + { + /// + /// 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.CreateVideoUpscaleResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoUpscaleResponseIssue), + jsonSerializerContext) as global::Runway.CreateVideoUpscaleResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoUpscaleResponseIssue? 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.CreateVideoUpscaleResponseIssue? 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.CreateVideoUpscaleResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoUpscaleResponseIssue; + } + + /// + /// 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.CreateVideoUpscaleResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.g.cs new file mode 100644 index 00000000..33be179f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoUpscaleResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVideoUpscaleResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVideoUpscaleResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.Json.g.cs new file mode 100644 index 00000000..b3da2056 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVideoUpscaleResponseIssue2 + { + /// + /// 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.CreateVideoUpscaleResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVideoUpscaleResponseIssue2), + jsonSerializerContext) as global::Runway.CreateVideoUpscaleResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVideoUpscaleResponseIssue2? 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.CreateVideoUpscaleResponseIssue2? 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.CreateVideoUpscaleResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVideoUpscaleResponseIssue2; + } + + /// + /// 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.CreateVideoUpscaleResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.g.cs new file mode 100644 index 00000000..82625426 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVideoUpscaleResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVideoUpscaleResponseIssue2 + { + + /// + /// 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.CreateVoiceDubbingResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse.g.cs index 747797e6..dc59e133 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateVoiceDubbingResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateVoiceDubbingResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateVoiceDubbingResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVoiceDubbingResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateVoiceDubbingResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse2.g.cs index 858cbc0b..1e94c04e 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateVoiceDubbingResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateVoiceDubbingResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVoiceDubbingResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.Json.g.cs new file mode 100644 index 00000000..868682f7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceDubbingResponse3 + { + /// + /// 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.CreateVoiceDubbingResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceDubbingResponse3), + jsonSerializerContext) as global::Runway.CreateVoiceDubbingResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceDubbingResponse3? 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.CreateVoiceDubbingResponse3? 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.CreateVoiceDubbingResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceDubbingResponse3; + } + + /// + /// 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.CreateVoiceDubbingResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.g.cs new file mode 100644 index 00000000..445a5c5f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVoiceDubbingResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVoiceDubbingResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVoiceDubbingResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..ac38b5ff --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceDubbingResponseEstimatedCost + { + /// + /// 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.CreateVoiceDubbingResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceDubbingResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateVoiceDubbingResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceDubbingResponseEstimatedCost? 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.CreateVoiceDubbingResponseEstimatedCost? 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.CreateVoiceDubbingResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceDubbingResponseEstimatedCost; + } + + /// + /// 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.CreateVoiceDubbingResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.g.cs new file mode 100644 index 00000000..9c99714a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateVoiceDubbingResponseEstimatedCost + { + /// + /// 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 CreateVoiceDubbingResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVoiceDubbingResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.Json.g.cs new file mode 100644 index 00000000..52fdb16b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceDubbingResponseIssue + { + /// + /// 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.CreateVoiceDubbingResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceDubbingResponseIssue), + jsonSerializerContext) as global::Runway.CreateVoiceDubbingResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceDubbingResponseIssue? 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.CreateVoiceDubbingResponseIssue? 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.CreateVoiceDubbingResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceDubbingResponseIssue; + } + + /// + /// 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.CreateVoiceDubbingResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.g.cs new file mode 100644 index 00000000..6850dbed --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVoiceDubbingResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVoiceDubbingResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVoiceDubbingResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.Json.g.cs new file mode 100644 index 00000000..af86cdf9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceDubbingResponseIssue2 + { + /// + /// 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.CreateVoiceDubbingResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceDubbingResponseIssue2), + jsonSerializerContext) as global::Runway.CreateVoiceDubbingResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceDubbingResponseIssue2? 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.CreateVoiceDubbingResponseIssue2? 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.CreateVoiceDubbingResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceDubbingResponseIssue2; + } + + /// + /// 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.CreateVoiceDubbingResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.g.cs new file mode 100644 index 00000000..cc29a285 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceDubbingResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVoiceDubbingResponseIssue2 + { + + /// + /// 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.CreateVoiceIsolationResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse.g.cs index de955f8e..39435f39 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse.g.cs @@ -15,6 +15,13 @@ public sealed partial class CreateVoiceIsolationResponse [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Guid Id { get; set; } + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateVoiceIsolationResponseEstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -27,13 +34,18 @@ public sealed partial class CreateVoiceIsolationResponse /// /// The ID of the task that was created. Use this to retrieve the task later. /// + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVoiceIsolationResponse( - global::System.Guid id) + global::System.Guid id, + global::Runway.CreateVoiceIsolationResponseEstimatedCost estimatedCost) { this.Id = id; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse2.g.cs index b092c1c9..4f0de65d 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse2.g.cs @@ -9,12 +9,24 @@ namespace Runway public sealed partial class CreateVoiceIsolationResponse2 { /// - /// + /// A message describing why the request was rejected. /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] [global::System.Text.Json.Serialization.JsonRequired] public required string Error { get; set; } + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("issues")] + public global::System.Collections.Generic.IList? Issues { get; set; } + + /// + /// A link to the public API documentation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("docUrl")] + public string? DocUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -24,14 +36,26 @@ public sealed partial class CreateVoiceIsolationResponse2 /// /// Initializes a new instance of the class. /// - /// + /// + /// A message describing why the request was rejected. + /// + /// + /// Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s. + /// + /// + /// A link to the public API documentation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateVoiceIsolationResponse2( - string error) + string error, + global::System.Collections.Generic.IList? issues, + string? docUrl) { this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Issues = issues; + this.DocUrl = docUrl; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.Json.g.cs new file mode 100644 index 00000000..9f884f44 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceIsolationResponse3 + { + /// + /// 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.CreateVoiceIsolationResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceIsolationResponse3), + jsonSerializerContext) as global::Runway.CreateVoiceIsolationResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceIsolationResponse3? 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.CreateVoiceIsolationResponse3? 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.CreateVoiceIsolationResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceIsolationResponse3; + } + + /// + /// 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.CreateVoiceIsolationResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.g.cs new file mode 100644 index 00000000..865c5163 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVoiceIsolationResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVoiceIsolationResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVoiceIsolationResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.Json.g.cs new file mode 100644 index 00000000..f1f7cf86 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceIsolationResponseEstimatedCost + { + /// + /// 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.CreateVoiceIsolationResponseEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceIsolationResponseEstimatedCost), + jsonSerializerContext) as global::Runway.CreateVoiceIsolationResponseEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceIsolationResponseEstimatedCost? 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.CreateVoiceIsolationResponseEstimatedCost? 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.CreateVoiceIsolationResponseEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceIsolationResponseEstimatedCost; + } + + /// + /// 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.CreateVoiceIsolationResponseEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.g.cs new file mode 100644 index 00000000..e5cb7406 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The maximum credits this task may charge. The final amount may be lower after the task completes. + /// + public sealed partial class CreateVoiceIsolationResponseEstimatedCost + { + /// + /// 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 CreateVoiceIsolationResponseEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVoiceIsolationResponseEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.Json.g.cs new file mode 100644 index 00000000..3d783f79 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceIsolationResponseIssue + { + /// + /// 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.CreateVoiceIsolationResponseIssue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceIsolationResponseIssue), + jsonSerializerContext) as global::Runway.CreateVoiceIsolationResponseIssue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceIsolationResponseIssue? 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.CreateVoiceIsolationResponseIssue? 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.CreateVoiceIsolationResponseIssue), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceIsolationResponseIssue; + } + + /// + /// 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.CreateVoiceIsolationResponseIssue.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.g.cs new file mode 100644 index 00000000..78e3c896 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVoiceIsolationResponseIssue + { + /// + /// A machine-readable issue code from request validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// The path to the invalid field in the request body or query. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Path { get; set; } + + /// + /// A human-readable description of the issue. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { 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 machine-readable issue code from request validation. + /// + /// + /// The path to the invalid field in the request body or query. + /// + /// + /// A human-readable description of the issue. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateVoiceIsolationResponseIssue( + string code, + global::System.Collections.Generic.IList> path, + string message) + { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateVoiceIsolationResponseIssue() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.Json.g.cs new file mode 100644 index 00000000..2a669d6e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateVoiceIsolationResponseIssue2 + { + /// + /// 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.CreateVoiceIsolationResponseIssue2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateVoiceIsolationResponseIssue2), + jsonSerializerContext) as global::Runway.CreateVoiceIsolationResponseIssue2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateVoiceIsolationResponseIssue2? 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.CreateVoiceIsolationResponseIssue2? 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.CreateVoiceIsolationResponseIssue2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateVoiceIsolationResponseIssue2; + } + + /// + /// 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.CreateVoiceIsolationResponseIssue2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.g.cs new file mode 100644 index 00000000..4ae035d9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateVoiceIsolationResponseIssue2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateVoiceIsolationResponseIssue2 + { + + /// + /// 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.GetAvatarsResponseAvatarFailed.g.cs b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarFailed.g.cs index 22fbd521..c8df02da 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarFailed.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarFailed.g.cs @@ -39,9 +39,9 @@ public sealed partial class GetAvatarsResponseAvatarFailed /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice13JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice14JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice13 Voice { get; set; } + public required global::Runway.Voice14 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -140,7 +140,7 @@ public GetAvatarsResponseAvatarFailed( global::System.Guid id, string name, string personality, - global::Runway.Voice13 voice, + global::Runway.Voice14 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarProcessing.g.cs b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarProcessing.g.cs index 7c660859..2f6dde8f 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarProcessing.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarProcessing.g.cs @@ -39,9 +39,9 @@ public sealed partial class GetAvatarsResponseAvatarProcessing /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice11JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice12JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice11 Voice { get; set; } + public required global::Runway.Voice12 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public GetAvatarsResponseAvatarProcessing( global::System.Guid id, string name, string personality, - global::Runway.Voice11 voice, + global::Runway.Voice12 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarReady.g.cs b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarReady.g.cs index e007b4f8..c77d7f5c 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarReady.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseAvatarReady.g.cs @@ -39,9 +39,9 @@ public sealed partial class GetAvatarsResponseAvatarReady /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice12JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice13JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice12 Voice { get; set; } + public required global::Runway.Voice13 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public GetAvatarsResponseAvatarReady( global::System.Guid id, string name, string personality, - global::Runway.Voice12 voice, + global::Runway.Voice13 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarFailed.g.cs b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarFailed.g.cs index 9f532d77..8760cae5 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarFailed.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarFailed.g.cs @@ -39,9 +39,9 @@ public sealed partial class GetAvatarsResponseDataItemAvatarFailed /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice7JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice8JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice7 Voice { get; set; } + public required global::Runway.Voice8 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -140,7 +140,7 @@ public GetAvatarsResponseDataItemAvatarFailed( global::System.Guid id, string name, string personality, - global::Runway.Voice7 voice, + global::Runway.Voice8 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarProcessing.g.cs b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarProcessing.g.cs index 8904d6fa..b765927d 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarProcessing.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarProcessing.g.cs @@ -39,9 +39,9 @@ public sealed partial class GetAvatarsResponseDataItemAvatarProcessing /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice5JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice6JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice5 Voice { get; set; } + public required global::Runway.Voice6 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public GetAvatarsResponseDataItemAvatarProcessing( global::System.Guid id, string name, string personality, - global::Runway.Voice5 voice, + global::Runway.Voice6 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarReady.g.cs b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarReady.g.cs index af3d1d1c..46d0b816 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarReady.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetAvatarsResponseDataItemAvatarReady.g.cs @@ -39,9 +39,9 @@ public sealed partial class GetAvatarsResponseDataItemAvatarReady /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice6JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice7JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice6 Voice { get; set; } + public required global::Runway.Voice7 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public GetAvatarsResponseDataItemAvatarReady( global::System.Guid id, string name, string personality, - global::Runway.Voice6 voice, + global::Runway.Voice7 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.Json.g.cs new file mode 100644 index 00000000..a7984a60 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponse + { + /// + /// 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.GetOrganizationWebappAuditLogsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponse), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponse? 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.GetOrganizationWebappAuditLogsResponse? 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.GetOrganizationWebappAuditLogsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponse; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.g.cs new file mode 100644 index 00000000..c1b99866 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponse + { + /// + /// 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 GetOrganizationWebappAuditLogsResponse( + 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 GetOrganizationWebappAuditLogsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.Json.g.cs new file mode 100644 index 00000000..96cb8f27 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponse2 + { + /// + /// 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.GetOrganizationWebappAuditLogsResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponse2), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponse2? 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.GetOrganizationWebappAuditLogsResponse2? 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.GetOrganizationWebappAuditLogsResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponse2; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.g.cs new file mode 100644 index 00000000..20718915 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse2.g.cs @@ -0,0 +1,198 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponse2 + { + /// + /// Unique identifier of the entry. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("eventId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid EventId { get; set; } + + /// + /// When the action occurred. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime Timestamp { get; set; } + + /// + /// The action performed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseActionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetOrganizationWebappAuditLogsResponseAction Action { get; set; } + + /// + /// Username of the user who performed the action. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorUsername")] + public string? ActorUsername { get; set; } + + /// + /// Email of the user who performed the action. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorEmail")] + public string? ActorEmail { get; set; } + + /// + /// Whether the acting user has since been deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorDeleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool ActorDeleted { get; set; } + + /// + /// ID of the owning workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int WorkspaceId { get; set; } + + /// + /// Name of the owning workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceName { get; set; } + + /// + /// Action-specific details. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetOrganizationWebappAuditLogsResponseMetadata Metadata { get; set; } + + /// + /// Type of the affected resource, if any. Currently one of `account_link`, `agent_custom_skill`, `asset`, `brand_kit`, `generation`, `invite_link`, `membership`, `organization`, `permission`, `promotion`, `session`, `shared_asset`, `sso_config`, `sso_domain_registration`, `subscription`, `team_settings`, `user`, `user_group`, `video_project`, `workspace`, or `workspace_tag`. New types may be added over time, so treat this as an open set. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceType")] + public string? ResourceType { get; set; } + + /// + /// ID of the affected resource, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resourceId")] + public string? ResourceId { get; set; } + + /// + /// IP address of the client that performed the action. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("clientIpAddress")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ClientIpAddress { get; set; } + + /// + /// User-Agent header of the client request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("userAgent")] + public string? UserAgent { get; set; } + + /// + /// Request ID for correlation with other logs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requestId")] + public string? RequestId { 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. + /// + /// + /// Unique identifier of the entry. + /// + /// + /// When the action occurred. + /// + /// + /// The action performed. + /// + /// + /// Whether the acting user has since been deleted. + /// + /// + /// ID of the owning workspace. + /// + /// + /// Name of the owning workspace. + /// + /// + /// Action-specific details. + /// + /// + /// IP address of the client that performed the action. + /// + /// + /// Username of the user who performed the action. + /// + /// + /// Email of the user who performed the action. + /// + /// + /// Type of the affected resource, if any. Currently one of `account_link`, `agent_custom_skill`, `asset`, `brand_kit`, `generation`, `invite_link`, `membership`, `organization`, `permission`, `promotion`, `session`, `shared_asset`, `sso_config`, `sso_domain_registration`, `subscription`, `team_settings`, `user`, `user_group`, `video_project`, `workspace`, or `workspace_tag`. New types may be added over time, so treat this as an open set. + /// + /// + /// ID of the affected resource, if any. + /// + /// + /// User-Agent header of the client request. + /// + /// + /// Request ID for correlation with other logs. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetOrganizationWebappAuditLogsResponse2( + global::System.Guid eventId, + global::System.DateTime timestamp, + global::Runway.GetOrganizationWebappAuditLogsResponseAction action, + bool actorDeleted, + int workspaceId, + string workspaceName, + global::Runway.GetOrganizationWebappAuditLogsResponseMetadata metadata, + string clientIpAddress, + string? actorUsername, + string? actorEmail, + string? resourceType, + string? resourceId, + string? userAgent, + string? requestId) + { + this.EventId = eventId; + this.Timestamp = timestamp; + this.Action = action; + this.ActorUsername = actorUsername; + this.ActorEmail = actorEmail; + this.ActorDeleted = actorDeleted; + this.WorkspaceId = workspaceId; + this.WorkspaceName = workspaceName ?? throw new global::System.ArgumentNullException(nameof(workspaceName)); + this.Metadata = metadata ?? throw new global::System.ArgumentNullException(nameof(metadata)); + this.ResourceType = resourceType; + this.ResourceId = resourceId; + this.ClientIpAddress = clientIpAddress ?? throw new global::System.ArgumentNullException(nameof(clientIpAddress)); + this.UserAgent = userAgent; + this.RequestId = requestId; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationWebappAuditLogsResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.Json.g.cs new file mode 100644 index 00000000..0dac01ff --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponse3 + { + /// + /// 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.GetOrganizationWebappAuditLogsResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponse3), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponse3? 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.GetOrganizationWebappAuditLogsResponse3? 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.GetOrganizationWebappAuditLogsResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponse3; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.g.cs new file mode 100644 index 00000000..569062e2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponse3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetOrganizationWebappAuditLogsResponse3( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationWebappAuditLogsResponse3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseAction.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseAction.g.cs new file mode 100644 index 00000000..79b9e08c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseAction.g.cs @@ -0,0 +1,459 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The action performed. + /// + public enum GetOrganizationWebappAuditLogsResponseAction + { + /// + /// + /// + AccountLinkCreated, + /// + /// + /// + AccountLinkDeleted, + /// + /// + /// + AgentConnectorAssetExported, + /// + /// + /// + AgentConnectorConnected, + /// + /// + /// + AgentConnectorDisconnected, + /// + /// + /// + AgentConnectorLinkTokenCreated, + /// + /// + /// + AgentConnectorSessionDisabled, + /// + /// + /// + AgentConnectorSessionEnabled, + /// + /// + /// + AgentCustomSkillCreated, + /// + /// + /// + AgentCustomSkillDeleted, + /// + /// + /// + AgentCustomSkillShared, + /// + /// + /// + AgentCustomSkillUnshared, + /// + /// + /// + AgentSessionShared, + /// + /// + /// + AgentSessionUnshared, + /// + /// + /// + AssetCreated, + /// + /// + /// + AssetDeleted, + /// + /// + /// + AssetDownloaded, + /// + /// + /// + AssetShared, + /// + /// + /// + AssetUnshared, + /// + /// + /// + AssetUpdated, + /// + /// + /// + BrandKitShared, + /// + /// + /// + BrandKitUnshared, + /// + /// + /// + CreditsTransferred, + /// + /// + /// + EmailChangeRequested, + /// + /// + /// + EmailChanged, + /// + /// + /// + EnterpriseSpendCapEnforcementUpdated, + /// + /// + /// + GenerationCreated, + /// + /// + /// + InviteAccepted, + /// + /// + /// + InviteLinkToggled, + /// + /// + /// + MemberInvited, + /// + /// + /// + MemberRemoved, + /// + /// + /// + MemberRoleChanged, + /// + /// + /// + MeteredBillingConfigUpdated, + /// + /// + /// + MeteredBillingRefillTriggered, + /// + /// + /// + MeteredBillingRetryTriggered, + /// + /// + /// + OrganizationDisabledModelsUpdated, + /// + /// + /// + OrganizationSettingsUpdated, + /// + /// + /// + PasswordChanged, + /// + /// + /// + PermissionAccepted, + /// + /// + /// + PermissionGranted, + /// + /// + /// + PermissionRevoked, + /// + /// + /// + PermissionUpdated, + /// + /// + /// + SSOConfigCreated, + /// + /// + /// + SSODomainRegistrationCloned, + /// + /// + /// + SSOLogin, + /// + /// + /// + SSOUserAutoAddedToTeam, + /// + /// + /// + SSOUserProvisioned, + /// + /// + /// + SeatsTransferred, + /// + /// + /// + SessionShared, + /// + /// + /// + SessionUnshared, + /// + /// + /// + SubscriptionCancelled, + /// + /// + /// + SubscriptionPlanSwitched, + /// + /// + /// + TeamSettingsUpdated, + /// + /// + /// + UserAccountDeleted, + /// + /// + /// + UserGroupCreated, + /// + /// + /// + UserGroupDeleted, + /// + /// + /// + UserGroupMemberAdded, + /// + /// + /// + UserGroupMemberRemoved, + /// + /// + /// + UserLogin, + /// + /// + /// + UserRegistered, + /// + /// + /// + VideoProjectShared, + /// + /// + /// + VideoProjectUnshared, + /// + /// + /// + WorkspaceCountryLockUpdated, + /// + /// + /// + WorkspaceCreated, + /// + /// + /// + WorkspaceDeleted, + /// + /// + /// + WorkspaceTagAssigned, + /// + /// + /// + WorkspaceTagCreated, + /// + /// + /// + WorkspaceTagDeleted, + /// + /// + /// + WorkspaceTagUnassigned, + /// + /// + /// + WorkspaceTagUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetOrganizationWebappAuditLogsResponseActionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetOrganizationWebappAuditLogsResponseAction value) + { + return value switch + { + GetOrganizationWebappAuditLogsResponseAction.AccountLinkCreated => "AccountLinkCreated", + GetOrganizationWebappAuditLogsResponseAction.AccountLinkDeleted => "AccountLinkDeleted", + GetOrganizationWebappAuditLogsResponseAction.AgentConnectorAssetExported => "AgentConnectorAssetExported", + GetOrganizationWebappAuditLogsResponseAction.AgentConnectorConnected => "AgentConnectorConnected", + GetOrganizationWebappAuditLogsResponseAction.AgentConnectorDisconnected => "AgentConnectorDisconnected", + GetOrganizationWebappAuditLogsResponseAction.AgentConnectorLinkTokenCreated => "AgentConnectorLinkTokenCreated", + GetOrganizationWebappAuditLogsResponseAction.AgentConnectorSessionDisabled => "AgentConnectorSessionDisabled", + GetOrganizationWebappAuditLogsResponseAction.AgentConnectorSessionEnabled => "AgentConnectorSessionEnabled", + GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillCreated => "AgentCustomSkillCreated", + GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillDeleted => "AgentCustomSkillDeleted", + GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillShared => "AgentCustomSkillShared", + GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillUnshared => "AgentCustomSkillUnshared", + GetOrganizationWebappAuditLogsResponseAction.AgentSessionShared => "AgentSessionShared", + GetOrganizationWebappAuditLogsResponseAction.AgentSessionUnshared => "AgentSessionUnshared", + GetOrganizationWebappAuditLogsResponseAction.AssetCreated => "AssetCreated", + GetOrganizationWebappAuditLogsResponseAction.AssetDeleted => "AssetDeleted", + GetOrganizationWebappAuditLogsResponseAction.AssetDownloaded => "AssetDownloaded", + GetOrganizationWebappAuditLogsResponseAction.AssetShared => "AssetShared", + GetOrganizationWebappAuditLogsResponseAction.AssetUnshared => "AssetUnshared", + GetOrganizationWebappAuditLogsResponseAction.AssetUpdated => "AssetUpdated", + GetOrganizationWebappAuditLogsResponseAction.BrandKitShared => "BrandKitShared", + GetOrganizationWebappAuditLogsResponseAction.BrandKitUnshared => "BrandKitUnshared", + GetOrganizationWebappAuditLogsResponseAction.CreditsTransferred => "CreditsTransferred", + GetOrganizationWebappAuditLogsResponseAction.EmailChangeRequested => "EmailChangeRequested", + GetOrganizationWebappAuditLogsResponseAction.EmailChanged => "EmailChanged", + GetOrganizationWebappAuditLogsResponseAction.EnterpriseSpendCapEnforcementUpdated => "EnterpriseSpendCapEnforcementUpdated", + GetOrganizationWebappAuditLogsResponseAction.GenerationCreated => "GenerationCreated", + GetOrganizationWebappAuditLogsResponseAction.InviteAccepted => "InviteAccepted", + GetOrganizationWebappAuditLogsResponseAction.InviteLinkToggled => "InviteLinkToggled", + GetOrganizationWebappAuditLogsResponseAction.MemberInvited => "MemberInvited", + GetOrganizationWebappAuditLogsResponseAction.MemberRemoved => "MemberRemoved", + GetOrganizationWebappAuditLogsResponseAction.MemberRoleChanged => "MemberRoleChanged", + GetOrganizationWebappAuditLogsResponseAction.MeteredBillingConfigUpdated => "MeteredBillingConfigUpdated", + GetOrganizationWebappAuditLogsResponseAction.MeteredBillingRefillTriggered => "MeteredBillingRefillTriggered", + GetOrganizationWebappAuditLogsResponseAction.MeteredBillingRetryTriggered => "MeteredBillingRetryTriggered", + GetOrganizationWebappAuditLogsResponseAction.OrganizationDisabledModelsUpdated => "OrganizationDisabledModelsUpdated", + GetOrganizationWebappAuditLogsResponseAction.OrganizationSettingsUpdated => "OrganizationSettingsUpdated", + GetOrganizationWebappAuditLogsResponseAction.PasswordChanged => "PasswordChanged", + GetOrganizationWebappAuditLogsResponseAction.PermissionAccepted => "PermissionAccepted", + GetOrganizationWebappAuditLogsResponseAction.PermissionGranted => "PermissionGranted", + GetOrganizationWebappAuditLogsResponseAction.PermissionRevoked => "PermissionRevoked", + GetOrganizationWebappAuditLogsResponseAction.PermissionUpdated => "PermissionUpdated", + GetOrganizationWebappAuditLogsResponseAction.SSOConfigCreated => "SSOConfigCreated", + GetOrganizationWebappAuditLogsResponseAction.SSODomainRegistrationCloned => "SSODomainRegistrationCloned", + GetOrganizationWebappAuditLogsResponseAction.SSOLogin => "SSOLogin", + GetOrganizationWebappAuditLogsResponseAction.SSOUserAutoAddedToTeam => "SSOUserAutoAddedToTeam", + GetOrganizationWebappAuditLogsResponseAction.SSOUserProvisioned => "SSOUserProvisioned", + GetOrganizationWebappAuditLogsResponseAction.SeatsTransferred => "SeatsTransferred", + GetOrganizationWebappAuditLogsResponseAction.SessionShared => "SessionShared", + GetOrganizationWebappAuditLogsResponseAction.SessionUnshared => "SessionUnshared", + GetOrganizationWebappAuditLogsResponseAction.SubscriptionCancelled => "SubscriptionCancelled", + GetOrganizationWebappAuditLogsResponseAction.SubscriptionPlanSwitched => "SubscriptionPlanSwitched", + GetOrganizationWebappAuditLogsResponseAction.TeamSettingsUpdated => "TeamSettingsUpdated", + GetOrganizationWebappAuditLogsResponseAction.UserAccountDeleted => "UserAccountDeleted", + GetOrganizationWebappAuditLogsResponseAction.UserGroupCreated => "UserGroupCreated", + GetOrganizationWebappAuditLogsResponseAction.UserGroupDeleted => "UserGroupDeleted", + GetOrganizationWebappAuditLogsResponseAction.UserGroupMemberAdded => "UserGroupMemberAdded", + GetOrganizationWebappAuditLogsResponseAction.UserGroupMemberRemoved => "UserGroupMemberRemoved", + GetOrganizationWebappAuditLogsResponseAction.UserLogin => "UserLogin", + GetOrganizationWebappAuditLogsResponseAction.UserRegistered => "UserRegistered", + GetOrganizationWebappAuditLogsResponseAction.VideoProjectShared => "VideoProjectShared", + GetOrganizationWebappAuditLogsResponseAction.VideoProjectUnshared => "VideoProjectUnshared", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceCountryLockUpdated => "WorkspaceCountryLockUpdated", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceCreated => "WorkspaceCreated", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceDeleted => "WorkspaceDeleted", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagAssigned => "WorkspaceTagAssigned", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagCreated => "WorkspaceTagCreated", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagDeleted => "WorkspaceTagDeleted", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagUnassigned => "WorkspaceTagUnassigned", + GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagUpdated => "WorkspaceTagUpdated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetOrganizationWebappAuditLogsResponseAction? ToEnum(string value) + { + return value switch + { + "AccountLinkCreated" => GetOrganizationWebappAuditLogsResponseAction.AccountLinkCreated, + "AccountLinkDeleted" => GetOrganizationWebappAuditLogsResponseAction.AccountLinkDeleted, + "AgentConnectorAssetExported" => GetOrganizationWebappAuditLogsResponseAction.AgentConnectorAssetExported, + "AgentConnectorConnected" => GetOrganizationWebappAuditLogsResponseAction.AgentConnectorConnected, + "AgentConnectorDisconnected" => GetOrganizationWebappAuditLogsResponseAction.AgentConnectorDisconnected, + "AgentConnectorLinkTokenCreated" => GetOrganizationWebappAuditLogsResponseAction.AgentConnectorLinkTokenCreated, + "AgentConnectorSessionDisabled" => GetOrganizationWebappAuditLogsResponseAction.AgentConnectorSessionDisabled, + "AgentConnectorSessionEnabled" => GetOrganizationWebappAuditLogsResponseAction.AgentConnectorSessionEnabled, + "AgentCustomSkillCreated" => GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillCreated, + "AgentCustomSkillDeleted" => GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillDeleted, + "AgentCustomSkillShared" => GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillShared, + "AgentCustomSkillUnshared" => GetOrganizationWebappAuditLogsResponseAction.AgentCustomSkillUnshared, + "AgentSessionShared" => GetOrganizationWebappAuditLogsResponseAction.AgentSessionShared, + "AgentSessionUnshared" => GetOrganizationWebappAuditLogsResponseAction.AgentSessionUnshared, + "AssetCreated" => GetOrganizationWebappAuditLogsResponseAction.AssetCreated, + "AssetDeleted" => GetOrganizationWebappAuditLogsResponseAction.AssetDeleted, + "AssetDownloaded" => GetOrganizationWebappAuditLogsResponseAction.AssetDownloaded, + "AssetShared" => GetOrganizationWebappAuditLogsResponseAction.AssetShared, + "AssetUnshared" => GetOrganizationWebappAuditLogsResponseAction.AssetUnshared, + "AssetUpdated" => GetOrganizationWebappAuditLogsResponseAction.AssetUpdated, + "BrandKitShared" => GetOrganizationWebappAuditLogsResponseAction.BrandKitShared, + "BrandKitUnshared" => GetOrganizationWebappAuditLogsResponseAction.BrandKitUnshared, + "CreditsTransferred" => GetOrganizationWebappAuditLogsResponseAction.CreditsTransferred, + "EmailChangeRequested" => GetOrganizationWebappAuditLogsResponseAction.EmailChangeRequested, + "EmailChanged" => GetOrganizationWebappAuditLogsResponseAction.EmailChanged, + "EnterpriseSpendCapEnforcementUpdated" => GetOrganizationWebappAuditLogsResponseAction.EnterpriseSpendCapEnforcementUpdated, + "GenerationCreated" => GetOrganizationWebappAuditLogsResponseAction.GenerationCreated, + "InviteAccepted" => GetOrganizationWebappAuditLogsResponseAction.InviteAccepted, + "InviteLinkToggled" => GetOrganizationWebappAuditLogsResponseAction.InviteLinkToggled, + "MemberInvited" => GetOrganizationWebappAuditLogsResponseAction.MemberInvited, + "MemberRemoved" => GetOrganizationWebappAuditLogsResponseAction.MemberRemoved, + "MemberRoleChanged" => GetOrganizationWebappAuditLogsResponseAction.MemberRoleChanged, + "MeteredBillingConfigUpdated" => GetOrganizationWebappAuditLogsResponseAction.MeteredBillingConfigUpdated, + "MeteredBillingRefillTriggered" => GetOrganizationWebappAuditLogsResponseAction.MeteredBillingRefillTriggered, + "MeteredBillingRetryTriggered" => GetOrganizationWebappAuditLogsResponseAction.MeteredBillingRetryTriggered, + "OrganizationDisabledModelsUpdated" => GetOrganizationWebappAuditLogsResponseAction.OrganizationDisabledModelsUpdated, + "OrganizationSettingsUpdated" => GetOrganizationWebappAuditLogsResponseAction.OrganizationSettingsUpdated, + "PasswordChanged" => GetOrganizationWebappAuditLogsResponseAction.PasswordChanged, + "PermissionAccepted" => GetOrganizationWebappAuditLogsResponseAction.PermissionAccepted, + "PermissionGranted" => GetOrganizationWebappAuditLogsResponseAction.PermissionGranted, + "PermissionRevoked" => GetOrganizationWebappAuditLogsResponseAction.PermissionRevoked, + "PermissionUpdated" => GetOrganizationWebappAuditLogsResponseAction.PermissionUpdated, + "SSOConfigCreated" => GetOrganizationWebappAuditLogsResponseAction.SSOConfigCreated, + "SSODomainRegistrationCloned" => GetOrganizationWebappAuditLogsResponseAction.SSODomainRegistrationCloned, + "SSOLogin" => GetOrganizationWebappAuditLogsResponseAction.SSOLogin, + "SSOUserAutoAddedToTeam" => GetOrganizationWebappAuditLogsResponseAction.SSOUserAutoAddedToTeam, + "SSOUserProvisioned" => GetOrganizationWebappAuditLogsResponseAction.SSOUserProvisioned, + "SeatsTransferred" => GetOrganizationWebappAuditLogsResponseAction.SeatsTransferred, + "SessionShared" => GetOrganizationWebappAuditLogsResponseAction.SessionShared, + "SessionUnshared" => GetOrganizationWebappAuditLogsResponseAction.SessionUnshared, + "SubscriptionCancelled" => GetOrganizationWebappAuditLogsResponseAction.SubscriptionCancelled, + "SubscriptionPlanSwitched" => GetOrganizationWebappAuditLogsResponseAction.SubscriptionPlanSwitched, + "TeamSettingsUpdated" => GetOrganizationWebappAuditLogsResponseAction.TeamSettingsUpdated, + "UserAccountDeleted" => GetOrganizationWebappAuditLogsResponseAction.UserAccountDeleted, + "UserGroupCreated" => GetOrganizationWebappAuditLogsResponseAction.UserGroupCreated, + "UserGroupDeleted" => GetOrganizationWebappAuditLogsResponseAction.UserGroupDeleted, + "UserGroupMemberAdded" => GetOrganizationWebappAuditLogsResponseAction.UserGroupMemberAdded, + "UserGroupMemberRemoved" => GetOrganizationWebappAuditLogsResponseAction.UserGroupMemberRemoved, + "UserLogin" => GetOrganizationWebappAuditLogsResponseAction.UserLogin, + "UserRegistered" => GetOrganizationWebappAuditLogsResponseAction.UserRegistered, + "VideoProjectShared" => GetOrganizationWebappAuditLogsResponseAction.VideoProjectShared, + "VideoProjectUnshared" => GetOrganizationWebappAuditLogsResponseAction.VideoProjectUnshared, + "WorkspaceCountryLockUpdated" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceCountryLockUpdated, + "WorkspaceCreated" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceCreated, + "WorkspaceDeleted" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceDeleted, + "WorkspaceTagAssigned" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagAssigned, + "WorkspaceTagCreated" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagCreated, + "WorkspaceTagDeleted" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagDeleted, + "WorkspaceTagUnassigned" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagUnassigned, + "WorkspaceTagUpdated" => GetOrganizationWebappAuditLogsResponseAction.WorkspaceTagUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.Json.g.cs new file mode 100644 index 00000000..b6de7081 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseActorEmail + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseActorEmail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseActorEmail), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseActorEmail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseActorEmail? 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.GetOrganizationWebappAuditLogsResponseActorEmail? 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.GetOrganizationWebappAuditLogsResponseActorEmail), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseActorEmail; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseActorEmail.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.g.cs new file mode 100644 index 00000000..fbda6f5d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorEmail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Email of the user who performed the action. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseActorEmail + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseActorUsername.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorUsername.Json.g.cs new file mode 100644 index 00000000..5b17cc21 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorUsername.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseActorUsername + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseActorUsername? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseActorUsername), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseActorUsername; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseActorUsername? 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.GetOrganizationWebappAuditLogsResponseActorUsername? 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.GetOrganizationWebappAuditLogsResponseActorUsername), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseActorUsername; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseActorUsername.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorUsername.g.cs new file mode 100644 index 00000000..a9570c67 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseActorUsername.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Username of the user who performed the action. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseActorUsername + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItem.Json.g.cs new file mode 100644 index 00000000..eac6d37d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseDataItem + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseDataItem), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseDataItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseDataItem? 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.GetOrganizationWebappAuditLogsResponseDataItem? 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.GetOrganizationWebappAuditLogsResponseDataItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseDataItem; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItem.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItem.g.cs new file mode 100644 index 00000000..b20b6628 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItem.g.cs @@ -0,0 +1,130 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseDataItem + { + /// + /// Unique identifier of the entry. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("eventId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid EventId { get; set; } + + /// + /// When the action occurred. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime Timestamp { get; set; } + + /// + /// The action performed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("action")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetOrganizationWebappAuditLogsResponseDataItemActionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction Action { get; set; } + + /// + /// Username of the user who performed the action. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorUsername")] + public string? ActorUsername { get; set; } + + /// + /// Email of the user who performed the action. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorEmail")] + public string? ActorEmail { get; set; } + + /// + /// Whether the acting user has since been deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("actorDeleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool ActorDeleted { get; set; } + + /// + /// ID of the owning workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int WorkspaceId { get; set; } + + /// + /// Name of the owning workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceName { 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. + /// + /// + /// Unique identifier of the entry. + /// + /// + /// When the action occurred. + /// + /// + /// The action performed. + /// + /// + /// Whether the acting user has since been deleted. + /// + /// + /// ID of the owning workspace. + /// + /// + /// Name of the owning workspace. + /// + /// + /// Username of the user who performed the action. + /// + /// + /// Email of the user who performed the action. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetOrganizationWebappAuditLogsResponseDataItem( + global::System.Guid eventId, + global::System.DateTime timestamp, + global::Runway.GetOrganizationWebappAuditLogsResponseDataItemAction action, + bool actorDeleted, + int workspaceId, + string workspaceName, + string? actorUsername, + string? actorEmail) + { + this.EventId = eventId; + this.Timestamp = timestamp; + this.Action = action; + this.ActorUsername = actorUsername; + this.ActorEmail = actorEmail; + this.ActorDeleted = actorDeleted; + this.WorkspaceId = workspaceId; + this.WorkspaceName = workspaceName ?? throw new global::System.ArgumentNullException(nameof(workspaceName)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationWebappAuditLogsResponseDataItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs new file mode 100644 index 00000000..53d76536 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemAction.g.cs @@ -0,0 +1,459 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The action performed. + /// + public enum GetOrganizationWebappAuditLogsResponseDataItemAction + { + /// + /// + /// + AccountLinkCreated, + /// + /// + /// + AccountLinkDeleted, + /// + /// + /// + AgentConnectorAssetExported, + /// + /// + /// + AgentConnectorConnected, + /// + /// + /// + AgentConnectorDisconnected, + /// + /// + /// + AgentConnectorLinkTokenCreated, + /// + /// + /// + AgentConnectorSessionDisabled, + /// + /// + /// + AgentConnectorSessionEnabled, + /// + /// + /// + AgentCustomSkillCreated, + /// + /// + /// + AgentCustomSkillDeleted, + /// + /// + /// + AgentCustomSkillShared, + /// + /// + /// + AgentCustomSkillUnshared, + /// + /// + /// + AgentSessionShared, + /// + /// + /// + AgentSessionUnshared, + /// + /// + /// + AssetCreated, + /// + /// + /// + AssetDeleted, + /// + /// + /// + AssetDownloaded, + /// + /// + /// + AssetShared, + /// + /// + /// + AssetUnshared, + /// + /// + /// + AssetUpdated, + /// + /// + /// + BrandKitShared, + /// + /// + /// + BrandKitUnshared, + /// + /// + /// + CreditsTransferred, + /// + /// + /// + EmailChangeRequested, + /// + /// + /// + EmailChanged, + /// + /// + /// + EnterpriseSpendCapEnforcementUpdated, + /// + /// + /// + GenerationCreated, + /// + /// + /// + InviteAccepted, + /// + /// + /// + InviteLinkToggled, + /// + /// + /// + MemberInvited, + /// + /// + /// + MemberRemoved, + /// + /// + /// + MemberRoleChanged, + /// + /// + /// + MeteredBillingConfigUpdated, + /// + /// + /// + MeteredBillingRefillTriggered, + /// + /// + /// + MeteredBillingRetryTriggered, + /// + /// + /// + OrganizationDisabledModelsUpdated, + /// + /// + /// + OrganizationSettingsUpdated, + /// + /// + /// + PasswordChanged, + /// + /// + /// + PermissionAccepted, + /// + /// + /// + PermissionGranted, + /// + /// + /// + PermissionRevoked, + /// + /// + /// + PermissionUpdated, + /// + /// + /// + SSOConfigCreated, + /// + /// + /// + SSODomainRegistrationCloned, + /// + /// + /// + SSOLogin, + /// + /// + /// + SSOUserAutoAddedToTeam, + /// + /// + /// + SSOUserProvisioned, + /// + /// + /// + SeatsTransferred, + /// + /// + /// + SessionShared, + /// + /// + /// + SessionUnshared, + /// + /// + /// + SubscriptionCancelled, + /// + /// + /// + SubscriptionPlanSwitched, + /// + /// + /// + TeamSettingsUpdated, + /// + /// + /// + UserAccountDeleted, + /// + /// + /// + UserGroupCreated, + /// + /// + /// + UserGroupDeleted, + /// + /// + /// + UserGroupMemberAdded, + /// + /// + /// + UserGroupMemberRemoved, + /// + /// + /// + UserLogin, + /// + /// + /// + UserRegistered, + /// + /// + /// + VideoProjectShared, + /// + /// + /// + VideoProjectUnshared, + /// + /// + /// + WorkspaceCountryLockUpdated, + /// + /// + /// + WorkspaceCreated, + /// + /// + /// + WorkspaceDeleted, + /// + /// + /// + WorkspaceTagAssigned, + /// + /// + /// + WorkspaceTagCreated, + /// + /// + /// + WorkspaceTagDeleted, + /// + /// + /// + WorkspaceTagUnassigned, + /// + /// + /// + WorkspaceTagUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetOrganizationWebappAuditLogsResponseDataItemActionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetOrganizationWebappAuditLogsResponseDataItemAction value) + { + return value switch + { + GetOrganizationWebappAuditLogsResponseDataItemAction.AccountLinkCreated => "AccountLinkCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.AccountLinkDeleted => "AccountLinkDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorAssetExported => "AgentConnectorAssetExported", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorConnected => "AgentConnectorConnected", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorDisconnected => "AgentConnectorDisconnected", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorLinkTokenCreated => "AgentConnectorLinkTokenCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorSessionDisabled => "AgentConnectorSessionDisabled", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorSessionEnabled => "AgentConnectorSessionEnabled", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillCreated => "AgentCustomSkillCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillDeleted => "AgentCustomSkillDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillShared => "AgentCustomSkillShared", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillUnshared => "AgentCustomSkillUnshared", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentSessionShared => "AgentSessionShared", + GetOrganizationWebappAuditLogsResponseDataItemAction.AgentSessionUnshared => "AgentSessionUnshared", + GetOrganizationWebappAuditLogsResponseDataItemAction.AssetCreated => "AssetCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.AssetDeleted => "AssetDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.AssetDownloaded => "AssetDownloaded", + GetOrganizationWebappAuditLogsResponseDataItemAction.AssetShared => "AssetShared", + GetOrganizationWebappAuditLogsResponseDataItemAction.AssetUnshared => "AssetUnshared", + GetOrganizationWebappAuditLogsResponseDataItemAction.AssetUpdated => "AssetUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.BrandKitShared => "BrandKitShared", + GetOrganizationWebappAuditLogsResponseDataItemAction.BrandKitUnshared => "BrandKitUnshared", + GetOrganizationWebappAuditLogsResponseDataItemAction.CreditsTransferred => "CreditsTransferred", + GetOrganizationWebappAuditLogsResponseDataItemAction.EmailChangeRequested => "EmailChangeRequested", + GetOrganizationWebappAuditLogsResponseDataItemAction.EmailChanged => "EmailChanged", + GetOrganizationWebappAuditLogsResponseDataItemAction.EnterpriseSpendCapEnforcementUpdated => "EnterpriseSpendCapEnforcementUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.GenerationCreated => "GenerationCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.InviteAccepted => "InviteAccepted", + GetOrganizationWebappAuditLogsResponseDataItemAction.InviteLinkToggled => "InviteLinkToggled", + GetOrganizationWebappAuditLogsResponseDataItemAction.MemberInvited => "MemberInvited", + GetOrganizationWebappAuditLogsResponseDataItemAction.MemberRemoved => "MemberRemoved", + GetOrganizationWebappAuditLogsResponseDataItemAction.MemberRoleChanged => "MemberRoleChanged", + GetOrganizationWebappAuditLogsResponseDataItemAction.MeteredBillingConfigUpdated => "MeteredBillingConfigUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.MeteredBillingRefillTriggered => "MeteredBillingRefillTriggered", + GetOrganizationWebappAuditLogsResponseDataItemAction.MeteredBillingRetryTriggered => "MeteredBillingRetryTriggered", + GetOrganizationWebappAuditLogsResponseDataItemAction.OrganizationDisabledModelsUpdated => "OrganizationDisabledModelsUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.OrganizationSettingsUpdated => "OrganizationSettingsUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.PasswordChanged => "PasswordChanged", + GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionAccepted => "PermissionAccepted", + GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionGranted => "PermissionGranted", + GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionRevoked => "PermissionRevoked", + GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionUpdated => "PermissionUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.SSOConfigCreated => "SSOConfigCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.SSODomainRegistrationCloned => "SSODomainRegistrationCloned", + GetOrganizationWebappAuditLogsResponseDataItemAction.SSOLogin => "SSOLogin", + GetOrganizationWebappAuditLogsResponseDataItemAction.SSOUserAutoAddedToTeam => "SSOUserAutoAddedToTeam", + GetOrganizationWebappAuditLogsResponseDataItemAction.SSOUserProvisioned => "SSOUserProvisioned", + GetOrganizationWebappAuditLogsResponseDataItemAction.SeatsTransferred => "SeatsTransferred", + GetOrganizationWebappAuditLogsResponseDataItemAction.SessionShared => "SessionShared", + GetOrganizationWebappAuditLogsResponseDataItemAction.SessionUnshared => "SessionUnshared", + GetOrganizationWebappAuditLogsResponseDataItemAction.SubscriptionCancelled => "SubscriptionCancelled", + GetOrganizationWebappAuditLogsResponseDataItemAction.SubscriptionPlanSwitched => "SubscriptionPlanSwitched", + GetOrganizationWebappAuditLogsResponseDataItemAction.TeamSettingsUpdated => "TeamSettingsUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserAccountDeleted => "UserAccountDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupCreated => "UserGroupCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupDeleted => "UserGroupDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupMemberAdded => "UserGroupMemberAdded", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupMemberRemoved => "UserGroupMemberRemoved", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserLogin => "UserLogin", + GetOrganizationWebappAuditLogsResponseDataItemAction.UserRegistered => "UserRegistered", + GetOrganizationWebappAuditLogsResponseDataItemAction.VideoProjectShared => "VideoProjectShared", + GetOrganizationWebappAuditLogsResponseDataItemAction.VideoProjectUnshared => "VideoProjectUnshared", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceCountryLockUpdated => "WorkspaceCountryLockUpdated", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceCreated => "WorkspaceCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceDeleted => "WorkspaceDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagAssigned => "WorkspaceTagAssigned", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagCreated => "WorkspaceTagCreated", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagDeleted => "WorkspaceTagDeleted", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagUnassigned => "WorkspaceTagUnassigned", + GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagUpdated => "WorkspaceTagUpdated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetOrganizationWebappAuditLogsResponseDataItemAction? ToEnum(string value) + { + return value switch + { + "AccountLinkCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.AccountLinkCreated, + "AccountLinkDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.AccountLinkDeleted, + "AgentConnectorAssetExported" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorAssetExported, + "AgentConnectorConnected" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorConnected, + "AgentConnectorDisconnected" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorDisconnected, + "AgentConnectorLinkTokenCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorLinkTokenCreated, + "AgentConnectorSessionDisabled" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorSessionDisabled, + "AgentConnectorSessionEnabled" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentConnectorSessionEnabled, + "AgentCustomSkillCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillCreated, + "AgentCustomSkillDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillDeleted, + "AgentCustomSkillShared" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillShared, + "AgentCustomSkillUnshared" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentCustomSkillUnshared, + "AgentSessionShared" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentSessionShared, + "AgentSessionUnshared" => GetOrganizationWebappAuditLogsResponseDataItemAction.AgentSessionUnshared, + "AssetCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.AssetCreated, + "AssetDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.AssetDeleted, + "AssetDownloaded" => GetOrganizationWebappAuditLogsResponseDataItemAction.AssetDownloaded, + "AssetShared" => GetOrganizationWebappAuditLogsResponseDataItemAction.AssetShared, + "AssetUnshared" => GetOrganizationWebappAuditLogsResponseDataItemAction.AssetUnshared, + "AssetUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.AssetUpdated, + "BrandKitShared" => GetOrganizationWebappAuditLogsResponseDataItemAction.BrandKitShared, + "BrandKitUnshared" => GetOrganizationWebappAuditLogsResponseDataItemAction.BrandKitUnshared, + "CreditsTransferred" => GetOrganizationWebappAuditLogsResponseDataItemAction.CreditsTransferred, + "EmailChangeRequested" => GetOrganizationWebappAuditLogsResponseDataItemAction.EmailChangeRequested, + "EmailChanged" => GetOrganizationWebappAuditLogsResponseDataItemAction.EmailChanged, + "EnterpriseSpendCapEnforcementUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.EnterpriseSpendCapEnforcementUpdated, + "GenerationCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.GenerationCreated, + "InviteAccepted" => GetOrganizationWebappAuditLogsResponseDataItemAction.InviteAccepted, + "InviteLinkToggled" => GetOrganizationWebappAuditLogsResponseDataItemAction.InviteLinkToggled, + "MemberInvited" => GetOrganizationWebappAuditLogsResponseDataItemAction.MemberInvited, + "MemberRemoved" => GetOrganizationWebappAuditLogsResponseDataItemAction.MemberRemoved, + "MemberRoleChanged" => GetOrganizationWebappAuditLogsResponseDataItemAction.MemberRoleChanged, + "MeteredBillingConfigUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.MeteredBillingConfigUpdated, + "MeteredBillingRefillTriggered" => GetOrganizationWebappAuditLogsResponseDataItemAction.MeteredBillingRefillTriggered, + "MeteredBillingRetryTriggered" => GetOrganizationWebappAuditLogsResponseDataItemAction.MeteredBillingRetryTriggered, + "OrganizationDisabledModelsUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.OrganizationDisabledModelsUpdated, + "OrganizationSettingsUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.OrganizationSettingsUpdated, + "PasswordChanged" => GetOrganizationWebappAuditLogsResponseDataItemAction.PasswordChanged, + "PermissionAccepted" => GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionAccepted, + "PermissionGranted" => GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionGranted, + "PermissionRevoked" => GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionRevoked, + "PermissionUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.PermissionUpdated, + "SSOConfigCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.SSOConfigCreated, + "SSODomainRegistrationCloned" => GetOrganizationWebappAuditLogsResponseDataItemAction.SSODomainRegistrationCloned, + "SSOLogin" => GetOrganizationWebappAuditLogsResponseDataItemAction.SSOLogin, + "SSOUserAutoAddedToTeam" => GetOrganizationWebappAuditLogsResponseDataItemAction.SSOUserAutoAddedToTeam, + "SSOUserProvisioned" => GetOrganizationWebappAuditLogsResponseDataItemAction.SSOUserProvisioned, + "SeatsTransferred" => GetOrganizationWebappAuditLogsResponseDataItemAction.SeatsTransferred, + "SessionShared" => GetOrganizationWebappAuditLogsResponseDataItemAction.SessionShared, + "SessionUnshared" => GetOrganizationWebappAuditLogsResponseDataItemAction.SessionUnshared, + "SubscriptionCancelled" => GetOrganizationWebappAuditLogsResponseDataItemAction.SubscriptionCancelled, + "SubscriptionPlanSwitched" => GetOrganizationWebappAuditLogsResponseDataItemAction.SubscriptionPlanSwitched, + "TeamSettingsUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.TeamSettingsUpdated, + "UserAccountDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserAccountDeleted, + "UserGroupCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupCreated, + "UserGroupDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupDeleted, + "UserGroupMemberAdded" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupMemberAdded, + "UserGroupMemberRemoved" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserGroupMemberRemoved, + "UserLogin" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserLogin, + "UserRegistered" => GetOrganizationWebappAuditLogsResponseDataItemAction.UserRegistered, + "VideoProjectShared" => GetOrganizationWebappAuditLogsResponseDataItemAction.VideoProjectShared, + "VideoProjectUnshared" => GetOrganizationWebappAuditLogsResponseDataItemAction.VideoProjectUnshared, + "WorkspaceCountryLockUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceCountryLockUpdated, + "WorkspaceCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceCreated, + "WorkspaceDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceDeleted, + "WorkspaceTagAssigned" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagAssigned, + "WorkspaceTagCreated" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagCreated, + "WorkspaceTagDeleted" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagDeleted, + "WorkspaceTagUnassigned" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagUnassigned, + "WorkspaceTagUpdated" => GetOrganizationWebappAuditLogsResponseDataItemAction.WorkspaceTagUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.Json.g.cs new file mode 100644 index 00000000..929e6498 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseDataItemActorEmail + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItemActorEmail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorEmail), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorEmail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorEmail? 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.GetOrganizationWebappAuditLogsResponseDataItemActorEmail? 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.GetOrganizationWebappAuditLogsResponseDataItemActorEmail), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorEmail; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.g.cs new file mode 100644 index 00000000..da113450 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorEmail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Email of the user who performed the action. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseDataItemActorEmail + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.Json.g.cs new file mode 100644 index 00000000..8f31ccac --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseDataItemActorUsername + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItemActorUsername? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorUsername), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorUsername; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorUsername? 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.GetOrganizationWebappAuditLogsResponseDataItemActorUsername? 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.GetOrganizationWebappAuditLogsResponseDataItemActorUsername), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseDataItemActorUsername; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.g.cs new file mode 100644 index 00000000..864b4b10 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseDataItemActorUsername.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Username of the user who performed the action. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseDataItemActorUsername + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadata.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadata.Json.g.cs new file mode 100644 index 00000000..ad9a3f93 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadata.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadata + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadata), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadata; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadata? 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.GetOrganizationWebappAuditLogsResponseMetadata? 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.GetOrganizationWebappAuditLogsResponseMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadata; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadata.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadata.g.cs new file mode 100644 index 00000000..43820fe9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadata.g.cs @@ -0,0 +1,296 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Action-specific details. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadata + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Workspace")] + public object? Workspace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Invited member")] + public object? Invited_member { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Removed member")] + public object? Removed_member { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Target member")] + public object? Target_member { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Member email")] + public object? Member_email { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Previous role")] + public object? Previous_role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("New role")] + public object? New_role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Role")] + public object? Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Login method")] + public object? Login_method { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Platform")] + public object? Platform { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Application")] + public object? Application { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Plan")] + public object? Plan { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Amount")] + public object? Amount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("New User")] + public object? New_User { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Group name")] + public object? Group_name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Model")] + public object? Model { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Operation")] + public object? Operation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Asset name")] + public object? Asset_name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Tag name")] + public object? Tag_name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Tag color")] + public object? Tag_color { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Workspace ID")] + public object? Workspace_ID { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Workspace name")] + public object? Workspace_name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Workspace picture")] + public object? Workspace_picture { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Workspace description")] + public object? Workspace_description { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Default task name template")] + public object? Default_task_name_template { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Shared with workspace")] + public object? Shared_with_workspace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Shared with projects")] + public object? Shared_with_projects { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Hard spend cap")] + public object? Hard_spend_cap { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("Spend cap")] + public object? Spend_cap { 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 GetOrganizationWebappAuditLogsResponseMetadata( + object? workspace, + object? invited_member, + object? removed_member, + object? target_member, + object? member_email, + object? previous_role, + object? new_role, + object? role, + object? login_method, + object? platform, + object? application, + object? plan, + object? amount, + object? new_User, + object? group_name, + object? model, + object? operation, + object? asset_name, + object? tag_name, + object? tag_color, + object? workspace_ID, + object? workspace_name, + object? workspace_picture, + object? workspace_description, + object? default_task_name_template, + object? shared_with_workspace, + object? shared_with_projects, + object? hard_spend_cap, + object? spend_cap) + { + this.Workspace = workspace; + this.Invited_member = invited_member; + this.Removed_member = removed_member; + this.Target_member = target_member; + this.Member_email = member_email; + this.Previous_role = previous_role; + this.New_role = new_role; + this.Role = role; + this.Login_method = login_method; + this.Platform = platform; + this.Application = application; + this.Plan = plan; + this.Amount = amount; + this.New_User = new_User; + this.Group_name = group_name; + this.Model = model; + this.Operation = operation; + this.Asset_name = asset_name; + this.Tag_name = tag_name; + this.Tag_color = tag_color; + this.Workspace_ID = workspace_ID; + this.Workspace_name = workspace_name; + this.Workspace_picture = workspace_picture; + this.Workspace_description = workspace_description; + this.Default_task_name_template = default_task_name_template; + this.Shared_with_workspace = shared_with_workspace; + this.Shared_with_projects = shared_with_projects; + this.Hard_spend_cap = hard_spend_cap; + this.Spend_cap = spend_cap; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationWebappAuditLogsResponseMetadata() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.Json.g.cs new file mode 100644 index 00000000..54c0a3ee --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataAmount + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataAmount? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAmount), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAmount; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAmount? 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.GetOrganizationWebappAuditLogsResponseMetadataAmount? 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.GetOrganizationWebappAuditLogsResponseMetadataAmount), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAmount; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataAmount.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.g.cs new file mode 100644 index 00000000..cfdeec1c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAmount.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataAmount + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataApplication.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataApplication.Json.g.cs new file mode 100644 index 00000000..545e8481 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataApplication.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataApplication + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataApplication? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataApplication), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataApplication; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataApplication? 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.GetOrganizationWebappAuditLogsResponseMetadataApplication? 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.GetOrganizationWebappAuditLogsResponseMetadataApplication), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataApplication; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataApplication.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataApplication.g.cs new file mode 100644 index 00000000..ced0affb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataApplication.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataApplication + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataAssetName.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAssetName.Json.g.cs new file mode 100644 index 00000000..295b5202 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAssetName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataAssetName + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataAssetName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAssetName), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAssetName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAssetName? 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.GetOrganizationWebappAuditLogsResponseMetadataAssetName? 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.GetOrganizationWebappAuditLogsResponseMetadataAssetName), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataAssetName; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataAssetName.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAssetName.g.cs new file mode 100644 index 00000000..06176f3c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataAssetName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataAssetName + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.Json.g.cs new file mode 100644 index 00000000..a806ed57 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate? 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.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate? 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.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.g.cs new file mode 100644 index 00000000..5923a60f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataDefaultTaskNameTemplate + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataGroupName.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataGroupName.Json.g.cs new file mode 100644 index 00000000..b47fef91 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataGroupName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataGroupName + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataGroupName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataGroupName), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataGroupName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataGroupName? 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.GetOrganizationWebappAuditLogsResponseMetadataGroupName? 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.GetOrganizationWebappAuditLogsResponseMetadataGroupName), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataGroupName; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataGroupName.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataGroupName.g.cs new file mode 100644 index 00000000..53090317 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataGroupName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataGroupName + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.Json.g.cs new file mode 100644 index 00000000..806c2a81 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap? 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.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap? 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.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.g.cs new file mode 100644 index 00000000..4379cfe0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataHardSpendCap + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.Json.g.cs new file mode 100644 index 00000000..3724bdcd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataInvitedMember + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember? 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.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember? 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.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.g.cs new file mode 100644 index 00000000..ef1572c6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataInvitedMember.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataInvitedMember + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.Json.g.cs new file mode 100644 index 00000000..25498384 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataLoginMethod + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod? 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.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod? 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.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.g.cs new file mode 100644 index 00000000..ab487978 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataLoginMethod.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataLoginMethod + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.Json.g.cs new file mode 100644 index 00000000..e48522a7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataMemberEmail + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail? 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.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail? 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.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.g.cs new file mode 100644 index 00000000..a782cb33 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataMemberEmail.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataMemberEmail + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataModel.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataModel.Json.g.cs new file mode 100644 index 00000000..5257c9fa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataModel.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataModel + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataModel), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataModel; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataModel? 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.GetOrganizationWebappAuditLogsResponseMetadataModel? 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.GetOrganizationWebappAuditLogsResponseMetadataModel), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataModel; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataModel.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataModel.g.cs new file mode 100644 index 00000000..2aee61e6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataModel.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataModel + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataNewRole.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewRole.Json.g.cs new file mode 100644 index 00000000..78df54e9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewRole.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataNewRole + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataNewRole? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewRole), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewRole; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewRole? 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.GetOrganizationWebappAuditLogsResponseMetadataNewRole? 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.GetOrganizationWebappAuditLogsResponseMetadataNewRole), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewRole; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataNewRole.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewRole.g.cs new file mode 100644 index 00000000..7349ba8c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewRole.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataNewRole + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataNewUser.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewUser.Json.g.cs new file mode 100644 index 00000000..4a73b543 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewUser.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataNewUser + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataNewUser? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewUser), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewUser; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewUser? 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.GetOrganizationWebappAuditLogsResponseMetadataNewUser? 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.GetOrganizationWebappAuditLogsResponseMetadataNewUser), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataNewUser; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataNewUser.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewUser.g.cs new file mode 100644 index 00000000..4f3f2fae --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataNewUser.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataNewUser + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataOperation.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataOperation.Json.g.cs new file mode 100644 index 00000000..332b7e2b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataOperation.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataOperation + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataOperation? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataOperation), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataOperation; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataOperation? 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.GetOrganizationWebappAuditLogsResponseMetadataOperation? 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.GetOrganizationWebappAuditLogsResponseMetadataOperation), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataOperation; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataOperation.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataOperation.g.cs new file mode 100644 index 00000000..02573e91 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataOperation.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataOperation + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPlan.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlan.Json.g.cs new file mode 100644 index 00000000..066cc7c1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlan.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataPlan + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPlan? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlan), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlan; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlan? 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.GetOrganizationWebappAuditLogsResponseMetadataPlan? 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.GetOrganizationWebappAuditLogsResponseMetadataPlan), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlan; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPlan.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlan.g.cs new file mode 100644 index 00000000..b1dd7176 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlan.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataPlan + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPlatform.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlatform.Json.g.cs new file mode 100644 index 00000000..97fa94b7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlatform.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataPlatform + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPlatform? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlatform), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlatform; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlatform? 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.GetOrganizationWebappAuditLogsResponseMetadataPlatform? 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.GetOrganizationWebappAuditLogsResponseMetadataPlatform), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPlatform; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPlatform.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlatform.g.cs new file mode 100644 index 00000000..3a6af77d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPlatform.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataPlatform + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.Json.g.cs new file mode 100644 index 00000000..f10d0200 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataPreviousRole + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole? 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.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole? 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.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.g.cs new file mode 100644 index 00000000..dbe2fac1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataPreviousRole.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataPreviousRole + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.Json.g.cs new file mode 100644 index 00000000..a0f0f757 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataRemovedMember + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember? 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.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember? 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.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.g.cs new file mode 100644 index 00000000..950ca416 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRemovedMember.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataRemovedMember + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataRole.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRole.Json.g.cs new file mode 100644 index 00000000..d91be343 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRole.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataRole + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataRole? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRole), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRole; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRole? 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.GetOrganizationWebappAuditLogsResponseMetadataRole? 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.GetOrganizationWebappAuditLogsResponseMetadataRole), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataRole; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataRole.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRole.g.cs new file mode 100644 index 00000000..cc8639dc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataRole.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataRole + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.Json.g.cs new file mode 100644 index 00000000..04e145d6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects? 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects? 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.g.cs new file mode 100644 index 00000000..3912e444 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataSharedWithProjects + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.Json.g.cs new file mode 100644 index 00000000..2d573281 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace? 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace? 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.g.cs new file mode 100644 index 00000000..9873bbed --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataSharedWithWorkspace + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.Json.g.cs new file mode 100644 index 00000000..9327363c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataSpendCap + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSpendCap? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSpendCap), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSpendCap; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSpendCap? 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.GetOrganizationWebappAuditLogsResponseMetadataSpendCap? 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.GetOrganizationWebappAuditLogsResponseMetadataSpendCap), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataSpendCap; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.g.cs new file mode 100644 index 00000000..05af2943 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataSpendCap.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataSpendCap + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTagColor.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagColor.Json.g.cs new file mode 100644 index 00000000..12061f50 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagColor.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataTagColor + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTagColor? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagColor), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagColor; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagColor? 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.GetOrganizationWebappAuditLogsResponseMetadataTagColor? 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.GetOrganizationWebappAuditLogsResponseMetadataTagColor), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagColor; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTagColor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagColor.g.cs new file mode 100644 index 00000000..9801cda9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagColor.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataTagColor + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTagName.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagName.Json.g.cs new file mode 100644 index 00000000..9564f17e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataTagName + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTagName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagName), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagName? 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.GetOrganizationWebappAuditLogsResponseMetadataTagName? 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.GetOrganizationWebappAuditLogsResponseMetadataTagName), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTagName; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTagName.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagName.g.cs new file mode 100644 index 00000000..f999b67c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTagName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataTagName + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.Json.g.cs new file mode 100644 index 00000000..0eac5099 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataTargetMember + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTargetMember? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTargetMember), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTargetMember; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTargetMember? 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.GetOrganizationWebappAuditLogsResponseMetadataTargetMember? 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.GetOrganizationWebappAuditLogsResponseMetadataTargetMember), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataTargetMember; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.g.cs new file mode 100644 index 00000000..11979b38 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataTargetMember.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataTargetMember + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.Json.g.cs new file mode 100644 index 00000000..354f5a77 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspace + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspace? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspace), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspace; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspace? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspace? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspace), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspace; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.g.cs new file mode 100644 index 00000000..d2cbace0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspace.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspace + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.Json.g.cs new file mode 100644 index 00000000..7ba77e72 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.g.cs new file mode 100644 index 00000000..d1c0fec4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspaceDescription + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.Json.g.cs new file mode 100644 index 00000000..20cedc4f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.g.cs new file mode 100644 index 00000000..665aec10 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspaceId + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.Json.g.cs new file mode 100644 index 00000000..e2f42c7d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.g.cs new file mode 100644 index 00000000..883ceaec --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspaceName + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.Json.g.cs new file mode 100644 index 00000000..a837686b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture? 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.g.cs new file mode 100644 index 00000000..85151153 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseMetadataWorkspacePicture + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseNextCursor.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseNextCursor.Json.g.cs new file mode 100644 index 00000000..8dc366fa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseNextCursor.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseNextCursor + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseNextCursor? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseNextCursor), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseNextCursor; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseNextCursor? 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.GetOrganizationWebappAuditLogsResponseNextCursor? 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.GetOrganizationWebappAuditLogsResponseNextCursor), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseNextCursor; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseNextCursor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseNextCursor.g.cs new file mode 100644 index 00000000..c3868cfa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseNextCursor.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 GetOrganizationWebappAuditLogsResponseNextCursor + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseRequestId.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseRequestId.Json.g.cs new file mode 100644 index 00000000..740e3441 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseRequestId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseRequestId + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseRequestId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseRequestId), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseRequestId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseRequestId? 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.GetOrganizationWebappAuditLogsResponseRequestId? 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.GetOrganizationWebappAuditLogsResponseRequestId), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseRequestId; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseRequestId.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseRequestId.g.cs new file mode 100644 index 00000000..18b1fc89 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseRequestId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Request ID for correlation with other logs. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseRequestId + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseResourceId.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceId.Json.g.cs new file mode 100644 index 00000000..07b130a0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseResourceId + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseResourceId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseResourceId), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseResourceId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseResourceId? 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.GetOrganizationWebappAuditLogsResponseResourceId? 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.GetOrganizationWebappAuditLogsResponseResourceId), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseResourceId; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseResourceId.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceId.g.cs new file mode 100644 index 00000000..4147cfcd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// ID of the affected resource, if any. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseResourceId + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseResourceType.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceType.Json.g.cs new file mode 100644 index 00000000..c07b5d04 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceType.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseResourceType + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseResourceType? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseResourceType), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseResourceType; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseResourceType? 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.GetOrganizationWebappAuditLogsResponseResourceType? 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.GetOrganizationWebappAuditLogsResponseResourceType), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseResourceType; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseResourceType.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceType.g.cs new file mode 100644 index 00000000..c2f5b73b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseResourceType.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Type of the affected resource, if any. Currently one of `account_link`, `agent_custom_skill`, `asset`, `brand_kit`, `generation`, `invite_link`, `membership`, `organization`, `permission`, `promotion`, `session`, `shared_asset`, `sso_config`, `sso_domain_registration`, `subscription`, `team_settings`, `user`, `user_group`, `video_project`, `workspace`, or `workspace_tag`. New types may be added over time, so treat this as an open set. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseResourceType + { + + /// + /// 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.GetOrganizationWebappAuditLogsResponseUserAgent.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseUserAgent.Json.g.cs new file mode 100644 index 00000000..3b847e51 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseUserAgent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappAuditLogsResponseUserAgent + { + /// + /// 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.GetOrganizationWebappAuditLogsResponseUserAgent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappAuditLogsResponseUserAgent), + jsonSerializerContext) as global::Runway.GetOrganizationWebappAuditLogsResponseUserAgent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappAuditLogsResponseUserAgent? 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.GetOrganizationWebappAuditLogsResponseUserAgent? 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.GetOrganizationWebappAuditLogsResponseUserAgent), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappAuditLogsResponseUserAgent; + } + + /// + /// 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.GetOrganizationWebappAuditLogsResponseUserAgent.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseUserAgent.g.cs new file mode 100644 index 00000000..55e75933 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappAuditLogsResponseUserAgent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// User-Agent header of the client request. + /// + public sealed partial class GetOrganizationWebappAuditLogsResponseUserAgent + { + + /// + /// 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.GetOrganizationWebappUsageResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponse.Json.g.cs new file mode 100644 index 00000000..a773a625 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappUsageResponse + { + /// + /// 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.GetOrganizationWebappUsageResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappUsageResponse), + jsonSerializerContext) as global::Runway.GetOrganizationWebappUsageResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappUsageResponse? 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.GetOrganizationWebappUsageResponse? 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.GetOrganizationWebappUsageResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappUsageResponse; + } + + /// + /// 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.GetOrganizationWebappUsageResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponse.g.cs new file mode 100644 index 00000000..d42e147c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponse.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappUsageResponse + { + /// + /// 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 GetOrganizationWebappUsageResponse( + 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 GetOrganizationWebappUsageResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.Json.g.cs new file mode 100644 index 00000000..51afe6a6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappUsageResponseDataItem + { + /// + /// 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.GetOrganizationWebappUsageResponseDataItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappUsageResponseDataItem), + jsonSerializerContext) as global::Runway.GetOrganizationWebappUsageResponseDataItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappUsageResponseDataItem? 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.GetOrganizationWebappUsageResponseDataItem? 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.GetOrganizationWebappUsageResponseDataItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappUsageResponseDataItem; + } + + /// + /// 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.GetOrganizationWebappUsageResponseDataItem.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.g.cs new file mode 100644 index 00000000..d5cf8d34 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItem.g.cs @@ -0,0 +1,120 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetOrganizationWebappUsageResponseDataItem + { + /// + /// When the generation was charged. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime Timestamp { get; set; } + + /// + /// Email of the user who generated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("email")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Email { get; set; } + + /// + /// ID of the owning workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int WorkspaceId { get; set; } + + /// + /// Name of the owning workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspaceName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string WorkspaceName { get; set; } + + /// + /// Model/task display name for the generation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Tool { get; set; } + + /// + /// Credits charged for this generation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Credits { get; set; } + + /// + /// Whether the row is a credit charge for a generation or a task refund (negative credits). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetOrganizationWebappUsageResponseDataItemTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetOrganizationWebappUsageResponseDataItemType Type { 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 the generation was charged. + /// + /// + /// Email of the user who generated. + /// + /// + /// ID of the owning workspace. + /// + /// + /// Name of the owning workspace. + /// + /// + /// Model/task display name for the generation. + /// + /// + /// Credits charged for this generation. + /// + /// + /// Whether the row is a credit charge for a generation or a task refund (negative credits). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetOrganizationWebappUsageResponseDataItem( + global::System.DateTime timestamp, + string email, + int workspaceId, + string workspaceName, + string tool, + double credits, + global::Runway.GetOrganizationWebappUsageResponseDataItemType type) + { + this.Timestamp = timestamp; + this.Email = email ?? throw new global::System.ArgumentNullException(nameof(email)); + this.WorkspaceId = workspaceId; + this.WorkspaceName = workspaceName ?? throw new global::System.ArgumentNullException(nameof(workspaceName)); + this.Tool = tool ?? throw new global::System.ArgumentNullException(nameof(tool)); + this.Credits = credits; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public GetOrganizationWebappUsageResponseDataItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItemType.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItemType.g.cs new file mode 100644 index 00000000..c73d0804 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseDataItemType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Whether the row is a credit charge for a generation or a task refund (negative credits). + /// + public enum GetOrganizationWebappUsageResponseDataItemType + { + /// + /// + /// + Charge, + /// + /// + /// + Refund, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetOrganizationWebappUsageResponseDataItemTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetOrganizationWebappUsageResponseDataItemType value) + { + return value switch + { + GetOrganizationWebappUsageResponseDataItemType.Charge => "charge", + GetOrganizationWebappUsageResponseDataItemType.Refund => "refund", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetOrganizationWebappUsageResponseDataItemType? ToEnum(string value) + { + return value switch + { + "charge" => GetOrganizationWebappUsageResponseDataItemType.Charge, + "refund" => GetOrganizationWebappUsageResponseDataItemType.Refund, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.Json.g.cs new file mode 100644 index 00000000..da638ba5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetOrganizationWebappUsageResponseNextCursor + { + /// + /// 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.GetOrganizationWebappUsageResponseNextCursor? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetOrganizationWebappUsageResponseNextCursor), + jsonSerializerContext) as global::Runway.GetOrganizationWebappUsageResponseNextCursor; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetOrganizationWebappUsageResponseNextCursor? 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.GetOrganizationWebappUsageResponseNextCursor? 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.GetOrganizationWebappUsageResponseNextCursor), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetOrganizationWebappUsageResponseNextCursor; + } + + /// + /// 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.GetOrganizationWebappUsageResponseNextCursor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.g.cs new file mode 100644 index 00000000..13044d31 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetOrganizationWebappUsageResponseNextCursor.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 GetOrganizationWebappUsageResponseNextCursor + { + + /// + /// 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.GetRoutersRequestsResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponse.Json.g.cs new file mode 100644 index 00000000..70fd112c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponse + { + /// + /// 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.GetRoutersRequestsResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponse), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponse? 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.GetRoutersRequestsResponse? 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.GetRoutersRequestsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponse; + } + + /// + /// 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.GetRoutersRequestsResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponse.g.cs new file mode 100644 index 00000000..c912168c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponse.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponse + { + /// + /// 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 GetRoutersRequestsResponse( + 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 GetRoutersRequestsResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.Json.g.cs new file mode 100644 index 00000000..c2db5790 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItem + { + /// + /// 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.GetRoutersRequestsResponseDataItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItem), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItem? 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.GetRoutersRequestsResponseDataItem? 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.GetRoutersRequestsResponseDataItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItem; + } + + /// + /// 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.GetRoutersRequestsResponseDataItem.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.g.cs new file mode 100644 index 00000000..f9fbd837 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItem.g.cs @@ -0,0 +1,160 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A recorded Model Router routing decision. + /// + public sealed partial class GetRoutersRequestsResponseDataItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requestId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RequestId { get; set; } + + /// + /// How the routing attempt ended: routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersRequestsResponseDataItemStatus Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + public string? Provider { get; set; } + + /// + /// Free-text explanation of the pick. Written by the ranker, so treat it as prose for humans and group on reasonCode instead. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? Reason { get; set; } + + /// + /// Why the model won: lowest_cost, best_latency, best_quality, only_eligible_model, or filter_order_fallback (ranking was unavailable, so hard-filter order stood). Null when the request never reached ranking. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasonCode")] + public global::Runway.GetRoutersRequestsResponseDataItemReasonCode2? ReasonCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCredits")] + public double? EstimatedCredits { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("taskId")] + public global::System.Guid? TaskId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// Ordered routing story: hard-filter stages with surviving model ids, a capacity step when concurrency limits affected the pool, then rank step when selection reached ranking. + /// + [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. + /// + /// + /// + /// + /// How the routing attempt ended: routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + /// + /// + /// Ordered routing story: hard-filter stages with surviving model ids, a capacity step when concurrency limits affected the pool, then rank step when selection reached ranking. + /// + /// + /// The filter(s) that reduced the eligible pool to zero. + /// + /// + /// + /// + /// Free-text explanation of the pick. Written by the ranker, so treat it as prose for humans and group on reasonCode instead. + /// + /// + /// Why the model won: lowest_cost, best_latency, best_quality, only_eligible_model, or filter_order_fallback (ranking was unavailable, so hard-filter order stood). Null when the request never reached ranking. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersRequestsResponseDataItem( + global::System.Guid id, + string requestId, + global::Runway.GetRoutersRequestsResponseDataItemStatus status, + global::System.DateTime createdAt, + global::System.Collections.Generic.IList pipeline, + global::System.Collections.Generic.IList emptiedBy, + string? model, + string? provider, + string? reason, + global::Runway.GetRoutersRequestsResponseDataItemReasonCode2? reasonCode, + double? estimatedCredits, + global::System.Guid? taskId) + { + this.Id = id; + this.RequestId = requestId ?? throw new global::System.ArgumentNullException(nameof(requestId)); + this.Status = status; + this.Model = model; + this.Provider = provider; + this.Reason = reason; + this.ReasonCode = reasonCode; + this.EstimatedCredits = estimatedCredits; + this.TaskId = taskId; + this.CreatedAt = createdAt; + 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 GetRoutersRequestsResponseDataItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs new file mode 100644 index 00000000..48372c1e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEmptiedByItem.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum GetRoutersRequestsResponseDataItemEmptiedByItem + { + /// + /// + /// + AllowDeny, + /// + /// + /// + Capability, + /// + /// + /// + InputSupport, + /// + /// + /// + Price, + /// + /// + /// + PromptLength, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersRequestsResponseDataItemEmptiedByItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersRequestsResponseDataItemEmptiedByItem value) + { + return value switch + { + GetRoutersRequestsResponseDataItemEmptiedByItem.AllowDeny => "allow_deny", + GetRoutersRequestsResponseDataItemEmptiedByItem.Capability => "capability", + GetRoutersRequestsResponseDataItemEmptiedByItem.InputSupport => "input_support", + GetRoutersRequestsResponseDataItemEmptiedByItem.Price => "price", + GetRoutersRequestsResponseDataItemEmptiedByItem.PromptLength => "prompt_length", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersRequestsResponseDataItemEmptiedByItem? ToEnum(string value) + { + return value switch + { + "allow_deny" => GetRoutersRequestsResponseDataItemEmptiedByItem.AllowDeny, + "capability" => GetRoutersRequestsResponseDataItemEmptiedByItem.Capability, + "input_support" => GetRoutersRequestsResponseDataItemEmptiedByItem.InputSupport, + "price" => GetRoutersRequestsResponseDataItemEmptiedByItem.Price, + "prompt_length" => GetRoutersRequestsResponseDataItemEmptiedByItem.PromptLength, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.Json.g.cs new file mode 100644 index 00000000..ab943cdf --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemEstimatedCredits + { + /// + /// 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.GetRoutersRequestsResponseDataItemEstimatedCredits? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemEstimatedCredits), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemEstimatedCredits; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemEstimatedCredits? 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.GetRoutersRequestsResponseDataItemEstimatedCredits? 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.GetRoutersRequestsResponseDataItemEstimatedCredits), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemEstimatedCredits; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemEstimatedCredits.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.g.cs new file mode 100644 index 00000000..41a761e6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemEstimatedCredits.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemEstimatedCredits + { + + /// + /// 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.GetRoutersRequestsResponseDataItemModel.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemModel.Json.g.cs new file mode 100644 index 00000000..4b357662 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemModel.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemModel + { + /// + /// 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.GetRoutersRequestsResponseDataItemModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemModel), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemModel; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemModel? 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.GetRoutersRequestsResponseDataItemModel? 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.GetRoutersRequestsResponseDataItemModel), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemModel; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemModel.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemModel.g.cs new file mode 100644 index 00000000..e99701cc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemModel.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemModel + { + + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.Json.g.cs new file mode 100644 index 00000000..3fe2b727 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemDiscriminator + { + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator? 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator? 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.g.cs new file mode 100644 index 00000000..3d26d195 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeJsonConverter))] + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? Type { 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 GetRoutersRequestsResponseDataItemPipelineItemDiscriminator( + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersRequestsResponseDataItemPipelineItemDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs new file mode 100644 index 00000000..8e7c2738 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType + { + /// + /// + /// + Capacity, + /// + /// + /// + Filter, + /// + /// + /// + Rank, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType value) + { + return value switch + { + GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Capacity => "capacity", + GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Filter => "filter", + GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Rank => "rank", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "capacity" => GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Capacity, + "filter" => GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Filter, + "rank" => GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType.Rank, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.Json.g.cs new file mode 100644 index 00000000..0b7c8c46 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemVariant1 + { + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.g.cs new file mode 100644 index 00000000..ac189497 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemVariant1 + { + /// + /// + /// + /// "filter" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "filter"; + + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter Filter { get; set; } + + /// + /// Model IDs of the models that remained eligible after this filter stage. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Models { 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. + /// + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + /// + /// Model IDs of the models that remained eligible after this filter stage. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersRequestsResponseDataItemPipelineItemVariant1( + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter filter, + global::System.Collections.Generic.IList models, + string type = "filter") + { + this.Type = type; + this.Filter = filter; + this.Models = models ?? throw new global::System.ArgumentNullException(nameof(models)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersRequestsResponseDataItemPipelineItemVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs new file mode 100644 index 00000000..c5a7a128 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + public enum GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter + { + /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + AllowDeny, + /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + Capability, + /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + InputSupport, + /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + Price, + /// + /// capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling). + /// + PromptLength, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersRequestsResponseDataItemPipelineItemVariant1FilterExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter value) + { + return value switch + { + GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.AllowDeny => "allow_deny", + GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.Capability => "capability", + GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.InputSupport => "input_support", + GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.Price => "price", + GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.PromptLength => "prompt_length", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter? ToEnum(string value) + { + return value switch + { + "allow_deny" => GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.AllowDeny, + "capability" => GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.Capability, + "input_support" => GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.InputSupport, + "price" => GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.Price, + "prompt_length" => GetRoutersRequestsResponseDataItemPipelineItemVariant1Filter.PromptLength, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.Json.g.cs new file mode 100644 index 00000000..e26e5029 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemVariant2 + { + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant2? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemVariant2.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.g.cs new file mode 100644 index 00000000..7e8c4df0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant2.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemVariant2 + { + /// + /// + /// + /// "capacity" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "capacity"; + + /// + /// Model IDs that were eligible but passed over because the account was at its concurrency limit for them. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("skipped")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Skipped { get; set; } + + /// + /// True when every eligible model was at its limit, in which case none was skipped and the selected task queues. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allExhausted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool AllExhausted { 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. + /// + /// + /// Model IDs that were eligible but passed over because the account was at its concurrency limit for them. + /// + /// + /// True when every eligible model was at its limit, in which case none was skipped and the selected task queues. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersRequestsResponseDataItemPipelineItemVariant2( + global::System.Collections.Generic.IList skipped, + bool allExhausted, + string type = "capacity") + { + this.Type = type; + this.Skipped = skipped ?? throw new global::System.ArgumentNullException(nameof(skipped)); + this.AllExhausted = allExhausted; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersRequestsResponseDataItemPipelineItemVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.Json.g.cs new file mode 100644 index 00000000..0f71f3db --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemVariant3 + { + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3? 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemPipelineItemVariant3.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.g.cs new file mode 100644 index 00000000..65ab43b1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemPipelineItemVariant3 + { + /// + /// + /// + /// "rank" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "rank"; + + /// + /// How the router chose among eligible models: cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outcome")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome Outcome { 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 the router chose among eligible models: cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersRequestsResponseDataItemPipelineItemVariant3( + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome outcome, + string type = "rank") + { + this.Type = type; + this.Outcome = outcome; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersRequestsResponseDataItemPipelineItemVariant3() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static GetRoutersRequestsResponseDataItemPipelineItemVariant3 FromOutcome(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome outcome) + { + return new GetRoutersRequestsResponseDataItemPipelineItemVariant3 + { + Outcome = outcome, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs new file mode 100644 index 00000000..d3bb0ff5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Runway +{ + /// + /// How the router chose among eligible models: cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + public enum GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome + { + /// + /// cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + Cost, + /// + /// cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + Fallback, + /// + /// cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + Selected, + /// + /// cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained). + /// + SingleCandidate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersRequestsResponseDataItemPipelineItemVariant3OutcomeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome value) + { + return value switch + { + GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.Cost => "cost", + GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.Fallback => "fallback", + GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.Selected => "selected", + GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.SingleCandidate => "single_candidate", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome? ToEnum(string value) + { + return value switch + { + "cost" => GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.Cost, + "fallback" => GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.Fallback, + "selected" => GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.Selected, + "single_candidate" => GetRoutersRequestsResponseDataItemPipelineItemVariant3Outcome.SingleCandidate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.Json.g.cs new file mode 100644 index 00000000..5380cf31 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemProvider + { + /// + /// 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.GetRoutersRequestsResponseDataItemProvider? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemProvider), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemProvider; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemProvider? 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.GetRoutersRequestsResponseDataItemProvider? 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.GetRoutersRequestsResponseDataItemProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemProvider; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemProvider.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.g.cs new file mode 100644 index 00000000..9393262a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemProvider.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemProvider + { + + /// + /// 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.GetRoutersRequestsResponseDataItemReason.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReason.Json.g.cs new file mode 100644 index 00000000..634be158 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReason.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemReason + { + /// + /// 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.GetRoutersRequestsResponseDataItemReason? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemReason), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemReason; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemReason? 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.GetRoutersRequestsResponseDataItemReason? 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.GetRoutersRequestsResponseDataItemReason), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemReason; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemReason.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReason.g.cs new file mode 100644 index 00000000..a927891d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReason.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Free-text explanation of the pick. Written by the ranker, so treat it as prose for humans and group on reasonCode instead. + /// + public sealed partial class GetRoutersRequestsResponseDataItemReason + { + + /// + /// 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.GetRoutersRequestsResponseDataItemReasonCode.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode.Json.g.cs new file mode 100644 index 00000000..de92d1f2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemReasonCode + { + /// + /// 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.GetRoutersRequestsResponseDataItemReasonCode? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemReasonCode), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemReasonCode; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemReasonCode? 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.GetRoutersRequestsResponseDataItemReasonCode? 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.GetRoutersRequestsResponseDataItemReasonCode), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemReasonCode; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemReasonCode.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode.g.cs new file mode 100644 index 00000000..7ed28667 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Why the model won: lowest_cost, best_latency, best_quality, only_eligible_model, or filter_order_fallback (ranking was unavailable, so hard-filter order stood). Null when the request never reached ranking. + /// + public sealed partial class GetRoutersRequestsResponseDataItemReasonCode + { + + /// + /// 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.GetRoutersRequestsResponseDataItemReasonCode2.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode2.g.cs new file mode 100644 index 00000000..f8b56fd9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemReasonCode2.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum GetRoutersRequestsResponseDataItemReasonCode2 + { + /// + /// + /// + BestLatency, + /// + /// + /// + BestQuality, + /// + /// + /// + FilterOrderFallback, + /// + /// + /// + LowestCost, + /// + /// + /// + OnlyEligibleModel, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersRequestsResponseDataItemReasonCode2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersRequestsResponseDataItemReasonCode2 value) + { + return value switch + { + GetRoutersRequestsResponseDataItemReasonCode2.BestLatency => "best_latency", + GetRoutersRequestsResponseDataItemReasonCode2.BestQuality => "best_quality", + GetRoutersRequestsResponseDataItemReasonCode2.FilterOrderFallback => "filter_order_fallback", + GetRoutersRequestsResponseDataItemReasonCode2.LowestCost => "lowest_cost", + GetRoutersRequestsResponseDataItemReasonCode2.OnlyEligibleModel => "only_eligible_model", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersRequestsResponseDataItemReasonCode2? ToEnum(string value) + { + return value switch + { + "best_latency" => GetRoutersRequestsResponseDataItemReasonCode2.BestLatency, + "best_quality" => GetRoutersRequestsResponseDataItemReasonCode2.BestQuality, + "filter_order_fallback" => GetRoutersRequestsResponseDataItemReasonCode2.FilterOrderFallback, + "lowest_cost" => GetRoutersRequestsResponseDataItemReasonCode2.LowestCost, + "only_eligible_model" => GetRoutersRequestsResponseDataItemReasonCode2.OnlyEligibleModel, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemStatus.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemStatus.g.cs new file mode 100644 index 00000000..59d9e737 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemStatus.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// How the routing attempt ended: routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + public enum GetRoutersRequestsResponseDataItemStatus + { + /// + /// routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + Error, + /// + /// routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + InvalidRequest, + /// + /// routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + NoEligibleModel, + /// + /// routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + Routed, + /// + /// routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error. + /// + RouterConfigNotFound, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersRequestsResponseDataItemStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersRequestsResponseDataItemStatus value) + { + return value switch + { + GetRoutersRequestsResponseDataItemStatus.Error => "error", + GetRoutersRequestsResponseDataItemStatus.InvalidRequest => "invalid_request", + GetRoutersRequestsResponseDataItemStatus.NoEligibleModel => "no_eligible_model", + GetRoutersRequestsResponseDataItemStatus.Routed => "routed", + GetRoutersRequestsResponseDataItemStatus.RouterConfigNotFound => "router_config_not_found", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersRequestsResponseDataItemStatus? ToEnum(string value) + { + return value switch + { + "error" => GetRoutersRequestsResponseDataItemStatus.Error, + "invalid_request" => GetRoutersRequestsResponseDataItemStatus.InvalidRequest, + "no_eligible_model" => GetRoutersRequestsResponseDataItemStatus.NoEligibleModel, + "routed" => GetRoutersRequestsResponseDataItemStatus.Routed, + "router_config_not_found" => GetRoutersRequestsResponseDataItemStatus.RouterConfigNotFound, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.Json.g.cs new file mode 100644 index 00000000..7b1da13a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseDataItemTaskId + { + /// + /// 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.GetRoutersRequestsResponseDataItemTaskId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseDataItemTaskId), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseDataItemTaskId; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseDataItemTaskId? 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.GetRoutersRequestsResponseDataItemTaskId? 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.GetRoutersRequestsResponseDataItemTaskId), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseDataItemTaskId; + } + + /// + /// 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.GetRoutersRequestsResponseDataItemTaskId.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.g.cs new file mode 100644 index 00000000..19c67696 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseDataItemTaskId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersRequestsResponseDataItemTaskId + { + + /// + /// 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.GetRoutersRequestsResponseNextCursor.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseNextCursor.Json.g.cs new file mode 100644 index 00000000..cc0fc3a8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseNextCursor.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersRequestsResponseNextCursor + { + /// + /// 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.GetRoutersRequestsResponseNextCursor? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersRequestsResponseNextCursor), + jsonSerializerContext) as global::Runway.GetRoutersRequestsResponseNextCursor; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersRequestsResponseNextCursor? 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.GetRoutersRequestsResponseNextCursor? 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.GetRoutersRequestsResponseNextCursor), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersRequestsResponseNextCursor; + } + + /// + /// 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.GetRoutersRequestsResponseNextCursor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseNextCursor.g.cs new file mode 100644 index 00000000..9a2c4e81 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersRequestsResponseNextCursor.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 GetRoutersRequestsResponseNextCursor + { + + /// + /// 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.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.g.cs index 06a25c19..7fca80b5 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.g.cs @@ -34,6 +34,12 @@ public sealed partial class GetRoutersResponseDataItemSettings [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForJsonConverter))] public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? OptimizeFor { get; set; } + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback")] + public global::Runway.GetRoutersResponseDataItemSettingsFallback? Fallback { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,6 +58,9 @@ public sealed partial class GetRoutersResponseDataItemSettings /// /// Soft preference among eligible models: cost, latency, or quality. /// + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// /// /// Settings JSON schema version used when this snapshot was written. /// @@ -62,12 +71,14 @@ public GetRoutersResponseDataItemSettings( global::Runway.GetRoutersResponseDataItemSettingsModels? models, global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? optimizeFor, + global::Runway.GetRoutersResponseDataItemSettingsFallback? fallback, double schemaVersion = 1) { this.SchemaVersion = schemaVersion; this.Models = models; this.MaxCreditsPerGeneration = maxCreditsPerGeneration; this.OptimizeFor = optimizeFor; + this.Fallback = fallback; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.Json.g.cs new file mode 100644 index 00000000..4fad78b5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDataItemSettingsFallback + { + /// + /// 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.GetRoutersResponseDataItemSettingsFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDataItemSettingsFallback), + jsonSerializerContext) as global::Runway.GetRoutersResponseDataItemSettingsFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDataItemSettingsFallback? 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.GetRoutersResponseDataItemSettingsFallback? 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.GetRoutersResponseDataItemSettingsFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDataItemSettingsFallback; + } + + /// + /// 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.GetRoutersResponseDataItemSettingsFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.g.cs new file mode 100644 index 00000000..ec8a785a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsFallback.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + public sealed partial class GetRoutersResponseDataItemSettingsFallback + { + /// + /// When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("onCapacity")] + public bool? OnCapacity { 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 true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponseDataItemSettingsFallback( + bool? onCapacity) + { + this.OnCapacity = onCapacity; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseDataItemSettingsFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.g.cs index 795fc256..47e5e243 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.g.cs @@ -34,6 +34,12 @@ public sealed partial class GetRoutersResponseSettings [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForJsonConverter))] public global::Runway.GetRoutersResponseSettingsOptimizeFor? OptimizeFor { get; set; } + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback")] + public global::Runway.GetRoutersResponseSettingsFallback? Fallback { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,6 +58,9 @@ public sealed partial class GetRoutersResponseSettings /// /// Soft preference among eligible models: cost, latency, or quality. /// + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// /// /// Settings JSON schema version used when this snapshot was written. /// @@ -62,12 +71,14 @@ public GetRoutersResponseSettings( global::Runway.GetRoutersResponseSettingsModels? models, global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, global::Runway.GetRoutersResponseSettingsOptimizeFor? optimizeFor, + global::Runway.GetRoutersResponseSettingsFallback? fallback, double schemaVersion = 1) { this.SchemaVersion = schemaVersion; this.Models = models; this.MaxCreditsPerGeneration = maxCreditsPerGeneration; this.OptimizeFor = optimizeFor; + this.Fallback = fallback; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.Json.g.cs new file mode 100644 index 00000000..4da4ba68 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseSettingsFallback + { + /// + /// 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.GetRoutersResponseSettingsFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseSettingsFallback), + jsonSerializerContext) as global::Runway.GetRoutersResponseSettingsFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseSettingsFallback? 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.GetRoutersResponseSettingsFallback? 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.GetRoutersResponseSettingsFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseSettingsFallback; + } + + /// + /// 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.GetRoutersResponseSettingsFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.g.cs new file mode 100644 index 00000000..248be8ed --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsFallback.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + public sealed partial class GetRoutersResponseSettingsFallback + { + /// + /// When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("onCapacity")] + public bool? OnCapacity { 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 true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponseSettingsFallback( + bool? onCapacity) + { + this.OnCapacity = onCapacity; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseSettingsFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1.g.cs index 8e754a86..d41ac75f 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1.g.cs @@ -29,6 +29,13 @@ public sealed partial class GetTasksResponseVariant1 [global::System.Text.Json.Serialization.JsonPropertyName("status")] public string Status { get; set; } = "PENDING"; + /// + /// Estimated cost, computed against current pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetTasksResponseVariant1EstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,6 +51,9 @@ public sealed partial class GetTasksResponseVariant1 /// /// The timestamp that the task was submitted at. /// + /// + /// Estimated cost, computed against current pricing. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -51,11 +61,13 @@ public sealed partial class GetTasksResponseVariant1 public GetTasksResponseVariant1( global::System.Guid id, global::System.DateTime createdAt, + global::Runway.GetTasksResponseVariant1EstimatedCost estimatedCost, string status = "PENDING") { this.Id = id; this.CreatedAt = createdAt; this.Status = status; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.Json.g.cs new file mode 100644 index 00000000..7cd05150 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetTasksResponseVariant1EstimatedCost + { + /// + /// 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.GetTasksResponseVariant1EstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetTasksResponseVariant1EstimatedCost), + jsonSerializerContext) as global::Runway.GetTasksResponseVariant1EstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetTasksResponseVariant1EstimatedCost? 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.GetTasksResponseVariant1EstimatedCost? 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.GetTasksResponseVariant1EstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetTasksResponseVariant1EstimatedCost; + } + + /// + /// 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.GetTasksResponseVariant1EstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.g.cs new file mode 100644 index 00000000..deaedb19 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant1EstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class GetTasksResponseVariant1EstimatedCost + { + /// + /// 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 GetTasksResponseVariant1EstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTasksResponseVariant1EstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2.g.cs index de137324..6578ab46 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2.g.cs @@ -29,6 +29,13 @@ public sealed partial class GetTasksResponseVariant2 [global::System.Text.Json.Serialization.JsonPropertyName("status")] public string Status { get; set; } = "THROTTLED"; + /// + /// Estimated cost, computed against current pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetTasksResponseVariant2EstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,6 +51,9 @@ public sealed partial class GetTasksResponseVariant2 /// /// The timestamp that the task was submitted at. /// + /// + /// Estimated cost, computed against current pricing. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -51,11 +61,13 @@ public sealed partial class GetTasksResponseVariant2 public GetTasksResponseVariant2( global::System.Guid id, global::System.DateTime createdAt, + global::Runway.GetTasksResponseVariant2EstimatedCost estimatedCost, string status = "THROTTLED") { this.Id = id; this.CreatedAt = createdAt; this.Status = status; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.Json.g.cs new file mode 100644 index 00000000..dda1e995 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetTasksResponseVariant2EstimatedCost + { + /// + /// 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.GetTasksResponseVariant2EstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetTasksResponseVariant2EstimatedCost), + jsonSerializerContext) as global::Runway.GetTasksResponseVariant2EstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetTasksResponseVariant2EstimatedCost? 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.GetTasksResponseVariant2EstimatedCost? 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.GetTasksResponseVariant2EstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetTasksResponseVariant2EstimatedCost; + } + + /// + /// 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.GetTasksResponseVariant2EstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.g.cs new file mode 100644 index 00000000..3618e273 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant2EstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class GetTasksResponseVariant2EstimatedCost + { + /// + /// 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 GetTasksResponseVariant2EstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTasksResponseVariant2EstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3.g.cs index d7cb3f77..52f4ce79 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3.g.cs @@ -29,6 +29,13 @@ public sealed partial class GetTasksResponseVariant3 [global::System.Text.Json.Serialization.JsonPropertyName("status")] public string Status { get; set; } = "CANCELLED"; + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetTasksResponseVariant3Cost Cost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,6 +51,9 @@ public sealed partial class GetTasksResponseVariant3 /// /// The timestamp that the task was submitted at. /// + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -51,11 +61,13 @@ public sealed partial class GetTasksResponseVariant3 public GetTasksResponseVariant3( global::System.Guid id, global::System.DateTime createdAt, + global::Runway.GetTasksResponseVariant3Cost cost, string status = "CANCELLED") { this.Id = id; this.CreatedAt = createdAt; this.Status = status; + this.Cost = cost ?? throw new global::System.ArgumentNullException(nameof(cost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.Json.g.cs new file mode 100644 index 00000000..3ac25fca --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetTasksResponseVariant3Cost + { + /// + /// 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.GetTasksResponseVariant3Cost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetTasksResponseVariant3Cost), + jsonSerializerContext) as global::Runway.GetTasksResponseVariant3Cost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetTasksResponseVariant3Cost? 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.GetTasksResponseVariant3Cost? 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.GetTasksResponseVariant3Cost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetTasksResponseVariant3Cost; + } + + /// + /// 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.GetTasksResponseVariant3Cost.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.g.cs new file mode 100644 index 00000000..b77d916a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant3Cost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// + public sealed partial class GetTasksResponseVariant3Cost + { + /// + /// Credits charged for this task. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int 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. + /// + /// + /// Credits charged for this task. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetTasksResponseVariant3Cost( + int credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTasksResponseVariant3Cost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4.g.cs index bd3cf674..ff438ce9 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4.g.cs @@ -36,6 +36,13 @@ public sealed partial class GetTasksResponseVariant4 [global::System.Text.Json.Serialization.JsonRequired] public required double Progress { 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.GetTasksResponseVariant4EstimatedCost EstimatedCost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,6 +59,9 @@ public sealed partial class GetTasksResponseVariant4 /// The timestamp that the task was submitted at. /// /// + /// + /// Estimated cost, computed against current pricing. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -60,12 +70,14 @@ public GetTasksResponseVariant4( global::System.Guid id, global::System.DateTime createdAt, double progress, + global::Runway.GetTasksResponseVariant4EstimatedCost estimatedCost, string status = "RUNNING") { this.Id = id; this.CreatedAt = createdAt; this.Status = status; this.Progress = progress; + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.Json.g.cs new file mode 100644 index 00000000..f5676648 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetTasksResponseVariant4EstimatedCost + { + /// + /// 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.GetTasksResponseVariant4EstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetTasksResponseVariant4EstimatedCost), + jsonSerializerContext) as global::Runway.GetTasksResponseVariant4EstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetTasksResponseVariant4EstimatedCost? 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.GetTasksResponseVariant4EstimatedCost? 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.GetTasksResponseVariant4EstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetTasksResponseVariant4EstimatedCost; + } + + /// + /// 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.GetTasksResponseVariant4EstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.g.cs new file mode 100644 index 00000000..dc883f91 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant4EstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class GetTasksResponseVariant4EstimatedCost + { + /// + /// 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 GetTasksResponseVariant4EstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTasksResponseVariant4EstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5.g.cs index 459a9d0f..d0dee400 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5.g.cs @@ -42,6 +42,13 @@ public sealed partial class GetTasksResponseVariant5 [global::System.Text.Json.Serialization.JsonPropertyName("failureCode")] public string? FailureCode { get; set; } + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetTasksResponseVariant5Cost Cost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,6 +67,9 @@ public sealed partial class GetTasksResponseVariant5 /// /// A human-friendly reason for the failure. We do not recommend returning this to users directly without adding context. /// + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// /// /// A machine-readable error code for the failure. See https://docs.dev.runwayml.com/errors/task-failures/ for more information. /// @@ -71,6 +81,7 @@ public GetTasksResponseVariant5( global::System.Guid id, global::System.DateTime createdAt, string failure, + global::Runway.GetTasksResponseVariant5Cost cost, string? failureCode, string status = "FAILED") { @@ -79,6 +90,7 @@ public GetTasksResponseVariant5( this.Status = status; this.Failure = failure ?? throw new global::System.ArgumentNullException(nameof(failure)); this.FailureCode = failureCode; + this.Cost = cost ?? throw new global::System.ArgumentNullException(nameof(cost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.Json.g.cs new file mode 100644 index 00000000..c7d38230 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetTasksResponseVariant5Cost + { + /// + /// 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.GetTasksResponseVariant5Cost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetTasksResponseVariant5Cost), + jsonSerializerContext) as global::Runway.GetTasksResponseVariant5Cost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetTasksResponseVariant5Cost? 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.GetTasksResponseVariant5Cost? 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.GetTasksResponseVariant5Cost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetTasksResponseVariant5Cost; + } + + /// + /// 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.GetTasksResponseVariant5Cost.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.g.cs new file mode 100644 index 00000000..c02a05a0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant5Cost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// + public sealed partial class GetTasksResponseVariant5Cost + { + /// + /// Credits charged for this task. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int 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. + /// + /// + /// Credits charged for this task. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetTasksResponseVariant5Cost( + int credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTasksResponseVariant5Cost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6.g.cs index 716094a0..e548f89f 100644 --- a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6.g.cs @@ -36,6 +36,13 @@ public sealed partial class GetTasksResponseVariant6 [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Output { get; set; } + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetTasksResponseVariant6Cost Cost { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,6 +61,9 @@ public sealed partial class GetTasksResponseVariant6 /// /// An array of URLs that return the output of the task. These URLs will expire within 24-48 hours; fetch the task again to get fresh URLs. It is expected that you download the assets at these URLs and store them in your own storage system. /// + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -62,12 +72,14 @@ public GetTasksResponseVariant6( global::System.Guid id, global::System.DateTime createdAt, global::System.Collections.Generic.IList output, + global::Runway.GetTasksResponseVariant6Cost cost, string status = "SUCCEEDED") { this.Id = id; this.CreatedAt = createdAt; this.Status = status; this.Output = output ?? throw new global::System.ArgumentNullException(nameof(output)); + this.Cost = cost ?? throw new global::System.ArgumentNullException(nameof(cost)); } /// diff --git a/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.Json.g.cs new file mode 100644 index 00000000..e67a4f93 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetTasksResponseVariant6Cost + { + /// + /// 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.GetTasksResponseVariant6Cost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetTasksResponseVariant6Cost), + jsonSerializerContext) as global::Runway.GetTasksResponseVariant6Cost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetTasksResponseVariant6Cost? 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.GetTasksResponseVariant6Cost? 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.GetTasksResponseVariant6Cost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetTasksResponseVariant6Cost; + } + + /// + /// 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.GetTasksResponseVariant6Cost.g.cs b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.g.cs new file mode 100644 index 00000000..4a0cbb51 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetTasksResponseVariant6Cost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Final cost in credits for a terminal task. A refunded task reports 0. + /// + public sealed partial class GetTasksResponseVariant6Cost + { + /// + /// Credits charged for this task. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int 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. + /// + /// + /// Credits charged for this task. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetTasksResponseVariant6Cost( + int credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public GetTasksResponseVariant6Cost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarFailed.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarFailed.g.cs index 29dab32c..b23b5ba2 100644 --- a/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarFailed.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarFailed.g.cs @@ -39,9 +39,9 @@ public sealed partial class PatchAvatarsResponseAvatarFailed /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice16JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice17JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice16 Voice { get; set; } + public required global::Runway.Voice17 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -140,7 +140,7 @@ public PatchAvatarsResponseAvatarFailed( global::System.Guid id, string name, string personality, - global::Runway.Voice16 voice, + global::Runway.Voice17 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarProcessing.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarProcessing.g.cs index c293e0b4..8fc5ad83 100644 --- a/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarProcessing.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarProcessing.g.cs @@ -39,9 +39,9 @@ public sealed partial class PatchAvatarsResponseAvatarProcessing /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice14JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice15JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice14 Voice { get; set; } + public required global::Runway.Voice15 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public PatchAvatarsResponseAvatarProcessing( global::System.Guid id, string name, string personality, - global::Runway.Voice14 voice, + global::Runway.Voice15 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarReady.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarReady.g.cs index 847e60da..d189ce86 100644 --- a/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarReady.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.PatchAvatarsResponseAvatarReady.g.cs @@ -39,9 +39,9 @@ public sealed partial class PatchAvatarsResponseAvatarReady /// The voice configured for this avatar. /// [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice15JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.Voice16JsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Runway.Voice15 Voice { get; set; } + public required global::Runway.Voice16 Voice { get; set; } /// /// A URI pointing to a low-resolution preview of the avatar's reference image. @@ -130,7 +130,7 @@ public PatchAvatarsResponseAvatarReady( global::System.Guid id, string name, string personality, - global::Runway.Voice15 voice, + global::Runway.Voice16 voice, global::System.Collections.Generic.IList documentIds, global::System.DateTime createdAt, global::System.DateTime updatedAt, diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.g.cs index 484416e3..173f090e 100644 --- a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.g.cs @@ -33,6 +33,12 @@ public sealed partial class PatchRoutersRequestSettings [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForJsonConverter))] public global::Runway.PatchRoutersRequestSettingsOptimizeFor? OptimizeFor { get; set; } + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback")] + public global::Runway.PatchRoutersRequestSettingsFallback? Fallback { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,6 +60,9 @@ public sealed partial class PatchRoutersRequestSettings /// /// Soft preference among eligible models: cost, latency, or quality. /// + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -61,12 +70,14 @@ public PatchRoutersRequestSettings( double? schemaVersion, global::Runway.PatchRoutersRequestSettingsModels? models, global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, - global::Runway.PatchRoutersRequestSettingsOptimizeFor? optimizeFor) + global::Runway.PatchRoutersRequestSettingsOptimizeFor? optimizeFor, + global::Runway.PatchRoutersRequestSettingsFallback? fallback) { this.SchemaVersion = schemaVersion; this.Models = models; this.MaxCreditsPerGeneration = maxCreditsPerGeneration; this.OptimizeFor = optimizeFor; + this.Fallback = fallback; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.Json.g.cs new file mode 100644 index 00000000..311a659b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersRequestSettingsFallback + { + /// + /// 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.PatchRoutersRequestSettingsFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersRequestSettingsFallback), + jsonSerializerContext) as global::Runway.PatchRoutersRequestSettingsFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersRequestSettingsFallback? 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.PatchRoutersRequestSettingsFallback? 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.PatchRoutersRequestSettingsFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersRequestSettingsFallback; + } + + /// + /// 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.PatchRoutersRequestSettingsFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.g.cs new file mode 100644 index 00000000..7c2cfc96 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsFallback.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + public sealed partial class PatchRoutersRequestSettingsFallback + { + /// + /// When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("onCapacity")] + public bool? OnCapacity { 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 true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchRoutersRequestSettingsFallback( + bool? onCapacity) + { + this.OnCapacity = onCapacity; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersRequestSettingsFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.g.cs index 4eb5f238..80d5c3a5 100644 --- a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.g.cs @@ -34,6 +34,12 @@ public sealed partial class PatchRoutersResponseSettings [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForJsonConverter))] public global::Runway.PatchRoutersResponseSettingsOptimizeFor? OptimizeFor { get; set; } + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fallback")] + public global::Runway.PatchRoutersResponseSettingsFallback? Fallback { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,6 +58,9 @@ public sealed partial class PatchRoutersResponseSettings /// /// Soft preference among eligible models: cost, latency, or quality. /// + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// /// /// Settings JSON schema version used when this snapshot was written. /// @@ -62,12 +71,14 @@ public PatchRoutersResponseSettings( global::Runway.PatchRoutersResponseSettingsModels? models, global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, global::Runway.PatchRoutersResponseSettingsOptimizeFor? optimizeFor, + global::Runway.PatchRoutersResponseSettingsFallback? fallback, double schemaVersion = 1) { this.SchemaVersion = schemaVersion; this.Models = models; this.MaxCreditsPerGeneration = maxCreditsPerGeneration; this.OptimizeFor = optimizeFor; + this.Fallback = fallback; } /// diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.Json.g.cs new file mode 100644 index 00000000..352b25c8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersResponseSettingsFallback + { + /// + /// 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.PatchRoutersResponseSettingsFallback? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersResponseSettingsFallback), + jsonSerializerContext) as global::Runway.PatchRoutersResponseSettingsFallback; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersResponseSettingsFallback? 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.PatchRoutersResponseSettingsFallback? 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.PatchRoutersResponseSettingsFallback), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersResponseSettingsFallback; + } + + /// + /// 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.PatchRoutersResponseSettingsFallback.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.g.cs new file mode 100644 index 00000000..e60fd957 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsFallback.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Opt-in behavior for what routing should do when the preferred model cannot start immediately. + /// + public sealed partial class PatchRoutersResponseSettingsFallback + { + /// + /// When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("onCapacity")] + public bool? OnCapacity { 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 true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchRoutersResponseSettingsFallback( + bool? onCapacity) + { + this.OnCapacity = onCapacity; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersResponseSettingsFallback() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PipelineItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PipelineItem.Json.g.cs new file mode 100644 index 00000000..02074283 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PipelineItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public readonly partial struct PipelineItem + { + /// + /// 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.PipelineItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PipelineItem), + jsonSerializerContext) as global::Runway.PipelineItem?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PipelineItem? 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.PipelineItem? 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.PipelineItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PipelineItem?; + } + + /// + /// 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.PipelineItem.g.cs b/src/libs/Runway/Generated/Runway.Models.PipelineItem.g.cs new file mode 100644 index 00000000..c8d13490 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PipelineItem.g.cs @@ -0,0 +1,386 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public readonly partial struct PipelineItem : global::System.IEquatable + { + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? Type { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? Filter { get; init; } +#else + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? Filter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Filter))] +#endif + public bool IsFilter => Filter != null; + + /// + /// + /// + public bool TryPickFilter( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? value) + { + value = Filter; + return IsFilter; + } + + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1 PickFilter() => IsFilter + ? Filter! + : throw new global::System.InvalidOperationException($"Expected union variant 'Filter' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? Capacity { get; init; } +#else + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? Capacity { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Capacity))] +#endif + public bool IsCapacity => Capacity != null; + + /// + /// + /// + public bool TryPickCapacity( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? value) + { + value = Capacity; + return IsCapacity; + } + + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2 PickCapacity() => IsCapacity + ? Capacity! + : throw new global::System.InvalidOperationException($"Expected union variant 'Capacity' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? Rank { get; init; } +#else + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? Rank { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Rank))] +#endif + public bool IsRank => Rank != null; + + /// + /// + /// + public bool TryPickRank( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? value) + { + value = Rank; + return IsRank; + } + + /// + /// + /// + public global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3 PickRank() => IsRank + ? Rank! + : throw new global::System.InvalidOperationException($"Expected union variant 'Rank' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator PipelineItem(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1 value) => new PipelineItem((global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1?)value); + + /// + /// + /// + public static implicit operator global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1?(PipelineItem @this) => @this.Filter; + + /// + /// + /// + public PipelineItem(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? value) + { + Filter = value; + } + + /// + /// + /// + public static PipelineItem FromFilter(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? value) => new PipelineItem(value); + + /// + /// + /// + public static implicit operator PipelineItem(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2 value) => new PipelineItem((global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2?)value); + + /// + /// + /// + public static implicit operator global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2?(PipelineItem @this) => @this.Capacity; + + /// + /// + /// + public PipelineItem(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? value) + { + Capacity = value; + } + + /// + /// + /// + public static PipelineItem FromCapacity(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? value) => new PipelineItem(value); + + /// + /// + /// + public static implicit operator PipelineItem(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3 value) => new PipelineItem((global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3?)value); + + /// + /// + /// + public static implicit operator global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3?(PipelineItem @this) => @this.Rank; + + /// + /// + /// + public PipelineItem(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? value) + { + Rank = value; + } + + /// + /// + /// + public static PipelineItem FromRank(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? value) => new PipelineItem(value); + + /// + /// + /// + public PipelineItem( + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemDiscriminatorType? type, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1? filter, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2? capacity, + global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3? rank + ) + { + Type = type; + + Filter = filter; + Capacity = capacity; + Rank = rank; + } + + /// + /// + /// + public object? Object => + Rank as object ?? + Capacity as object ?? + Filter as object + ; + + /// + /// + /// + public override string? ToString() => + Filter?.ToString() ?? + Capacity?.ToString() ?? + Rank?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFilter && !IsCapacity && !IsRank || !IsFilter && IsCapacity && !IsRank || !IsFilter && !IsCapacity && IsRank; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? filter = null, + global::System.Func? capacity = null, + global::System.Func? rank = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFilter && filter != null) + { + return filter(Filter!); + } + else if (IsCapacity && capacity != null) + { + return capacity(Capacity!); + } + else if (IsRank && rank != null) + { + return rank(Rank!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? filter = null, + + global::System.Action? capacity = null, + + global::System.Action? rank = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFilter) + { + filter?.Invoke(Filter!); + } + else if (IsCapacity) + { + capacity?.Invoke(Capacity!); + } + else if (IsRank) + { + rank?.Invoke(Rank!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? filter = null, + global::System.Action? capacity = null, + global::System.Action? rank = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFilter) + { + filter?.Invoke(Filter!); + } + else if (IsCapacity) + { + capacity?.Invoke(Capacity!); + } + else if (IsRank) + { + rank?.Invoke(Rank!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Filter, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant1), + Capacity, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant2), + Rank, + typeof(global::Runway.GetRoutersRequestsResponseDataItemPipelineItemVariant3), + }; + 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(PipelineItem other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Filter, other.Filter) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Capacity, other.Capacity) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Rank, other.Rank) + ; + } + + /// + /// + /// + public static bool operator ==(PipelineItem obj1, PipelineItem obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(PipelineItem obj1, PipelineItem obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is PipelineItem o && Equals(o); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.Voice10.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice10.g.cs index 7e45e30a..d6b4c4b2 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice10.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice10.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type { get; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + out global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice10(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice10((global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice10(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice10((global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice10 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice10 @this) => @this.RunwayLivePreset; /// /// /// - public Voice10(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + public Voice10(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice10(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePr /// /// /// - public static Voice10 FromRunwayLivePreset(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice10(value); + public static Voice10 FromRunwayLivePreset(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice10(value); /// /// /// - public static implicit operator Voice10(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse value) => new Voice10((global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?)value); + public static implicit operator Voice10(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse value) => new Voice10((global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?(Voice10 @this) => @this.Custom; + public static implicit operator global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?(Voice10 @this) => @this.Custom; /// /// /// - public Voice10(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + public Voice10(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice10(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceR /// /// /// - public static Voice10 FromCustom(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) => new Voice10(value); + public static Voice10 FromCustom(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) => new Voice10(value); /// /// /// public Voice10( - global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? type, - global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom + global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? type, + global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), + typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice10 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice11.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice11.g.cs index f5c3f203..4e6c40a8 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice11.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice11.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type { get; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) + out global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice11(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice11((global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice11(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice11((global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice11 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice11 @this) => @this.RunwayLivePreset; /// /// /// - public Voice11(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + public Voice11(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice11(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLiveP /// /// /// - public static Voice11 FromRunwayLivePreset(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice11(value); + public static Voice11 FromRunwayLivePreset(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice11(value); /// /// /// - public static implicit operator Voice11(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse value) => new Voice11((global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?)value); + public static implicit operator Voice11(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse value) => new Voice11((global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?(Voice11 @this) => @this.Custom; + public static implicit operator global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?(Voice11 @this) => @this.Custom; /// /// /// - public Voice11(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) + public Voice11(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice11(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoice /// /// /// - public static Voice11 FromCustom(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice11(value); + public static Voice11 FromCustom(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) => new Voice11(value); /// /// /// public Voice11( - global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? type, - global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom + global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? type, + global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), + typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice11 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice12.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice12.g.cs index e39b41a2..f5eb4322 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice12.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice12.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type { get; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) + out global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice12(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice12((global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice12(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice12((global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice12 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice12 @this) => @this.RunwayLivePreset; /// /// /// - public Voice12(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + public Voice12(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice12(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePreset /// /// /// - public static Voice12 FromRunwayLivePreset(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice12(value); + public static Voice12 FromRunwayLivePreset(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice12(value); /// /// /// - public static implicit operator Voice12(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse value) => new Voice12((global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?)value); + public static implicit operator Voice12(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse value) => new Voice12((global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?(Voice12 @this) => @this.Custom; + public static implicit operator global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?(Voice12 @this) => @this.Custom; /// /// /// - public Voice12(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) + public Voice12(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice12(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceRespo /// /// /// - public static Voice12 FromCustom(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) => new Voice12(value); + public static Voice12 FromCustom(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice12(value); /// /// /// public Voice12( - global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? type, - global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom + global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? type, + global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), + typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice12 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice13.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice13.g.cs index f1c3902f..4a147555 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice13.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice13.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type { get; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + out global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice13(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice13((global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice13(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice13((global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice13 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice13 @this) => @this.RunwayLivePreset; /// /// /// - public Voice13(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + public Voice13(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice13(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePrese /// /// /// - public static Voice13 FromRunwayLivePreset(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice13(value); + public static Voice13 FromRunwayLivePreset(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice13(value); /// /// /// - public static implicit operator Voice13(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse value) => new Voice13((global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?)value); + public static implicit operator Voice13(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse value) => new Voice13((global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?(Voice13 @this) => @this.Custom; + public static implicit operator global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?(Voice13 @this) => @this.Custom; /// /// /// - public Voice13(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + public Voice13(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice13(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResp /// /// /// - public static Voice13 FromCustom(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) => new Voice13(value); + public static Voice13 FromCustom(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) => new Voice13(value); /// /// /// public Voice13( - global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? type, - global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom + global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? type, + global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), + typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice13 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice14.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice14.g.cs index 0d512b33..84b0f3af 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice14.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice14.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type { get; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) + out global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice14(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice14((global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice14(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice14((global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice14 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice14 @this) => @this.RunwayLivePreset; /// /// /// - public Voice14(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + public Voice14(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice14(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLiv /// /// /// - public static Voice14 FromRunwayLivePreset(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice14(value); + public static Voice14 FromRunwayLivePreset(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice14(value); /// /// /// - public static implicit operator Voice14(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse value) => new Voice14((global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?)value); + public static implicit operator Voice14(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse value) => new Voice14((global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?(Voice14 @this) => @this.Custom; + public static implicit operator global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?(Voice14 @this) => @this.Custom; /// /// /// - public Voice14(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) + public Voice14(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice14(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoi /// /// /// - public static Voice14 FromCustom(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice14(value); + public static Voice14 FromCustom(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) => new Voice14(value); /// /// /// public Voice14( - global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? type, - global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom + global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? type, + global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), + typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice14 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice15.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice15.g.cs index eabdaf0c..7c6e8430 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice15.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice15.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type { get; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) + out global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice15(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice15((global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice15(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice15((global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice15 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice15 @this) => @this.RunwayLivePreset; /// /// /// - public Voice15(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + public Voice15(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice15(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePres /// /// /// - public static Voice15 FromRunwayLivePreset(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice15(value); + public static Voice15 FromRunwayLivePreset(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice15(value); /// /// /// - public static implicit operator Voice15(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse value) => new Voice15((global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?)value); + public static implicit operator Voice15(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse value) => new Voice15((global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?(Voice15 @this) => @this.Custom; + public static implicit operator global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?(Voice15 @this) => @this.Custom; /// /// /// - public Voice15(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) + public Voice15(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice15(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceRes /// /// /// - public static Voice15 FromCustom(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) => new Voice15(value); + public static Voice15 FromCustom(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice15(value); /// /// /// public Voice15( - global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? type, - global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom + global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? type, + global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), + typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice15 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice16.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice16.g.cs index 131b1648..67f21da1 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice16.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice16.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type { get; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + out global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice16(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice16((global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice16(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice16((global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice16 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice16 @this) => @this.RunwayLivePreset; /// /// /// - public Voice16(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + public Voice16(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice16(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePre /// /// /// - public static Voice16 FromRunwayLivePreset(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice16(value); + public static Voice16 FromRunwayLivePreset(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice16(value); /// /// /// - public static implicit operator Voice16(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse value) => new Voice16((global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?)value); + public static implicit operator Voice16(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse value) => new Voice16((global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?(Voice16 @this) => @this.Custom; + public static implicit operator global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?(Voice16 @this) => @this.Custom; /// /// /// - public Voice16(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + public Voice16(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice16(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceRe /// /// /// - public static Voice16 FromCustom(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) => new Voice16(value); + public static Voice16 FromCustom(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) => new Voice16(value); /// /// /// public Voice16( - global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? type, - global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom + global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? type, + global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), + typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice16 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice17.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice17.Json.g.cs new file mode 100644 index 00000000..4b70e445 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.Voice17.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public readonly partial struct Voice17 + { + /// + /// 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.Voice17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.Voice17), + jsonSerializerContext) as global::Runway.Voice17?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.Voice17? 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.Voice17? 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.Voice17), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.Voice17?; + } + + /// + /// 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.Voice17.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice17.g.cs new file mode 100644 index 00000000..b9c3086c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.Voice17.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Runway +{ + /// + /// The voice configured for this avatar. + /// + public readonly partial struct Voice17 : global::System.IEquatable + { + /// + /// + /// + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type { get; } + + /// + /// A preset voice from the Runway API. + /// +#if NET6_0_OR_GREATER + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } +#else + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunwayLivePreset))] +#endif + public bool IsRunwayLivePreset => RunwayLivePreset != null; + + /// + /// + /// + public bool TryPickRunwayLivePreset( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + { + value = RunwayLivePreset; + return IsRunwayLivePreset; + } + + /// + /// + /// + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + ? RunwayLivePreset! + : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); + + /// + /// A custom voice created via the Voices API. + /// +#if NET6_0_OR_GREATER + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } +#else + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom + ? Custom! + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Voice17(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice17((global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); + + /// + /// + /// + public static implicit operator global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice17 @this) => @this.RunwayLivePreset; + + /// + /// + /// + public Voice17(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + { + RunwayLivePreset = value; + } + + /// + /// + /// + public static Voice17 FromRunwayLivePreset(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice17(value); + + /// + /// + /// + public static implicit operator Voice17(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse value) => new Voice17((global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?)value); + + /// + /// + /// + public static implicit operator global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse?(Voice17 @this) => @this.Custom; + + /// + /// + /// + public Voice17(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) + { + Custom = value; + } + + /// + /// + /// + public static Voice17 FromCustom(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? value) => new Voice17(value); + + /// + /// + /// + public Voice17( + global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? type, + global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? custom + ) + { + Type = type; + + RunwayLivePreset = runwayLivePreset; + Custom = custom; + } + + /// + /// + /// + public object? Object => + Custom as object ?? + RunwayLivePreset as object + ; + + /// + /// + /// + public override string? ToString() => + RunwayLivePreset?.ToString() ?? + Custom?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsRunwayLivePreset && !IsCustom || !IsRunwayLivePreset && IsCustom; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsRunwayLivePreset && runwayLivePreset != null) + { + return runwayLivePreset(RunwayLivePreset!); + } + else if (IsCustom && custom != null) + { + return custom(Custom!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? runwayLivePreset = null, + + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsRunwayLivePreset) + { + runwayLivePreset?.Invoke(RunwayLivePreset!); + } + else if (IsCustom) + { + custom?.Invoke(Custom!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsRunwayLivePreset) + { + runwayLivePreset?.Invoke(RunwayLivePreset!); + } + else if (IsCustom) + { + custom?.Invoke(Custom!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + RunwayLivePreset, + typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse), + Custom, + typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse), + }; + 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(Voice17 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + ; + } + + /// + /// + /// + public static bool operator ==(Voice17 obj1, Voice17 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Voice17 obj1, Voice17 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Voice17 o && Equals(o); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.Voice4.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice4.g.cs index 945973a0..be7d04ed 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice4.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice4.g.cs @@ -5,59 +5,59 @@ namespace Runway { /// - /// The voice to speak with. When omitted, models that support a default voice remain eligible. + /// The voice to use for text-to-speech generation. If omitted, a default voice is used. /// public readonly partial struct Voice4 : global::System.IEquatable { /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType? Type { get; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType? Type { get; } /// - /// A preset voice. + /// A preset voice for Seed Audio text-to-speech. /// #if NET6_0_OR_GREATER - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? Preset { get; init; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? SeedPreset { get; init; } #else - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? Preset { get; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? SeedPreset { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Preset))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SeedPreset))] #endif - public bool IsPreset => Preset != null; + public bool IsSeedPreset => SeedPreset != null; /// /// /// - public bool TryPickPreset( + public bool TryPickSeedPreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? value) + out global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? value) { - value = Preset; - return IsPreset; + value = SeedPreset; + return IsSeedPreset; } /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice PickPreset() => IsPreset - ? Preset! - : throw new global::System.InvalidOperationException($"Expected union variant 'Preset' but the value was {ToString()}."); + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice PickSeedPreset() => IsSeedPreset + ? SeedPreset! + : throw new global::System.InvalidOperationException($"Expected union variant 'SeedPreset' but the value was {ToString()}."); /// - /// Clone a voice from a reference audio clip, then speak promptText in that voice. Routes only to models that support voice cloning. + /// Clone from a single reference audio clip, then speak promptText in that voice. /// #if NET6_0_OR_GREATER - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? ReferenceAudio { get; init; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? ReferenceAudio { get; init; } #else - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? ReferenceAudio { get; } + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? ReferenceAudio { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickReferenceAudio( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? value) + out global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? value) { value = ReferenceAudio; return IsReferenceAudio; @@ -84,46 +84,46 @@ public bool TryPickReferenceAudio( /// /// /// - public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice PickReferenceAudio() => IsReferenceAudio + public global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice PickReferenceAudio() => IsReferenceAudio ? ReferenceAudio! : throw new global::System.InvalidOperationException($"Expected union variant 'ReferenceAudio' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice4(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice value) => new Voice4((global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice?)value); + public static implicit operator Voice4(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice value) => new Voice4((global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice?)value); /// /// /// - public static implicit operator global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice?(Voice4 @this) => @this.Preset; + public static implicit operator global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice?(Voice4 @this) => @this.SeedPreset; /// /// /// - public Voice4(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? value) + public Voice4(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? value) { - Preset = value; + SeedPreset = value; } /// /// /// - public static Voice4 FromPreset(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? value) => new Voice4(value); + public static Voice4 FromSeedPreset(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? value) => new Voice4(value); /// /// /// - public static implicit operator Voice4(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice value) => new Voice4((global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice?)value); + public static implicit operator Voice4(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice value) => new Voice4((global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice?)value); /// /// /// - public static implicit operator global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice?(Voice4 @this) => @this.ReferenceAudio; + public static implicit operator global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice?(Voice4 @this) => @this.ReferenceAudio; /// /// /// - public Voice4(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? value) + public Voice4(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? value) { ReferenceAudio = value; } @@ -131,20 +131,20 @@ public Voice4(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceV /// /// /// - public static Voice4 FromReferenceAudio(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? value) => new Voice4(value); + public static Voice4 FromReferenceAudio(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? value) => new Voice4(value); /// /// /// public Voice4( - global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType? type, - global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? preset, - global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? referenceAudio + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceDiscriminatorType? type, + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice? seedPreset, + global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice? referenceAudio ) { Type = type; - Preset = preset; + SeedPreset = seedPreset; ReferenceAudio = referenceAudio; } @@ -153,14 +153,14 @@ public Voice4( /// public object? Object => ReferenceAudio as object ?? - Preset as object + SeedPreset as object ; /// /// /// public override string? ToString() => - Preset?.ToString() ?? + SeedPreset?.ToString() ?? ReferenceAudio?.ToString() ; @@ -169,15 +169,15 @@ Preset as object /// public bool Validate() { - return IsPreset && !IsReferenceAudio || !IsPreset && IsReferenceAudio; + return IsSeedPreset && !IsReferenceAudio || !IsSeedPreset && IsReferenceAudio; } /// /// /// public TResult? Match( - global::System.Func? preset = null, - global::System.Func? referenceAudio = null, + global::System.Func? seedPreset = null, + global::System.Func? referenceAudio = null, bool validate = true) { if (validate) @@ -185,9 +185,9 @@ public bool Validate() Validate(); } - if (IsPreset && preset != null) + if (IsSeedPreset && seedPreset != null) { - return preset(Preset!); + return seedPreset(SeedPreset!); } else if (IsReferenceAudio && referenceAudio != null) { @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? preset = null, + global::System.Action? seedPreset = null, - global::System.Action? referenceAudio = null, + global::System.Action? referenceAudio = null, bool validate = true) { if (validate) @@ -211,9 +211,9 @@ public void Match( Validate(); } - if (IsPreset) + if (IsSeedPreset) { - preset?.Invoke(Preset!); + seedPreset?.Invoke(SeedPreset!); } else if (IsReferenceAudio) { @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? preset = null, - global::System.Action? referenceAudio = null, + global::System.Action? seedPreset = null, + global::System.Action? referenceAudio = null, bool validate = true) { if (validate) @@ -234,9 +234,9 @@ public void Switch( Validate(); } - if (IsPreset) + if (IsSeedPreset) { - preset?.Invoke(Preset!); + seedPreset?.Invoke(SeedPreset!); } else if (IsReferenceAudio) { @@ -251,10 +251,10 @@ public override int GetHashCode() { var fields = new object?[] { - Preset, - typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice), + SeedPreset, + typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedPresetVoice), ReferenceAudio, - typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice), + typeof(global::Runway.CreateTextToSpeechRequestSeedAudioVoiceSeedReferenceVoice), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice4 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Preset, other.Preset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ReferenceAudio, other.ReferenceAudio) + global::System.Collections.Generic.EqualityComparer.Default.Equals(SeedPreset, other.SeedPreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReferenceAudio, other.ReferenceAudio) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice5.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice5.g.cs index 9b2a9056..af594c76 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice5.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice5.g.cs @@ -5,163 +5,163 @@ namespace Runway { /// - /// The voice configured for this avatar. + /// The voice to speak with. When omitted, models that support a default voice remain eligible. /// public readonly partial struct Voice5 : global::System.IEquatable { /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type { get; } + public global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType? Type { get; } /// - /// A preset voice from the Runway API. + /// A preset voice. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? Preset { get; init; } #else - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? Preset { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunwayLivePreset))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Preset))] #endif - public bool IsRunwayLivePreset => RunwayLivePreset != null; + public bool IsPreset => Preset != null; /// /// /// - public bool TryPickRunwayLivePreset( + public bool TryPickPreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? value) { - value = RunwayLivePreset; - return IsRunwayLivePreset; + value = Preset; + return IsPreset; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset - ? RunwayLivePreset! - : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice PickPreset() => IsPreset + ? Preset! + : throw new global::System.InvalidOperationException($"Expected union variant 'Preset' but the value was {ToString()}."); /// - /// A custom voice created via the Voices API. + /// Clone a voice from a reference audio clip, then speak promptText in that voice. Routes only to models that support voice cloning. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? ReferenceAudio { get; init; } #else - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? ReferenceAudio { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ReferenceAudio))] #endif - public bool IsCustom => Custom != null; + public bool IsReferenceAudio => ReferenceAudio != null; /// /// /// - public bool TryPickCustom( + public bool TryPickReferenceAudio( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? value) + out global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? value) { - value = Custom; - return IsCustom; + value = ReferenceAudio; + return IsReferenceAudio; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom - ? Custom! - : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + public global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice PickReferenceAudio() => IsReferenceAudio + ? ReferenceAudio! + : throw new global::System.InvalidOperationException($"Expected union variant 'ReferenceAudio' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice5(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice5((global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice5(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice value) => new Voice5((global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice5 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice?(Voice5 @this) => @this.Preset; /// /// /// - public Voice5(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + public Voice5(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? value) { - RunwayLivePreset = value; + Preset = value; } /// /// /// - public static Voice5 FromRunwayLivePreset(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice5(value); + public static Voice5 FromPreset(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? value) => new Voice5(value); /// /// /// - public static implicit operator Voice5(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse value) => new Voice5((global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse?)value); + public static implicit operator Voice5(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice value) => new Voice5((global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse?(Voice5 @this) => @this.Custom; + public static implicit operator global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice?(Voice5 @this) => @this.ReferenceAudio; /// /// /// - public Voice5(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? value) + public Voice5(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? value) { - Custom = value; + ReferenceAudio = value; } /// /// /// - public static Voice5 FromCustom(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice5(value); + public static Voice5 FromReferenceAudio(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? value) => new Voice5(value); /// /// /// public Voice5( - global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? type, - global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? custom + global::Runway.CreateGenerateAudioRequestInputVoiceDiscriminatorType? type, + global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice? preset, + global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice? referenceAudio ) { Type = type; - RunwayLivePreset = runwayLivePreset; - Custom = custom; + Preset = preset; + ReferenceAudio = referenceAudio; } /// /// /// public object? Object => - Custom as object ?? - RunwayLivePreset as object + ReferenceAudio as object ?? + Preset as object ; /// /// /// public override string? ToString() => - RunwayLivePreset?.ToString() ?? - Custom?.ToString() + Preset?.ToString() ?? + ReferenceAudio?.ToString() ; /// @@ -169,15 +169,15 @@ RunwayLivePreset as object /// public bool Validate() { - return IsRunwayLivePreset && !IsCustom || !IsRunwayLivePreset && IsCustom; + return IsPreset && !IsReferenceAudio || !IsPreset && IsReferenceAudio; } /// /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? preset = null, + global::System.Func? referenceAudio = null, bool validate = true) { if (validate) @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsRunwayLivePreset && runwayLivePreset != null) + if (IsPreset && preset != null) { - return runwayLivePreset(RunwayLivePreset!); + return preset(Preset!); } - else if (IsCustom && custom != null) + else if (IsReferenceAudio && referenceAudio != null) { - return custom(Custom!); + return referenceAudio(ReferenceAudio!); } return default(TResult); @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? preset = null, - global::System.Action? custom = null, + global::System.Action? referenceAudio = null, bool validate = true) { if (validate) @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsRunwayLivePreset) + if (IsPreset) { - runwayLivePreset?.Invoke(RunwayLivePreset!); + preset?.Invoke(Preset!); } - else if (IsCustom) + else if (IsReferenceAudio) { - custom?.Invoke(Custom!); + referenceAudio?.Invoke(ReferenceAudio!); } } @@ -225,8 +225,8 @@ public void Match( /// ///
public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? preset = null, + global::System.Action? referenceAudio = null, bool validate = true) { if (validate) @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsRunwayLivePreset) + if (IsPreset) { - runwayLivePreset?.Invoke(RunwayLivePreset!); + preset?.Invoke(Preset!); } - else if (IsCustom) + else if (IsReferenceAudio) { - custom?.Invoke(Custom!); + referenceAudio?.Invoke(ReferenceAudio!); } } @@ -251,10 +251,10 @@ public override int GetHashCode() { var fields = new object?[] { - RunwayLivePreset, - typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse), - Custom, - typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse), + Preset, + typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioPresetVoice), + ReferenceAudio, + typeof(global::Runway.CreateGenerateAudioRequestInputVoiceAudioReferenceVoice), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice5 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Preset, other.Preset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ReferenceAudio, other.ReferenceAudio) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice6.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice6.g.cs index 9fd8c1b7..ede3b590 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice6.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice6.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? value) + out global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice6(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice6((global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice6(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice6((global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice6 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice6 @this) => @this.RunwayLivePreset; /// /// /// - public Voice6(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + public Voice6(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice6(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLiv /// /// /// - public static Voice6 FromRunwayLivePreset(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice6(value); + public static Voice6 FromRunwayLivePreset(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice6(value); /// /// /// - public static implicit operator Voice6(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse value) => new Voice6((global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse?)value); + public static implicit operator Voice6(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse value) => new Voice6((global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse?(Voice6 @this) => @this.Custom; + public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse?(Voice6 @this) => @this.Custom; /// /// /// - public Voice6(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? value) + public Voice6(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice6(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoi /// /// /// - public static Voice6 FromCustom(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? value) => new Voice6(value); + public static Voice6 FromCustom(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice6(value); /// /// /// public Voice6( - global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? type, - global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? custom + global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? type, + global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// ///
public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// ///
public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse), + typeof(global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice6 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice7.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice7.g.cs index 98176338..6fdfd1ef 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice7.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice7.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? value) + out global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice7(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice7((global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice7(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice7((global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice7 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice7 @this) => @this.RunwayLivePreset; /// /// /// - public Voice7(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) + public Voice7(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice7(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLi /// /// /// - public static Voice7 FromRunwayLivePreset(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice7(value); + public static Voice7 FromRunwayLivePreset(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice7(value); /// /// /// - public static implicit operator Voice7(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse value) => new Voice7((global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse?)value); + public static implicit operator Voice7(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse value) => new Voice7((global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse?(Voice7 @this) => @this.Custom; + public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse?(Voice7 @this) => @this.Custom; /// /// /// - public Voice7(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? value) + public Voice7(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice7(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVo /// /// /// - public static Voice7 FromCustom(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? value) => new Voice7(value); + public static Voice7 FromCustom(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? value) => new Voice7(value); /// /// /// public Voice7( - global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? type, - global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? custom + global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? type, + global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// ///
public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// ///
public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse), + typeof(global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice7 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice8.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice8.g.cs index c0bbce1d..24a2e5b1 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice8.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice8.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) + out global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice8(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice8((global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice8(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse value) => new Voice8((global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice8 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse?(Voice8 @this) => @this.RunwayLivePreset; /// /// /// - public Voice8(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) + public Voice8(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice8(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLiv /// /// /// - public static Voice8 FromRunwayLivePreset(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice8(value); + public static Voice8 FromRunwayLivePreset(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? value) => new Voice8(value); /// /// /// - public static implicit operator Voice8(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse value) => new Voice8((global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?)value); + public static implicit operator Voice8(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse value) => new Voice8((global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?(Voice8 @this) => @this.Custom; + public static implicit operator global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse?(Voice8 @this) => @this.Custom; /// /// /// - public Voice8(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) + public Voice8(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice8(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoi /// /// /// - public static Voice8 FromCustom(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice8(value); + public static Voice8 FromCustom(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? value) => new Voice8(value); /// /// /// public Voice8( - global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? type, - global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom + global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? type, + global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// ///
public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// ///
public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), + typeof(global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice8 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.Models.Voice9.g.cs b/src/libs/Runway/Generated/Runway.Models.Voice9.g.cs index bb75a158..ae2a94a6 100644 --- a/src/libs/Runway/Generated/Runway.Models.Voice9.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.Voice9.g.cs @@ -12,15 +12,15 @@ namespace Runway /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type { get; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type { get; } /// /// A preset voice from the Runway API. /// #if NET6_0_OR_GREATER - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; init; } #else - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? RunwayLivePreset { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickRunwayLivePreset( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + out global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { value = RunwayLivePreset; return IsRunwayLivePreset; @@ -47,7 +47,7 @@ public bool TryPickRunwayLivePreset( /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse PickRunwayLivePreset() => IsRunwayLivePreset ? RunwayLivePreset! : throw new global::System.InvalidOperationException($"Expected union variant 'RunwayLivePreset' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickRunwayLivePreset( /// A custom voice created via the Voices API. /// #if NET6_0_OR_GREATER - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; init; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; init; } #else - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Custom { get; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Custom { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickCustom( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) + out global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) { value = Custom; return IsCustom; @@ -84,23 +84,23 @@ public bool TryPickCustom( /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse PickCustom() => IsCustom + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse PickCustom() => IsCustom ? Custom! : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); /// /// /// - public static implicit operator Voice9(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse value) => new Voice9((global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?)value); + public static implicit operator Voice9(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse value) => new Voice9((global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse?(Voice9 @this) => @this.RunwayLivePreset; + public static implicit operator global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse?(Voice9 @this) => @this.RunwayLivePreset; /// /// /// - public Voice9(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) + public Voice9(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) { RunwayLivePreset = value; } @@ -108,22 +108,22 @@ public Voice9(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePres /// /// /// - public static Voice9 FromRunwayLivePreset(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? value) => new Voice9(value); + public static Voice9 FromRunwayLivePreset(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? value) => new Voice9(value); /// /// /// - public static implicit operator Voice9(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse value) => new Voice9((global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?)value); + public static implicit operator Voice9(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse value) => new Voice9((global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?)value); /// /// /// - public static implicit operator global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse?(Voice9 @this) => @this.Custom; + public static implicit operator global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse?(Voice9 @this) => @this.Custom; /// /// /// - public Voice9(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) + public Voice9(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) { Custom = value; } @@ -131,15 +131,15 @@ public Voice9(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceRes /// /// /// - public static Voice9 FromCustom(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? value) => new Voice9(value); + public static Voice9 FromCustom(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? value) => new Voice9(value); /// /// /// public Voice9( - global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? type, - global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, - global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? custom + global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? type, + global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? runwayLivePreset, + global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? custom ) { Type = type; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? runwayLivePreset = null, - global::System.Func? custom = null, + global::System.Func? runwayLivePreset = null, + global::System.Func? custom = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// ///
public void Match( - global::System.Action? runwayLivePreset = null, + global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// ///
public void Switch( - global::System.Action? runwayLivePreset = null, - global::System.Action? custom = null, + global::System.Action? runwayLivePreset = null, + global::System.Action? custom = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { RunwayLivePreset, - typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse), + typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse), Custom, - typeof(global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse), + typeof(global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -271,8 +271,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Voice9 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunwayLivePreset, other.RunwayLivePreset) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) ; } diff --git a/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogs.g.cs b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogs.g.cs new file mode 100644 index 00000000..9956dca8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogs.g.cs @@ -0,0 +1,519 @@ + +#nullable enable + +namespace Runway +{ + public partial class OrganizationClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_GetOrganizationWebappAuditLogsSecurityRequirement0 = + 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_GetOrganizationWebappAuditLogsSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_GetOrganizationWebappAuditLogsSecurityRequirement0, + }; + partial void PrepareGetOrganizationWebappAuditLogsArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? cursor, + ref int limit, + ref global::System.Guid? organizationId, + ref string? workspaceIds, + ref string? actions, + ref string? actorEmails, + ref global::System.DateTime? from, + ref global::System.DateTime? to, + ref string xRunwayVersion); + partial void PrepareGetOrganizationWebappAuditLogsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? cursor, + int limit, + global::System.Guid? organizationId, + string? workspaceIds, + string? actions, + string? actorEmails, + global::System.DateTime? from, + global::System.DateTime? to, + string xRunwayVersion); + partial void ProcessGetOrganizationWebappAuditLogsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetOrganizationWebappAuditLogsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List linked workspace audit logs
+ /// List audit log entries for the linked Runway workspaces you administer, newest first. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task GetOrganizationWebappAuditLogsAsync( + int limit, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string? actions = default, + string? actorEmails = default, + global::System.DateTime? from = default, + global::System.DateTime? to = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetOrganizationWebappAuditLogsAsResponseAsync( + limit: limit, + cursor: cursor, + organizationId: organizationId, + workspaceIds: workspaceIds, + actions: actions, + actorEmails: actorEmails, + from: from, + to: to, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List linked workspace audit logs
+ /// List audit log entries for the linked Runway workspaces you administer, newest first. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> GetOrganizationWebappAuditLogsAsResponseAsync( + int limit, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string? actions = default, + string? actorEmails = default, + global::System.DateTime? from = default, + global::System.DateTime? to = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetOrganizationWebappAuditLogsArguments( + httpClient: HttpClient, + cursor: ref cursor, + limit: ref limit, + organizationId: ref organizationId, + workspaceIds: ref workspaceIds, + actions: ref actions, + actorEmails: ref actorEmails, + from: ref from, + to: ref to, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetOrganizationWebappAuditLogsSecurityRequirements, + operationName: "GetOrganizationWebappAuditLogsAsync"); + + 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/organization/webapp/audit_logs", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("cursor", cursor) + .AddRequiredParameter("limit", limit.ToString()!) + .AddOptionalParameter("organizationId", organizationId?.ToString()) + .AddOptionalParameter("workspaceIds", workspaceIds) + .AddOptionalParameter("actions", actions) + .AddOptionalParameter("actorEmails", actorEmails) + .AddOptionalParameter("from", from?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("to", to?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + ; + 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); + PrepareGetOrganizationWebappAuditLogsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + cursor: cursor, + limit: limit!, + organizationId: organizationId, + workspaceIds: workspaceIds, + actions: actions, + actorEmails: actorEmails, + from: from, + to: to, + 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: "getOrganizationWebappAuditLogs", + methodName: "GetOrganizationWebappAuditLogsAsync", + pathTemplate: "\"/v1/organization/webapp/audit_logs\"", + 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: "getOrganizationWebappAuditLogs", + methodName: "GetOrganizationWebappAuditLogsAsync", + pathTemplate: "\"/v1/organization/webapp/audit_logs\"", + 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: "getOrganizationWebappAuditLogs", + methodName: "GetOrganizationWebappAuditLogsAsync", + pathTemplate: "\"/v1/organization/webapp/audit_logs\"", + 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); + ProcessGetOrganizationWebappAuditLogsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getOrganizationWebappAuditLogs", + methodName: "GetOrganizationWebappAuditLogsAsync", + pathTemplate: "\"/v1/organization/webapp/audit_logs\"", + 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: "getOrganizationWebappAuditLogs", + methodName: "GetOrganizationWebappAuditLogsAsync", + pathTemplate: "\"/v1/organization/webapp/audit_logs\"", + 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); + ProcessGetOrganizationWebappAuditLogsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.GetOrganizationWebappAuditLogsResponse.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.GetOrganizationWebappAuditLogsResponse.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.OrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs new file mode 100644 index 00000000..146f69e4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappAuditLogsByEventId.g.cs @@ -0,0 +1,491 @@ + +#nullable enable + +namespace Runway +{ + public partial class OrganizationClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_GetOrganizationWebappAuditLogsByEventIdSecurityRequirement0 = + 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_GetOrganizationWebappAuditLogsByEventIdSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_GetOrganizationWebappAuditLogsByEventIdSecurityRequirement0, + }; + partial void PrepareGetOrganizationWebappAuditLogsByEventIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid eventId, + ref global::System.Guid? organizationId, + ref string xRunwayVersion); + partial void PrepareGetOrganizationWebappAuditLogsByEventIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid eventId, + global::System.Guid? organizationId, + string xRunwayVersion); + partial void ProcessGetOrganizationWebappAuditLogsByEventIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetOrganizationWebappAuditLogsByEventIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get a linked workspace audit log entry
+ /// Get a single audit log entry, including its metadata and forensic details, for a linked Runway workspace you administer. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// + /// 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 GetOrganizationWebappAuditLogsByEventIdAsync( + global::System.Guid eventId, + global::System.Guid? organizationId = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetOrganizationWebappAuditLogsByEventIdAsResponseAsync( + eventId: eventId, + organizationId: organizationId, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get a linked workspace audit log entry
+ /// Get a single audit log entry, including its metadata and forensic details, for a linked Runway workspace you administer. Authorized via the account link between this API project and the workspace. + ///
+ /// + /// + /// + /// 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> GetOrganizationWebappAuditLogsByEventIdAsResponseAsync( + global::System.Guid eventId, + global::System.Guid? organizationId = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetOrganizationWebappAuditLogsByEventIdArguments( + httpClient: HttpClient, + eventId: ref eventId, + organizationId: ref organizationId, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetOrganizationWebappAuditLogsByEventIdSecurityRequirements, + operationName: "GetOrganizationWebappAuditLogsByEventIdAsync"); + + 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/organization/webapp/audit_logs/{eventId}", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("organizationId", organizationId?.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); + PrepareGetOrganizationWebappAuditLogsByEventIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + eventId: eventId!, + organizationId: organizationId, + 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: "getOrganizationWebappAuditLogsByEventId", + methodName: "GetOrganizationWebappAuditLogsByEventIdAsync", + pathTemplate: "$\"/v1/organization/webapp/audit_logs/{eventId}\"", + 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: "getOrganizationWebappAuditLogsByEventId", + methodName: "GetOrganizationWebappAuditLogsByEventIdAsync", + pathTemplate: "$\"/v1/organization/webapp/audit_logs/{eventId}\"", + 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: "getOrganizationWebappAuditLogsByEventId", + methodName: "GetOrganizationWebappAuditLogsByEventIdAsync", + pathTemplate: "$\"/v1/organization/webapp/audit_logs/{eventId}\"", + 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); + ProcessGetOrganizationWebappAuditLogsByEventIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getOrganizationWebappAuditLogsByEventId", + methodName: "GetOrganizationWebappAuditLogsByEventIdAsync", + pathTemplate: "$\"/v1/organization/webapp/audit_logs/{eventId}\"", + 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: "getOrganizationWebappAuditLogsByEventId", + methodName: "GetOrganizationWebappAuditLogsByEventIdAsync", + pathTemplate: "$\"/v1/organization/webapp/audit_logs/{eventId}\"", + 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); + } + // The entry does not exist, or is not visible to your organization. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Runway.GetOrganizationWebappAuditLogsResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Runway.GetOrganizationWebappAuditLogsResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Runway.GetOrganizationWebappAuditLogsResponse3.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); + ProcessGetOrganizationWebappAuditLogsByEventIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.GetOrganizationWebappAuditLogsResponse2.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.GetOrganizationWebappAuditLogsResponse2.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.OrganizationClient.GetOrganizationWebappUsage.g.cs b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappUsage.g.cs new file mode 100644 index 00000000..70d80295 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.OrganizationClient.GetOrganizationWebappUsage.g.cs @@ -0,0 +1,499 @@ + +#nullable enable + +namespace Runway +{ + public partial class OrganizationClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_GetOrganizationWebappUsageSecurityRequirement0 = + 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_GetOrganizationWebappUsageSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_GetOrganizationWebappUsageSecurityRequirement0, + }; + partial void PrepareGetOrganizationWebappUsageArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? cursor, + ref int limit, + ref global::System.DateTime from, + ref global::System.DateTime to, + ref global::System.Guid? organizationId, + ref string? workspaceIds, + ref string xRunwayVersion); + partial void PrepareGetOrganizationWebappUsageRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? cursor, + int limit, + global::System.DateTime from, + global::System.DateTime to, + global::System.Guid? organizationId, + string? workspaceIds, + string xRunwayVersion); + partial void ProcessGetOrganizationWebappUsageResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetOrganizationWebappUsageResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List linked workspace usage
+ /// List per-generation credit-usage rows for the linked Runway workspaces you administer, newest first. Unlike `/v1/organization/usage` (this API project's own usage), this reports usage from the workspace linked to this API project. Authorized via that account link. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task GetOrganizationWebappUsageAsync( + int limit, + global::System.DateTime from, + global::System.DateTime to, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetOrganizationWebappUsageAsResponseAsync( + limit: limit, + from: from, + to: to, + cursor: cursor, + organizationId: organizationId, + workspaceIds: workspaceIds, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List linked workspace usage
+ /// List per-generation credit-usage rows for the linked Runway workspaces you administer, newest first. Unlike `/v1/organization/usage` (this API project's own usage), this reports usage from the workspace linked to this API project. Authorized via that account link. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> GetOrganizationWebappUsageAsResponseAsync( + int limit, + global::System.DateTime from, + global::System.DateTime to, + string? cursor = default, + global::System.Guid? organizationId = default, + string? workspaceIds = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetOrganizationWebappUsageArguments( + httpClient: HttpClient, + cursor: ref cursor, + limit: ref limit, + from: ref from, + to: ref to, + organizationId: ref organizationId, + workspaceIds: ref workspaceIds, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetOrganizationWebappUsageSecurityRequirements, + operationName: "GetOrganizationWebappUsageAsync"); + + 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/organization/webapp/usage", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("cursor", cursor) + .AddRequiredParameter("limit", limit.ToString()!) + .AddRequiredParameter("from", from.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddRequiredParameter("to", to.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("organizationId", organizationId?.ToString()) + .AddOptionalParameter("workspaceIds", workspaceIds) + ; + 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); + PrepareGetOrganizationWebappUsageRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + cursor: cursor, + limit: limit!, + from: from!, + to: to!, + organizationId: organizationId, + workspaceIds: workspaceIds, + 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: "getOrganizationWebappUsage", + methodName: "GetOrganizationWebappUsageAsync", + pathTemplate: "\"/v1/organization/webapp/usage\"", + 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: "getOrganizationWebappUsage", + methodName: "GetOrganizationWebappUsageAsync", + pathTemplate: "\"/v1/organization/webapp/usage\"", + 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: "getOrganizationWebappUsage", + methodName: "GetOrganizationWebappUsageAsync", + pathTemplate: "\"/v1/organization/webapp/usage\"", + 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); + ProcessGetOrganizationWebappUsageResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getOrganizationWebappUsage", + methodName: "GetOrganizationWebappUsageAsync", + pathTemplate: "\"/v1/organization/webapp/usage\"", + 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: "getOrganizationWebappUsage", + methodName: "GetOrganizationWebappUsageAsync", + pathTemplate: "\"/v1/organization/webapp/usage\"", + 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); + ProcessGetOrganizationWebappUsageResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.GetOrganizationWebappUsageResponse.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.GetOrganizationWebappUsageResponse.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.RecipesClient.CreateRecipesAdLocalization.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesAdLocalization.g.cs index 654ca066..9d031e5f 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesAdLocalization.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesAdLocalization.g.cs @@ -375,24 +375,61 @@ partial void ProcessCreateRecipesAdLocalizationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesAdLocalizationResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesAdLocalizationResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesAdLocalizationResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesAdLocalizationResponse2? __value_429 = null; + global::Runway.CreateRecipesAdLocalizationResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesAdLocalizationResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesAdLocalizationResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesAdLocalizationResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesAdLocalizationResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +438,7 @@ partial void ProcessCreateRecipesAdLocalizationResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMarketingStockImage.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMarketingStockImage.g.cs index e15a503c..0ea84413 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMarketingStockImage.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMarketingStockImage.g.cs @@ -375,24 +375,61 @@ partial void ProcessCreateRecipesMarketingStockImageResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesMarketingStockImageResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesMarketingStockImageResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesMarketingStockImageResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesMarketingStockImageResponse2? __value_429 = null; + global::Runway.CreateRecipesMarketingStockImageResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesMarketingStockImageResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesMarketingStockImageResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesMarketingStockImageResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesMarketingStockImageResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +438,7 @@ partial void ProcessCreateRecipesMarketingStockImageResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMultiShotVideo.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMultiShotVideo.g.cs index 9d4c42e6..51eb585d 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMultiShotVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesMultiShotVideo.g.cs @@ -375,24 +375,61 @@ partial void ProcessCreateRecipesMultiShotVideoResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesMultiShotVideoResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesMultiShotVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesMultiShotVideoResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesMultiShotVideoResponse2? __value_429 = null; + global::Runway.CreateRecipesMultiShotVideoResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesMultiShotVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesMultiShotVideoResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesMultiShotVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesMultiShotVideoResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +438,7 @@ partial void ProcessCreateRecipesMultiShotVideoResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductAd.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductAd.g.cs index a1162d3a..94e477d6 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductAd.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductAd.g.cs @@ -385,24 +385,61 @@ partial void ProcessCreateRecipesProductAdResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesProductAdResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesProductAdResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesProductAdResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesProductAdResponse2? __value_429 = null; + global::Runway.CreateRecipesProductAdResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductAdResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductAdResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductAdResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductAdResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -411,7 +448,7 @@ partial void ProcessCreateRecipesProductAdResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductCampaignImage.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductCampaignImage.g.cs index e31e4b6d..24b5e535 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductCampaignImage.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductCampaignImage.g.cs @@ -375,24 +375,61 @@ partial void ProcessCreateRecipesProductCampaignImageResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesProductCampaignImageResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesProductCampaignImageResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesProductCampaignImageResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesProductCampaignImageResponse2? __value_429 = null; + global::Runway.CreateRecipesProductCampaignImageResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductCampaignImageResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductCampaignImageResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductCampaignImageResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductCampaignImageResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +438,7 @@ partial void ProcessCreateRecipesProductCampaignImageResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductSwap.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductSwap.g.cs index 28afa0c8..1d982d8c 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductSwap.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductSwap.g.cs @@ -385,24 +385,61 @@ partial void ProcessCreateRecipesProductSwapResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesProductSwapResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesProductSwapResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesProductSwapResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesProductSwapResponse2? __value_429 = null; + global::Runway.CreateRecipesProductSwapResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductSwapResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductSwapResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductSwapResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductSwapResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -411,7 +448,7 @@ partial void ProcessCreateRecipesProductSwapResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductUgc.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductUgc.g.cs index ea46e640..877e6b8c 100644 --- a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductUgc.g.cs +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesProductUgc.g.cs @@ -381,24 +381,61 @@ partial void ProcessCreateRecipesProductUgcResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateRecipesProductUgcResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateRecipesProductUgcResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateRecipesProductUgcResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateRecipesProductUgcResponse2? __value_429 = null; + global::Runway.CreateRecipesProductUgcResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductUgcResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductUgcResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateRecipesProductUgcResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateRecipesProductUgcResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +444,7 @@ partial void ProcessCreateRecipesProductUgcResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs index 49885888..9e3f0948 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateCharacterPerformance.g.cs @@ -393,24 +393,61 @@ partial void ProcessCreateCharacterPerformanceResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateCharacterPerformanceResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateCharacterPerformanceResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateCharacterPerformanceResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateCharacterPerformanceResponse2? __value_429 = null; + global::Runway.CreateCharacterPerformanceResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateCharacterPerformanceResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateCharacterPerformanceResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateCharacterPerformanceResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateCharacterPerformanceResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +456,7 @@ partial void ProcessCreateCharacterPerformanceResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs index cc96fc87..2bfcead8 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageToVideo.g.cs @@ -381,24 +381,61 @@ partial void ProcessCreateImageToVideoResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateImageToVideoResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateImageToVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateImageToVideoResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateImageToVideoResponse2? __value_429 = null; + global::Runway.CreateImageToVideoResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateImageToVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateImageToVideoResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateImageToVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateImageToVideoResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +444,7 @@ partial void ProcessCreateImageToVideoResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageUpscale.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageUpscale.g.cs index 8966c613..fea9fe3a 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageUpscale.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateImageUpscale.g.cs @@ -379,24 +379,61 @@ partial void ProcessCreateImageUpscaleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateImageUpscaleResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateImageUpscaleResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateImageUpscaleResponse2? __value_429 = null; + global::Runway.CreateImageUpscaleResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateImageUpscaleResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateImageUpscaleResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateImageUpscaleResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateImageUpscaleResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +442,7 @@ partial void ProcessCreateImageUpscaleResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs index c7111086..d2b0b005 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSoundEffect.g.cs @@ -381,24 +381,61 @@ partial void ProcessCreateSoundEffectResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateSoundEffectResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateSoundEffectResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateSoundEffectResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateSoundEffectResponse2? __value_429 = null; + global::Runway.CreateSoundEffectResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateSoundEffectResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateSoundEffectResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateSoundEffectResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateSoundEffectResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +444,7 @@ partial void ProcessCreateSoundEffectResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs index f911c469..a7714a6f 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateSpeechToSpeech.g.cs @@ -419,24 +419,61 @@ partial void ProcessCreateSpeechToSpeechResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateSpeechToSpeechResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateSpeechToSpeechResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateSpeechToSpeechResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateSpeechToSpeechResponse2? __value_429 = null; + global::Runway.CreateSpeechToSpeechResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateSpeechToSpeechResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateSpeechToSpeechResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateSpeechToSpeechResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateSpeechToSpeechResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +482,7 @@ partial void ProcessCreateSpeechToSpeechResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs index a9505aab..7df9f66b 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToImage.g.cs @@ -379,24 +379,61 @@ partial void ProcessCreateTextToImageResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateTextToImageResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateTextToImageResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateTextToImageResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateTextToImageResponse2? __value_429 = null; + global::Runway.CreateTextToImageResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateTextToImageResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateTextToImageResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateTextToImageResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateTextToImageResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +442,7 @@ partial void ProcessCreateTextToImageResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs index 332efeef..e5edb702 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToSpeech.g.cs @@ -61,12 +61,14 @@ partial void ProcessCreateTextToSpeechResponseContent( /// const client = new RunwayML();
/// const task = await client.textToSpeech
/// .create({
- /// model: 'eleven_multilingual_v2',
- /// promptText: 'The quick brown fox jumps over the lazy dog',
+ /// model: 'eleven_v3',
+ /// promptText: '[laughs] The quick brown fox jumps over the lazy dog',
/// voice: {
/// type: 'runway-preset',
/// presetId: 'Leslie',
/// },
+ /// stability: 0.5,
+ /// languageCode: 'en',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -106,12 +108,14 @@ partial void ProcessCreateTextToSpeechResponseContent( /// const client = new RunwayML();
/// const task = await client.textToSpeech
/// .create({
- /// model: 'eleven_multilingual_v2',
- /// promptText: 'The quick brown fox jumps over the lazy dog',
+ /// model: 'eleven_v3',
+ /// promptText: '[laughs] The quick brown fox jumps over the lazy dog',
/// voice: {
/// type: 'runway-preset',
/// presetId: 'Leslie',
/// },
+ /// stability: 0.5,
+ /// languageCode: 'en',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -385,24 +389,61 @@ partial void ProcessCreateTextToSpeechResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateTextToSpeechResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateTextToSpeechResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateTextToSpeechResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateTextToSpeechResponse2? __value_429 = null; + global::Runway.CreateTextToSpeechResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateTextToSpeechResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateTextToSpeechResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateTextToSpeechResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateTextToSpeechResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -411,7 +452,7 @@ partial void ProcessCreateTextToSpeechResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs index f1daaffd..c32304da 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateTextToVideo.g.cs @@ -381,24 +381,61 @@ partial void ProcessCreateTextToVideoResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateTextToVideoResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateTextToVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateTextToVideoResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateTextToVideoResponse2? __value_429 = null; + global::Runway.CreateTextToVideoResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateTextToVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateTextToVideoResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateTextToVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateTextToVideoResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +444,7 @@ partial void ProcessCreateTextToVideoResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs index 387da4f9..cfb05f54 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoToVideo.g.cs @@ -61,16 +61,15 @@ partial void ProcessCreateVideoToVideoResponseContent( /// const client = new RunwayML();
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: 'https://example.com/bunny.mp4',
/// promptText: 'string',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -110,16 +109,15 @@ partial void ProcessCreateVideoToVideoResponseContent( /// const client = new RunwayML();
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: 'https://example.com/bunny.mp4',
/// promptText: 'string',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -393,24 +391,61 @@ partial void ProcessCreateVideoToVideoResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateVideoToVideoResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateVideoToVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateVideoToVideoResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateVideoToVideoResponse2? __value_429 = null; + global::Runway.CreateVideoToVideoResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVideoToVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVideoToVideoResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVideoToVideoResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVideoToVideoResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +454,7 @@ partial void ProcessCreateVideoToVideoResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoUpscale.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoUpscale.g.cs index afbebab8..0bd0133b 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoUpscale.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVideoUpscale.g.cs @@ -379,24 +379,61 @@ partial void ProcessCreateVideoUpscaleResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateVideoUpscaleResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateVideoUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateVideoUpscaleResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateVideoUpscaleResponse2? __value_429 = null; + global::Runway.CreateVideoUpscaleResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVideoUpscaleResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVideoUpscaleResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVideoUpscaleResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVideoUpscaleResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +442,7 @@ partial void ProcessCreateVideoUpscaleResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs index 047a944a..45b766ba 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceDubbing.g.cs @@ -379,24 +379,61 @@ partial void ProcessCreateVoiceDubbingResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateVoiceDubbingResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateVoiceDubbingResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateVoiceDubbingResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateVoiceDubbingResponse2? __value_429 = null; + global::Runway.CreateVoiceDubbingResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVoiceDubbingResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVoiceDubbingResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVoiceDubbingResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVoiceDubbingResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +442,7 @@ partial void ProcessCreateVoiceDubbingResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs index b22adaf0..dc7dd1bc 100644 --- a/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs +++ b/src/libs/Runway/Generated/Runway.StartGeneratingClient.CreateVoiceIsolation.g.cs @@ -377,24 +377,61 @@ partial void ProcessCreateVoiceIsolationResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateVoiceIsolationResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateVoiceIsolationResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateVoiceIsolationResponse2.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)); + } // You have exceeded the rate limit for this endpoint. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Runway.CreateVoiceIsolationResponse2? __value_429 = null; + global::Runway.CreateVoiceIsolationResponse3? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVoiceIsolationResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVoiceIsolationResponse3.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Runway.CreateVoiceIsolationResponse2.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Runway.CreateVoiceIsolationResponse3.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +440,7 @@ partial void ProcessCreateVoiceIsolationResponseContent( } - throw global::Runway.ApiException.Create( + throw global::Runway.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, diff --git a/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs b/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs index 407a8a23..e4d409f9 100644 --- a/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs +++ b/src/libs/Runway/Generated/Runway.UploadsClient.CreateUploads.g.cs @@ -67,16 +67,15 @@ partial void ProcessCreateUploadsResponseContent( /// // Use the runwayUri in generation requests
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: uploadUri,
/// promptText: 'Add the easter elements to the cat video',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); @@ -122,16 +121,15 @@ partial void ProcessCreateUploadsResponseContent( /// // Use the runwayUri in generation requests
/// const task = await client.videoToVideo
/// .create({
- /// model: 'gen4_aleph',
+ /// model: 'aleph2',
/// videoUri: uploadUri,
/// promptText: 'Add the easter elements to the cat video',
- /// references: [
+ /// keyframes: [
/// {
- /// type: 'image',
/// uri: 'https://example.com/easter-scene.jpg',
+ /// at: 0,
/// },
/// ],
- /// ratio: '1280:720',
/// })
/// .waitForTaskOutput();
/// console.log(task); diff --git a/src/libs/Runway/openapi.json b/src/libs/Runway/openapi.json index df6436a3..4c149ef3 100644 --- a/src/libs/Runway/openapi.json +++ b/src/libs/Runway/openapi.json @@ -5692,9 +5692,26 @@ "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))$" }, - "status": { "type": "string", "const": "PENDING" } + "status": { "type": "string", "const": "PENDING" }, + "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": ["id", "createdAt", "status"], + "required": [ + "id", + "createdAt", + "status", + "estimatedCost" + ], "additionalProperties": false }, { @@ -5713,9 +5730,26 @@ "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))$" }, - "status": { "type": "string", "const": "THROTTLED" } + "status": { "type": "string", "const": "THROTTLED" }, + "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": ["id", "createdAt", "status"], + "required": [ + "id", + "createdAt", + "status", + "estimatedCost" + ], "additionalProperties": false }, { @@ -5734,9 +5768,23 @@ "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))$" }, - "status": { "type": "string", "const": "CANCELLED" } + "status": { "type": "string", "const": "CANCELLED" }, + "cost": { + "description": "Final cost in credits for a terminal task. A refunded task reports 0.", + "type": "object", + "properties": { + "credits": { + "description": "Credits charged for this task.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": ["credits"], + "additionalProperties": false + } }, - "required": ["id", "createdAt", "status"], + "required": ["id", "createdAt", "status", "cost"], "additionalProperties": false }, { @@ -5760,9 +5808,27 @@ "type": "number", "minimum": 0, "maximum": 1 + }, + "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": ["id", "createdAt", "status", "progress"], + "required": [ + "id", + "createdAt", + "status", + "progress", + "estimatedCost" + ], "additionalProperties": false }, { @@ -5789,9 +5855,29 @@ "failureCode": { "description": "A machine-readable error code for the failure. See https://docs.dev.runwayml.com/errors/task-failures/ for more information.", "type": "string" + }, + "cost": { + "description": "Final cost in credits for a terminal task. A refunded task reports 0.", + "type": "object", + "properties": { + "credits": { + "description": "Credits charged for this task.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id", "createdAt", "status", "failure"], + "required": [ + "id", + "createdAt", + "status", + "failure", + "cost" + ], "additionalProperties": false }, { @@ -5815,9 +5901,29 @@ "description": "An array of URLs that return the output of the task. These URLs will expire within 24-48 hours; fetch the task again to get fresh URLs. It is expected that you download the assets at these URLs and store them in your own storage system.", "type": "array", "items": { "type": "string", "format": "uri" } + }, + "cost": { + "description": "Final cost in credits for a terminal task. A refunded task reports 0.", + "type": "object", + "properties": { + "credits": { + "description": "Credits charged for this task.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id", "createdAt", "status", "output"], + "required": [ + "id", + "createdAt", + "status", + "output", + "cost" + ], "additionalProperties": false } ], @@ -5830,7 +5936,8 @@ "value": { "id": "17f20503-6c24-4c16-946b-35dbbce2af2f", "status": "PENDING", - "createdAt": "2024-06-27T19:49:32.334Z" + "createdAt": "2024-06-27T19:49:32.334Z", + "estimatedCost": { "credits": 25 } } }, "throttled": { @@ -5839,7 +5946,8 @@ "value": { "id": "355e42da-b3f9-4b65-9be2-fb10bda026fc", "status": "THROTTLED", - "createdAt": "2024-06-27T19:49:32.335Z" + "createdAt": "2024-06-27T19:49:32.335Z", + "estimatedCost": { "credits": 25 } } }, "running": { @@ -5849,7 +5957,8 @@ "id": "08388106-1b46-4f5c-bd46-1c1d7ee86892", "status": "RUNNING", "createdAt": "2024-06-27T19:49:32.335Z", - "progress": 0.2 + "progress": 0.2, + "estimatedCost": { "credits": 25 } } }, "succeeded": { @@ -5862,7 +5971,8 @@ "output": [ "https://example.com/output1.jpg", "https://example.com/output2.jpg" - ] + ], + "cost": { "credits": 25 } } }, "failed": { @@ -5873,7 +5983,8 @@ "status": "FAILED", "createdAt": "2024-06-27T19:49:32.335Z", "failure": "The provided image was flagged by content moderation.", - "failureCode": "SAFETY.INPUT.IMAGE" + "failureCode": "SAFETY.INPUT.IMAGE", + "cost": { "credits": 0 } } } } @@ -5947,6 +6058,16 @@ "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\ntask = client.image_to_video.create(\n model='gen4_turbo',\n prompt_image='https://example.com/bunny.jpg',\n prompt_text='A cute bunny hopping in a meadow',\n duration=10,\n).wait_for_task_output()\n\nprint(task)" + }, + { + "lang": "TypeScript", + "label": "Node SDK (Hailuo 3.0)", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.imageToVideo\n .create({\n model: 'hailuo3',\n promptImage: [\n { uri: 'https://example.com/start-frame.jpg', position: 'first' },\n ],\n promptText: 'Gentle camera push-in as morning light fills the scene',\n ratio: '16:9',\n resolution: '2K',\n duration: 8,\n })\n .waitForTaskOutput();\n\nconsole.log(task);" + }, + { + "lang": "Python", + "label": "Python SDK (Hailuo 3.0)", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.image_to_video.create(\n model='hailuo3',\n prompt_image=[\n {'uri': 'https://example.com/start-frame.jpg', 'position': 'first'},\n ],\n prompt_text='Gentle camera push-in as morning light fills the scene',\n ratio='16:9',\n resolution='2K',\n duration=8,\n).wait_for_task_output()\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -6086,6 +6207,23 @@ }, "additionalProperties": false }, + "outputFormat": { + "description": "The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output.", + "type": "string", + "enum": ["mp4", "prores", "png_sequence"] + }, + "proresProfile": { + "description": "The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`.", + "type": "string", + "enum": [ + "422", + "4444", + "422 Proxy", + "422 LT", + "422 HQ", + "4444 XQ" + ] + }, "model": { "type": "string", "const": "gen4.5" } }, "required": [ @@ -6500,6 +6638,131 @@ }, "required": ["promptImage", "ratio", "model"] }, + { + "title": "hailuo3", + "type": "object", + "properties": { + "promptImage": { + "description": "An image or array of images. Use position `first`/`last` for keyframe mode, or omit position for reference images. The two modes cannot be mixed.", + "anyOf": [ + { + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" + } + ] + }, + { + "minItems": 1, + "maxItems": 9, + "type": "array", + "items": {} + } + ] + }, + "promptText": { + "description": "A non-empty text prompt describing what should appear in the output.", + "type": "string", + "minLength": 1, + "maxLength": 6000 + }, + "resolution": { + "description": "The output resolution. Hailuo 3.0 supports 768P and 2K.", + "type": "string", + "enum": ["2K", "768P"] + }, + "duration": { + "description": "The number of seconds of duration for the output video.", + "type": "integer", + "minimum": 5, + "maximum": 15 + }, + "ratio": { + "description": "The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio.", + "type": "string", + "enum": [ + "adaptive", + "21:9", + "16:9", + "4:3", + "1:1", + "3:4", + "9:16" + ] + }, + "referenceAudio": { + "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "maxItems": 3, + "type": "array", + "items": { + "title": "AudioReference", + "description": "An audio reference allows the model to use the audio as additional context for the output.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "audio" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "uri"], + "additionalProperties": false + } + }, + "model": { "type": "string", "const": "hailuo3" } + }, + "required": ["promptImage", "promptText", "model"], + "additionalProperties": false + }, { "title": "happyhorse_1_0", "type": "object", @@ -6755,7 +7018,7 @@ ] }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -6936,7 +7199,7 @@ ] }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -7117,7 +7380,7 @@ ] }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -7279,16 +7542,11 @@ "required": ["promptImage", "model"] }, { - "title": "veo3", + "title": "seedance2_5", "type": "object", "properties": { - "promptText": { - "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", - "type": "string", - "minLength": 1, - "maxLength": 1000 - }, "promptImage": { + "description": "An image or array of images. Use position `first`/`last` for keyframe mode, or omit position for reference images. The two modes cannot be mixed.", "anyOf": [ { "description": "A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", @@ -7322,14 +7580,22 @@ }, { "title": "PromptImages", - "description": "An array of objects representing images to be used in the output video. Only a `first` frame is supported.", - "minItems": 1, - "maxItems": 1, - "type": "array", - "items": { - "title": "PromptImage", - "x-stainless-variantName": "PromptImage", - "type": "object", + "description": "An array of image objects. Use position \"first\"/\"last\" for keyframe mode, or omit position for reference images. The two modes cannot be mixed.", + "example": [ + { + "uri": "https://example.com/firstFrame.jpg", + "position": "first" + }, + { + "uri": "https://example.com/lastFrame.jpg", + "position": "last" + } + ], + "type": "array", + "items": { + "title": "PromptImage", + "x-stainless-variantName": "PromptImage", + "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.", @@ -7362,40 +7628,99 @@ ] }, "position": { - "description": "The position of the image in the output video. \"first\" will use the image as the first frame of the video.", + "description": "The position of the image in the output video. \"first\" will use the image as the first frame, \"last\" as the last frame. Omit for a reference image.", "type": "string", - "const": "first" + "enum": ["first", "last"] } }, - "required": ["uri", "position"] + "required": ["uri"] } } ] }, + "promptText": { + "description": "An optional text prompt up to 15000 characters describing what should appear in the output.", + "type": "string", + "minLength": 1, + "maxLength": 15000 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" + }, "duration": { "description": "The number of seconds of duration for the output video.", - "type": "number", - "const": 8 + "type": "integer", + "minimum": 4, + "maximum": 30 }, "ratio": { - "description": "The resolution of the output video.", + "description": "The resolution of the output video. Seedance 2.5 supports 480p and 720p only.", "type": "string", "enum": [ + "992:432", + "854:480", + "752:560", + "640:640", + "560:752", + "480:854", + "1470:630", "1280:720", - "720:1280", - "1080:1920", - "1920:1080" + "1112:834", + "960:960", + "834:1112", + "720:1280" ] }, - "negativePrompt": { - "description": "Text describing what should not appear in the output video.", - "type": "string", - "minLength": 1, - "maxLength": 1000 + "referenceAudio": { + "description": "An optional array of audio references. The total combined duration must not exceed 30 seconds.", + "maxItems": 10, + "type": "array", + "items": { + "title": "AudioReference", + "description": "An audio reference allows the model to use the audio as additional context for the output.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "audio" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "uri"] + } }, - "model": { "type": "string", "const": "veo3" } + "model": { "type": "string", "const": "seedance2_5" } }, - "required": ["promptImage", "duration", "ratio", "model"] + "required": ["promptImage", "model"], + "additionalProperties": false } ], "discriminator": { "propertyName": "model" } @@ -7416,9 +7741,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -7455,6 +7843,16 @@ "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\ntask = client.text_to_video.create(\n model='veo3.1',\n prompt_text='A cute bunny hopping in a meadow',\n ratio='1280:720',\n duration=8,\n).wait_for_task_output()\n\nprint(task)" + }, + { + "lang": "TypeScript", + "label": "Node SDK (Hailuo 3.0)", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.textToVideo\n .create({\n model: 'hailuo3',\n promptText: 'A cinematic aerial shot over misty mountains at sunrise',\n ratio: '16:9',\n resolution: '2K',\n duration: 8,\n })\n .waitForTaskOutput();\n\nconsole.log(task);" + }, + { + "lang": "Python", + "label": "Python SDK (Hailuo 3.0)", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.text_to_video.create(\n model='hailuo3',\n prompt_text='A cinematic aerial shot over misty mountains at sunrise',\n ratio='16:9',\n resolution='2K',\n duration=8,\n).wait_for_task_output()\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -7503,6 +7901,23 @@ }, "additionalProperties": false }, + "outputFormat": { + "description": "The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output.", + "type": "string", + "enum": ["mp4", "prores", "png_sequence"] + }, + "proresProfile": { + "description": "The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`.", + "type": "string", + "enum": [ + "422", + "4444", + "422 Proxy", + "422 LT", + "422 HQ", + "4444 XQ" + ] + }, "model": { "type": "string", "const": "gen4.5" } }, "required": ["promptText", "ratio", "duration", "model"] @@ -7588,91 +8003,37 @@ "required": ["promptText", "ratio", "model"] }, { - "title": "happyhorse_1_0", - "type": "object", - "properties": { - "promptText": { - "description": "A non-empty string up to 2500 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", - "type": "string", - "minLength": 2, - "maxLength": 2500 - }, - "duration": { - "description": "The number of seconds of duration for the output video.", - "type": "integer", - "minimum": 3, - "maximum": 15 - }, - "ratio": { - "description": "The resolution of the output video.", - "type": "string", - "enum": [ - "1280:720", - "720:1280", - "960:960", - "1108:832", - "832:1108", - "1920:1080", - "1080:1920", - "1440:1440", - "1662:1248", - "1248:1662" - ] - }, - "model": { "type": "string", "const": "happyhorse_1_0" } - }, - "required": ["promptText", "model"], - "additionalProperties": false - }, - { - "title": "seedance2", + "title": "hailuo3", "type": "object", "properties": { "promptText": { - "description": "A non-empty text prompt up to 3500 characters describing what should appear in the output.", + "description": "A non-empty text prompt describing what should appear in the output.", "type": "string", "minLength": 1, - "maxLength": 3500 + "maxLength": 6000 }, - "audio": { - "description": "Whether to generate audio for the video.", - "default": true, - "type": "boolean" + "resolution": { + "description": "The output resolution. Hailuo 3.0 supports 768P and 2K.", + "type": "string", + "enum": ["2K", "768P"] }, "duration": { "description": "The number of seconds of duration for the output video.", "type": "integer", - "minimum": 4, + "minimum": 5, "maximum": 15 }, "ratio": { - "description": "The resolution of the output video.", + "description": "The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio.", "type": "string", "enum": [ - "992:432", - "864:496", - "752:560", - "640:640", - "560:752", - "496:864", - "1470:630", - "1280:720", - "1112:834", - "960:960", - "834:1112", - "720:1280", - "2206:946", - "1920:1080", - "1664:1248", - "1440:1440", - "1248:1664", - "1080:1920", - "3840:1646", - "3840:2160", - "3840:2880", - "3840:3840", - "2880:3840", - "2160:3840" + "adaptive", + "21:9", + "16:9", + "4:3", + "1:1", + "3:4", + "9:16" ] }, "references": { @@ -7760,7 +8121,8 @@ ] } }, - "required": ["type", "uri"] + "required": ["type", "uri"], + "additionalProperties": false } }, "referenceAudio": { @@ -7804,44 +8166,270 @@ ] } }, - "required": ["type", "uri"] + "required": ["type", "uri"], + "additionalProperties": false } }, - "model": { "type": "string", "const": "seedance2" } + "model": { "type": "string", "const": "hailuo3" } }, "required": ["promptText", "model"], "additionalProperties": false }, { - "title": "seedance2_fast", + "title": "happyhorse_1_0", "type": "object", "properties": { "promptText": { - "description": "A non-empty text prompt up to 3500 characters describing what should appear in the output.", + "description": "A non-empty string up to 2500 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", "type": "string", - "minLength": 1, - "maxLength": 3500 - }, - "audio": { - "description": "Whether to generate audio for the video.", - "default": true, - "type": "boolean" + "minLength": 2, + "maxLength": 2500 }, "duration": { "description": "The number of seconds of duration for the output video.", "type": "integer", - "minimum": 4, + "minimum": 3, "maximum": 15 }, "ratio": { - "description": "The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p only.", + "description": "The resolution of the output video.", "type": "string", "enum": [ - "992:432", - "864:496", - "752:560", - "640:640", - "560:752", + "1280:720", + "720:1280", + "960:960", + "1108:832", + "832:1108", + "1920:1080", + "1080:1920", + "1440:1440", + "1662:1248", + "1248:1662" + ] + }, + "model": { "type": "string", "const": "happyhorse_1_0" } + }, + "required": ["promptText", "model"], + "additionalProperties": false + }, + { + "title": "seedance2", + "type": "object", + "properties": { + "promptText": { + "description": "A non-empty text prompt up to 3500 characters describing what should appear in the output.", + "type": "string", + "minLength": 1, + "maxLength": 3500 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" + }, + "duration": { + "description": "The number of seconds of duration for the output video.", + "type": "integer", + "minimum": 4, + "maximum": 15 + }, + "ratio": { + "description": "The resolution of the output video.", + "type": "string", + "enum": [ + "992:432", + "864:496", + "752:560", + "640:640", + "560:752", + "496:864", + "1470:630", + "1280:720", + "1112:834", + "960:960", + "834:1112", + "720:1280", + "2206:946", + "1920:1080", + "1664:1248", + "1440:1440", + "1248:1664", + "1080:1920", + "3840:1646", + "3840:2160", + "3840:2880", + "3840:3840", + "2880:3840", + "2160:3840" + ] + }, + "references": { + "description": "An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information.", + "maxItems": 9, + "type": "array", + "items": { + "title": "PromptImage", + "x-stainless-variantName": "PromptImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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 + } + }, + "referenceVideos": { + "description": "An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "maxItems": 3, + "type": "array", + "items": { + "title": "VideoReference", + "description": "A video reference allows the model to use the video as additional context for the output.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "video" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": ["type", "uri"] + } + }, + "referenceAudio": { + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", + "maxItems": 3, + "type": "array", + "items": { + "title": "AudioReference", + "description": "An audio reference allows the model to use the audio as additional context for the output.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "audio" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "uri"] + } + }, + "model": { "type": "string", "const": "seedance2" } + }, + "required": ["promptText", "model"], + "additionalProperties": false + }, + { + "title": "seedance2_fast", + "type": "object", + "properties": { + "promptText": { + "description": "A non-empty text prompt up to 3500 characters describing what should appear in the output.", + "type": "string", + "minLength": 1, + "maxLength": 3500 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" + }, + "duration": { + "description": "The number of seconds of duration for the output video.", + "type": "integer", + "minimum": 4, + "maximum": 15 + }, + "ratio": { + "description": "The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p only.", + "type": "string", + "enum": [ + "992:432", + "864:496", + "752:560", + "640:640", + "560:752", "496:864", "1470:630", "1280:720", @@ -7940,7 +8528,7 @@ } }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -8116,7 +8704,7 @@ } }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -8193,39 +8781,180 @@ "required": ["promptText", "model"] }, { - "title": "veo3", + "title": "seedance2_5", "type": "object", "properties": { "promptText": { - "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", + "description": "An optional text prompt up to 15000 characters describing what should appear in the output.", "type": "string", "minLength": 1, - "maxLength": 1000 + "maxLength": 15000 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" }, "duration": { "description": "The number of seconds of duration for the output video.", - "type": "number", - "const": 8 + "type": "integer", + "minimum": 4, + "maximum": 30 }, "ratio": { - "description": "The resolution of the output video.", + "description": "The resolution of the output video. Seedance 2.5 supports 480p and 720p only.", "type": "string", "enum": [ + "992:432", + "854:480", + "752:560", + "640:640", + "560:752", + "480:854", + "1470:630", "1280:720", - "720:1280", - "1080:1920", - "1920:1080" + "1112:834", + "960:960", + "834:1112", + "720:1280" ] }, - "negativePrompt": { - "description": "Text describing what should not appear in the output video.", - "type": "string", - "minLength": 1, - "maxLength": 1000 + "references": { + "description": "An optional array of image references (up to 30). See [our docs](/assets/inputs#images) on image inputs for more information.", + "maxItems": 30, + "type": "array", + "items": { + "title": "PromptImage", + "x-stainless-variantName": "PromptImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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 + } + }, + "referenceVideos": { + "description": "An optional array of video references. The combined duration across all video references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "maxItems": 10, + "type": "array", + "items": { + "title": "VideoReference", + "description": "A video reference allows the model to use the video as additional context for the output.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "video" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": ["type", "uri"] + } + }, + "referenceAudio": { + "description": "An optional array of audio references. The total combined duration must be less than 30 seconds.", + "maxItems": 10, + "type": "array", + "items": { + "title": "AudioReference", + "description": "An audio reference allows the model to use the audio as additional context for the output.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "audio" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "uri"] + } }, - "model": { "type": "string", "const": "veo3" } + "model": { "type": "string", "const": "seedance2_5" } }, - "required": ["promptText", "duration", "ratio", "model"] + "required": ["model"], + "additionalProperties": false } ], "discriminator": { "propertyName": "model" } @@ -8246,9 +8975,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -8279,12 +9071,22 @@ { "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 task = await client.videoToVideo\n .create({\n model: 'gen4_aleph',\n videoUri: 'https://example.com/bunny.mp4',\n promptText: 'string',\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\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nconst task = await client.videoToVideo\n .create({\n model: 'aleph2',\n videoUri: 'https://example.com/bunny.mp4',\n promptText: 'string',\n keyframes: [\n {\n uri: 'https://example.com/easter-scene.jpg',\n at: 0,\n },\n ],\n })\n .waitForTaskOutput();\n\nconsole.log(task);" }, { "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\ntask = client.video_to_video.create(\n model='gen4_aleph',\n video_uri='https://example.com/bunny.mp4',\n prompt_text='string',\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\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\ntask = client.video_to_video.create(\n model='aleph2',\n video_uri='https://example.com/bunny.mp4',\n prompt_text='string',\n keyframes=[\n {\n 'uri': 'https://example.com/easter-scene.jpg',\n 'at': 0,\n },\n ],\n).wait_for_task_output()\n\nprint(task)" + }, + { + "lang": "TypeScript", + "label": "Node SDK (Hailuo 3.0)", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.videoToVideo\n .create({\n model: 'hailuo3',\n promptVideo: 'https://example.com/input.mp4',\n promptText: 'Camera rises into a sweeping aerial crane shot',\n ratio: '16:9',\n resolution: '2K',\n duration: 8,\n })\n .waitForTaskOutput();\n\nconsole.log(task);" + }, + { + "lang": "Python", + "label": "Python SDK (Hailuo 3.0)", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.video_to_video.create(\n model='hailuo3',\n prompt_video='https://example.com/input.mp4',\n prompt_text='Camera rises into a sweeping aerial crane shot',\n ratio='16:9',\n resolution='2K',\n duration=8,\n).wait_for_task_output()\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -8507,13 +9309,30 @@ }, "additionalProperties": false }, + "outputFormat": { + "description": "The container/encoding of the output. `mp4` (default) returns an H.264 .mp4. `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur an additional surcharge of 5 credits per second of output.", + "type": "string", + "enum": ["mp4", "prores", "png_sequence"] + }, + "proresProfile": { + "description": "The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults to `4444`.", + "type": "string", + "enum": [ + "422", + "4444", + "422 Proxy", + "422 LT", + "422 HQ", + "4444 XQ" + ] + }, "model": { "type": "string", "const": "aleph2" } }, "required": ["videoUri", "model"], "additionalProperties": false }, { - "title": "seedance2", + "title": "hailuo3", "type": "object", "properties": { "promptVideo": { @@ -8547,50 +9366,33 @@ ] }, "promptText": { - "description": "An optional text prompt up to 3500 characters describing what should appear in the output.", + "description": "A non-empty text prompt describing what should appear in the output.", "type": "string", "minLength": 1, - "maxLength": 3500 + "maxLength": 6000 }, - "audio": { - "description": "Whether to generate audio for the video.", - "default": true, - "type": "boolean" + "resolution": { + "description": "The output resolution. Hailuo 3.0 supports 768P and 2K.", + "type": "string", + "enum": ["2K", "768P"] }, "duration": { "description": "The number of seconds of duration for the output video.", "type": "integer", - "minimum": 4, + "minimum": 5, "maximum": 15 }, "ratio": { - "description": "The resolution of the output video.", + "description": "The aspect ratio of the output video. Use adaptive only when image or video references are provided; text-only requests require a concrete ratio.", "type": "string", "enum": [ - "992:432", - "864:496", - "752:560", - "640:640", - "560:752", - "496:864", - "1470:630", - "1280:720", - "1112:834", - "960:960", - "834:1112", - "720:1280", - "2206:946", - "1920:1080", - "1664:1248", - "1440:1440", - "1248:1664", - "1080:1920", - "3840:1646", - "3840:2160", - "3840:2880", - "3840:3840", - "2880:3840", - "2160:3840" + "adaptive", + "21:9", + "16:9", + "4:3", + "1:1", + "3:4", + "9:16" ] }, "references": { @@ -8639,7 +9441,7 @@ }, "referenceVideos": { "description": "An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "maxItems": 3, + "maxItems": 2, "type": "array", "items": { "title": "VideoReference", @@ -8678,7 +9480,8 @@ ] } }, - "required": ["type", "uri"] + "required": ["type", "uri"], + "additionalProperties": false } }, "referenceAudio": { @@ -8722,16 +9525,17 @@ ] } }, - "required": ["type", "uri"] + "required": ["type", "uri"], + "additionalProperties": false } }, - "model": { "type": "string", "const": "seedance2" } + "model": { "type": "string", "const": "hailuo3" } }, - "required": ["promptVideo", "model"], + "required": ["promptVideo", "promptText", "model"], "additionalProperties": false }, { - "title": "seedance2_fast", + "title": "seedance2", "type": "object", "properties": { "promptVideo": { @@ -8782,7 +9586,7 @@ "maximum": 15 }, "ratio": { - "description": "The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p only.", + "description": "The resolution of the output video.", "type": "string", "enum": [ "992:432", @@ -8796,18 +9600,30 @@ "1112:834", "960:960", "834:1112", - "720:1280" - ] - }, - "references": { - "description": "An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information.", - "maxItems": 9, - "type": "array", - "items": { - "title": "PromptImage", - "x-stainless-variantName": "PromptImage", - "type": "object", - "properties": { + "720:1280", + "2206:946", + "1920:1080", + "1664:1248", + "1440:1440", + "1248:1664", + "1080:1920", + "3840:1646", + "3840:2160", + "3840:2880", + "3840:3840", + "2880:3840", + "2160:3840" + ] + }, + "references": { + "description": "An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information.", + "maxItems": 9, + "type": "array", + "items": { + "title": "PromptImage", + "x-stainless-variantName": "PromptImage", + "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", @@ -8888,7 +9704,7 @@ } }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -8931,13 +9747,13 @@ "required": ["type", "uri"] } }, - "model": { "type": "string", "const": "seedance2_fast" } + "model": { "type": "string", "const": "seedance2" } }, "required": ["promptVideo", "model"], "additionalProperties": false }, { - "title": "seedance2_mini", + "title": "seedance2_fast", "type": "object", "properties": { "promptVideo": { @@ -8988,7 +9804,7 @@ "maximum": 15 }, "ratio": { - "description": "The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p only.", + "description": "The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p only.", "type": "string", "enum": [ "992:432", @@ -9094,7 +9910,7 @@ } }, "referenceAudio": { - "description": "An optional array of audio references. Audio references require a text prompt, and the total combined duration must not exceed 15 seconds.", + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { @@ -9137,17 +9953,17 @@ "required": ["type", "uri"] } }, - "model": { "type": "string", "const": "seedance2_mini" } + "model": { "type": "string", "const": "seedance2_fast" } }, "required": ["promptVideo", "model"], "additionalProperties": false }, { - "title": "gemini_omni_flash", + "title": "seedance2_mini", "type": "object", "properties": { - "videoUri": { - "description": "The input video to edit. The output is 720p, with the orientation (landscape or portrait) matched to the input. The output duration matches the input, up to 10 seconds. The input must be at most 10 seconds.", + "promptVideo": { + "description": "The input video to use as a reference for the output video. If additional video references are provided, the combined duration across all video references must not exceed 15 seconds.", "example": "https://example.com/video.mp4", "anyOf": [ { @@ -9177,14 +9993,43 @@ ] }, "promptText": { - "description": "A non-empty instruction describing the edit to apply.", + "description": "An optional text prompt up to 3500 characters describing what should appear in the output.", "type": "string", "minLength": 1, - "maxLength": 4000 + "maxLength": 3500 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" + }, + "duration": { + "description": "The number of seconds of duration for the output video.", + "type": "integer", + "minimum": 4, + "maximum": 15 + }, + "ratio": { + "description": "The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p only.", + "type": "string", + "enum": [ + "992:432", + "864:496", + "752:560", + "640:640", + "560:752", + "496:864", + "1470:630", + "1280:720", + "1112:834", + "960:960", + "834:1112", + "720:1280" + ] }, "references": { - "description": "An optional array of image references to guide the edit.", - "maxItems": 5, + "description": "An optional array of image references (up to 9). See [our docs](/assets/inputs#images) on image inputs for more information.", + "maxItems": 9, "type": "array", "items": { "title": "PromptImage", @@ -9226,135 +10071,23 @@ "additionalProperties": false } }, - "model": { - "type": "string", - "const": "gemini_omni_flash" - } - }, - "required": ["videoUri", "promptText", "model"], - "additionalProperties": false - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } - }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/text_to_image": { - "post": { - "tags": ["Start generating"], - "summary": "Text/Image to Image", - "description": "This endpoint will start a new task to generate images from text and/or image(s)", - "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 task = await client.textToImage\n .create({\n model: 'gen4_image',\n promptText: 'A serene landscape with mountains',\n ratio: '1360:768',\n })\n .waitForTaskOutput();\n\nconsole.log(task);" - }, - { - "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\ntask = client.text_to_image.create(\n model='gen4_image',\n prompt_text='A serene landscape with mountains',\n ratio='1360:768',\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", - "oneOf": [ - { - "title": "gen4_image_turbo", - "type": "object", - "properties": { - "promptText": { - "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", - "type": "string", - "minLength": 1, - "maxLength": 1000 - }, - "seed": { - "description": "If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results.", - "type": "integer", - "minimum": 0, - "maximum": 4294967295 - }, - "ratio": { - "description": "The resolution of the output image.", - "type": "string", - "enum": [ - "1024:1024", - "1080:1080", - "1168:880", - "1360:768", - "1440:1080", - "1080:1440", - "1808:768", - "1920:1080", - "1080:1920", - "2112:912", - "1280:720", - "720:1280", - "720:720", - "960:720", - "720:960", - "1680:720" - ] - }, - "referenceImages": { - "description": "An array of one to three images to be used as references for the generated image output.", - "minItems": 1, + "referenceVideos": { + "description": "An optional array of video references. The combined duration across all video references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information.", "maxItems": 3, "type": "array", "items": { - "title": "ReferenceImage", + "title": "VideoReference", + "description": "A video reference allows the model to use the video as additional context for the output.", "type": "object", "properties": { + "type": { "type": "string", "const": "video" }, "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", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", "type": "string", "minLength": 13, "maxLength": 2048, @@ -9373,96 +10106,32 @@ "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", "type": "string", "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "maxLength": 16777216, + "pattern": "^data:video\\/.*" } ] - }, - "tag": { - "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", - "type": "string", - "minLength": 3, - "maxLength": 16, - "pattern": "^[a-z][a-z0-9_]+$" } }, - "required": ["uri"] + "required": ["type", "uri"] } }, - "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 - }, - "model": { "type": "string", "const": "gen4_image_turbo" } - }, - "required": [ - "promptText", - "ratio", - "referenceImages", - "model" - ] - }, - { - "title": "gen4_image", - "type": "object", - "properties": { - "promptText": { - "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", - "type": "string", - "minLength": 1, - "maxLength": 1000 - }, - "seed": { - "description": "If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results.", - "type": "integer", - "minimum": 0, - "maximum": 4294967295 - }, - "ratio": { - "description": "The resolution of the output image.", - "type": "string", - "enum": [ - "1024:1024", - "1080:1080", - "1168:880", - "1360:768", - "1440:1080", - "1080:1440", - "1808:768", - "1920:1080", - "1080:1920", - "2112:912", - "1280:720", - "720:1280", - "720:720", - "960:720", - "720:960", - "1680:720" - ] - }, - "referenceImages": { - "description": "An array of up to three images to be used as references for the generated image output.", + "referenceAudio": { + "description": "An optional array of audio references. The total combined duration must not exceed 15 seconds.", "maxItems": 3, "type": "array", "items": { - "title": "ReferenceImage", + "title": "AudioReference", + "description": "An audio reference allows the model to use the audio as additional context for the output.", "type": "object", "properties": { + "type": { "type": "string", "const": "audio" }, "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", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", "type": "string", "minLength": 13, "maxLength": 2048, @@ -9481,101 +10150,67 @@ "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", "type": "string", "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "maxLength": 16777216, + "pattern": "^data:audio\\/.*" } ] - }, - "tag": { - "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", - "type": "string", - "minLength": 3, - "maxLength": 16, - "pattern": "^[a-z][a-z0-9_]+$" } }, - "required": ["uri"] + "required": ["type", "uri"] } }, - "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 - }, - "model": { "type": "string", "const": "gen4_image" } + "model": { "type": "string", "const": "seedance2_mini" } }, - "required": ["promptText", "ratio", "model"] + "required": ["promptVideo", "model"], + "additionalProperties": false }, { - "title": "gpt_image_2", + "title": "gemini_omni_flash", "type": "object", "properties": { - "promptText": { - "description": "A non-empty string up to 32,000 characters describing the desired image.", - "type": "string", - "minLength": 1, - "maxLength": 32000 - }, - "ratio": { - "description": "The resolution of the output image, expressed as `:`. Use `auto` to let the model choose.", - "type": "string", - "enum": [ - "2048:880", - "1920:1088", - "1920:1280", - "1920:1440", - "1920:1536", - "1920:1920", - "1536:1920", - "1440:1920", - "1280:1920", - "1088:1920", - "2912:1248", - "2560:1440", - "2560:1712", - "2560:1920", - "2560:2048", - "2560:2560", - "2048:2560", - "1920:2560", - "1712:2560", - "1440:2560", - "3840:1648", - "3840:2160", - "3504:2336", - "3264:2448", - "3200:2560", - "2880:2880", - "2560:3200", - "2448:3264", - "2336:3504", - "2160:3840", - "auto" + "videoUri": { + "description": "The input video to edit. The output is 720p, with the orientation (landscape or portrait) matched to the input. The output duration matches the input, up to 10 seconds. The input must be at most 10 seconds.", + "example": "https://example.com/video.mp4", + "anyOf": [ + { + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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\\/.*" + } ] }, - "quality": { - "description": "Rendering quality. Higher qualities consume more credits. Defaults to `high`.", - "type": "string", - "enum": ["low", "medium", "high", "auto"] - }, - "background": { - "description": "Background treatment. Defaults to `auto`, which lets the model pick. `transparent` is not supported by this model.", + "promptText": { + "description": "A non-empty instruction describing the edit to apply.", "type": "string", - "enum": ["opaque", "auto"] + "minLength": 1, + "maxLength": 4000 }, - "referenceImages": { - "description": "An array of up to 16 images to be used as references for the generated image output.", - "maxItems": 16, + "references": { + "description": "An optional array of image references to guide the edit.", + "maxItems": 5, "type": "array", "items": { - "title": "GptImage2ReferenceImage", + "title": "PromptImage", + "x-stainless-variantName": "PromptImage", "type": "object", "properties": { "uri": { @@ -9607,82 +10242,102 @@ "pattern": "^data:image\\/.*" } ] - }, - "tag": { - "description": "A tag to identify the reference image. This may be used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", - "type": "string", - "minLength": 3, - "maxLength": 16, - "pattern": "^[a-z][a-z0-9_]+$" } }, "required": ["uri"], "additionalProperties": false } }, - "outputCount": { - "description": "The number of images to generate (1-10). Increasing this number will affect the number of credits consumed by the generation.", - "type": "integer", - "minimum": 1, - "maximum": 10 - }, - "model": { "type": "string", "const": "gpt_image_2" } + "model": { + "type": "string", + "const": "gemini_omni_flash" + } }, - "required": ["promptText", "ratio", "model"], + "required": ["videoUri", "promptText", "model"], "additionalProperties": false }, { - "title": "gemini_image3_pro", + "title": "seedance2_5", "type": "object", "properties": { + "promptVideo": { + "description": "The input video to use as a reference for the output video. If additional video references are provided, the combined duration across all video references must not exceed 30 seconds.", + "example": "https://example.com/video.mp4", + "anyOf": [ + { + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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\\/.*" + } + ] + }, "promptText": { - "description": "This should describe in detail what should appear in the output.", + "description": "An optional text prompt up to 15000 characters describing what should appear in the output.", "type": "string", "minLength": 1, - "maxLength": 5500 + "maxLength": 15000 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" + }, + "mode": { + "description": "How the input video is used. `reference` (the default) generates a new video conditioned on the input video and accepts `duration` and `ratio`. `extend` continues the input video, requires `promptText`, and matches the input aspect ratio, so `ratio` may not be provided.", + "default": "reference", + "type": "string", + "enum": ["reference", "extend"] + }, + "duration": { + "description": "The number of seconds of duration for the output video. Defaults to 5.", + "type": "integer", + "minimum": 4, + "maximum": 30 }, "ratio": { - "description": "The resolution of the output image.", + "description": "The resolution of the output video. Seedance 2.5 supports 480p and 720p only.", "type": "string", "enum": [ - "1344:768", - "768:1344", - "1024:1024", - "1184:864", - "864:1184", - "1536:672", - "832:1248", - "1248:832", - "896:1152", - "1152:896", - "2048:2048", - "1696:2528", - "2528:1696", - "1792:2400", - "2400:1792", - "1856:2304", - "2304:1856", - "1536:2752", - "2752:1536", - "3168:1344", - "4096:4096", - "3392:5056", - "5056:3392", - "3584:4800", - "4800:3584", - "3712:4608", - "4608:3712", - "3072:5504", - "5504:3072", - "6336:2688" + "992:432", + "854:480", + "752:560", + "640:640", + "560:752", + "480:854", + "1470:630", + "1280:720", + "1112:834", + "960:960", + "834:1112", + "720:1280" ] }, - "referenceImages": { - "description": "An array of up to 14 images to be used as references for the generated image output. Up to five of those images can pass `subject: \"human\"` to maintain character consistency, and up to nine of those images can pass `subject: \"object\"` with high-fidelity images of objects to include in the output.", - "maxItems": 14, + "references": { + "description": "An optional array of image references (up to 30). See [our docs](/assets/inputs#images) on image inputs for more information.", + "maxItems": 30, "type": "array", "items": { - "title": "Gemini3ProReferenceImage", + "title": "PromptImage", + "x-stainless-variantName": "PromptImage", "type": "object", "properties": { "uri": { @@ -9714,125 +10369,29 @@ "pattern": "^data:image\\/.*" } ] - }, - "tag": { - "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", - "type": "string", - "minLength": 3, - "maxLength": 16, - "pattern": "^[a-z][a-z0-9_]+$" - }, - "subject": { - "description": "Whether this is a reference of a human subject (for character consistency) or an object that appears in the output.", - "default": "object", - "type": "string", - "enum": ["object", "human"] } }, "required": ["uri"], "additionalProperties": false } }, - "outputCount": { - "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation. Up to four images can be generated at once.", - "type": "number", - "enum": [1, 4] - }, - "model": { - "type": "string", - "const": "gemini_image3_pro" - } - }, - "required": ["promptText", "ratio", "model"], - "additionalProperties": false - }, - { - "title": "gemini_image3.1_flash", - "type": "object", - "properties": { - "promptText": { - "description": "This should describe in detail what should appear in the output.", - "type": "string", - "minLength": 1, - "maxLength": 5500 - }, - "ratio": { - "description": "The resolution of the output image.", - "type": "string", - "enum": [ - "512:512", - "416:624", - "624:416", - "432:592", - "592:432", - "448:576", - "576:448", - "384:672", - "672:384", - "768:336", - "256:1024", - "1024:256", - "176:1408", - "1408:176", - "1024:1024", - "832:1248", - "1248:832", - "864:1184", - "1184:864", - "896:1152", - "1152:896", - "768:1344", - "1344:768", - "1536:672", - "512:2048", - "2048:512", - "352:2816", - "2816:352", - "2048:2048", - "1696:2528", - "2528:1696", - "1792:2400", - "2400:1792", - "1856:2304", - "2304:1856", - "1536:2752", - "2752:1536", - "3168:1344", - "1024:4096", - "4096:1024", - "704:5632", - "5632:704", - "4096:4096", - "3392:5056", - "5056:3392", - "3584:4800", - "4800:3584", - "3712:4608", - "4608:3712", - "3072:5504", - "5504:3072", - "6336:2688", - "2048:8192", - "8192:2048", - "1408:11264", - "11264:1408" - ] - }, - "referenceImages": { - "description": "An array of up to 14 images to be used as references for the generated image output. Up to five of those images can pass `subject: \"human\"` to maintain character consistency, and up to nine of those images can pass `subject: \"object\"` with high-fidelity images of objects to include in the output.", - "maxItems": 14, + "referenceVideos": { + "description": "An optional array of video references. The combined duration across all video references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "maxItems": 9, "type": "array", "items": { - "title": "Gemini31FlashReferenceImage", + "title": "VideoReference", + "description": "A video reference allows the model to use the video as additional context for the output.", "type": "object", "properties": { + "type": { "type": "string", "const": "video" }, "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", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", "type": "string", "minLength": 13, "maxLength": 2048, @@ -9851,92 +10410,32 @@ "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", "type": "string", "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "maxLength": 16777216, + "pattern": "^data:video\\/.*" } ] - }, - "tag": { - "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", - "type": "string", - "minLength": 3, - "maxLength": 16, - "pattern": "^[a-z][a-z0-9_]+$" - }, - "subject": { - "description": "Whether this is a reference of a human subject (for character consistency) or an object that appears in the output.", - "default": "object", - "type": "string", - "enum": ["object", "human"] } }, - "required": ["uri"] + "required": ["type", "uri"] } }, - "outputCount": { - "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation. Up to four images can be generated at once.", - "type": "number", - "enum": [1, 4] - }, - "model": { - "type": "string", - "const": "gemini_image3.1_flash" - } - }, - "required": ["promptText", "ratio", "model"] - }, - { - "title": "seedream5_pro", - "type": "object", - "properties": { - "promptText": { - "description": "A non-empty string up to 4,000 characters describing the desired image.", - "type": "string", - "minLength": 1, - "maxLength": 4000 - }, - "ratio": { - "description": "The resolution of the output image, expressed as `:`. Use `auto_1k` or `auto_2k` to let the model pick aspect ratio at a fixed resolution tier.", - "type": "string", - "enum": [ - "1024:1024", - "1184:896", - "896:1184", - "1376:768", - "768:1376", - "1296:864", - "864:1296", - "2048:2048", - "2304:1728", - "1728:2304", - "2720:1530", - "1530:2720", - "2496:1664", - "1664:2496", - "auto_1k", - "auto_2k" - ] - }, - "outputFormat": { - "description": "The file format of the output image. Defaults to png.", - "type": "string", - "enum": ["png", "jpeg"] - }, - "referenceImages": { - "description": "An array of reference images for multi-image fusion and interactive editing. Reference by upload order in prompt text (Figure 1, Figure 2, etc.).", + "referenceAudio": { + "description": "An optional array of audio references. The total combined duration must be less than 30 seconds.", "maxItems": 10, "type": "array", "items": { - "title": "Seedream5ProReferenceImage", + "title": "AudioReference", + "description": "An audio reference allows the model to use the audio as additional context for the output.", "type": "object", "properties": { + "type": { "type": "string", "const": "audio" }, "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", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", "type": "string", "minLength": 13, "maxLength": 2048, @@ -9955,74 +10454,195 @@ "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", "type": "string", "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "maxLength": 16777216, + "pattern": "^data:audio\\/.*" } ] } }, - "required": ["uri"], - "additionalProperties": false + "required": ["type", "uri"] } }, - "outputCount": { - "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation.", - "type": "integer", - "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" } + "model": { "type": "string", "const": "seedance2_5" } }, - "required": ["promptText", "ratio", "model"], + "required": ["promptVideo", "model"], "additionalProperties": false - }, - { - "title": "seedream5_lite", - "type": "object", - "properties": { - "promptText": { - "description": "A non-empty string up to 4,000 characters describing the desired image.", - "type": "string", - "minLength": 1, - "maxLength": 4000 - }, - "ratio": { - "description": "The resolution of the output image, expressed as `:`.", - "type": "string", - "enum": [ - "2048:2048", - "2304:1728", - "1728:2304", - "2848:1600", - "1600:2848", - "2496:1664", - "1664:2496", - "3136:1344", - "3072:3072", - "3456:2592", - "2592:3456", - "4096:2304", - "2304:4096", - "3744:2496", - "2496:3744", - "4704:2016" - ] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } }, - "outputFormat": { - "description": "The file format of the output image. Defaults to png.", + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/text_to_image": { + "post": { + "tags": ["Start generating"], + "summary": "Text/Image to Image", + "description": "This endpoint will start a new task to generate images from text and/or image(s)", + "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 task = await client.textToImage\n .create({\n model: 'gen4_image',\n promptText: 'A serene landscape with mountains',\n ratio: '1360:768',\n })\n .waitForTaskOutput();\n\nconsole.log(task);" + }, + { + "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\ntask = client.text_to_image.create(\n model='gen4_image',\n prompt_text='A serene landscape with mountains',\n ratio='1360:768',\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", + "oneOf": [ + { + "title": "gen4_image_turbo", + "type": "object", + "properties": { + "promptText": { + "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", "type": "string", - "enum": ["png", "jpeg"] + "minLength": 1, + "maxLength": 1000 + }, + "seed": { + "description": "If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results.", + "type": "integer", + "minimum": 0, + "maximum": 4294967295 + }, + "ratio": { + "description": "The resolution of the output image.", + "type": "string", + "enum": [ + "1024:1024", + "1080:1080", + "1168:880", + "1360:768", + "1440:1080", + "1080:1440", + "1808:768", + "1920:1080", + "1080:1920", + "2112:912", + "1280:720", + "720:1280", + "720:720", + "960:720", + "720:960", + "1680:720" + ] }, "referenceImages": { - "description": "An array of reference images for multi-image fusion and interactive editing. Reference by upload order in prompt text (Figure 1, Figure 2, etc.).", - "maxItems": 14, + "description": "An array of one to three images to be used as references for the generated image output.", + "minItems": 1, + "maxItems": 3, "type": "array", "items": { - "title": "Seedream5LiteReferenceImage", + "title": "ReferenceImage", "type": "object", "properties": { "uri": { @@ -10054,47 +10674,75 @@ "pattern": "^data:image\\/.*" } ] + }, + "tag": { + "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", + "type": "string", + "minLength": 3, + "maxLength": 16, + "pattern": "^[a-z][a-z0-9_]+$" } }, - "required": ["uri"], - "additionalProperties": false + "required": ["uri"] } }, - "outputCount": { - "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation.", - "type": "integer", - "minimum": 1, - "maximum": 4 + "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 }, - "model": { "type": "string", "const": "seedream5_lite" } + "model": { "type": "string", "const": "gen4_image_turbo" } }, - "required": ["promptText", "ratio", "model"], - "additionalProperties": false + "required": [ + "promptText", + "ratio", + "referenceImages", + "model" + ] }, { - "title": "gemini_2.5_flash", + "title": "gen4_image", "type": "object", "properties": { "promptText": { - "description": "This should describe in detail what should appear in the output.", + "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", "type": "string", "minLength": 1, - "maxLength": 5500 + "maxLength": 1000 + }, + "seed": { + "description": "If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results.", + "type": "integer", + "minimum": 0, + "maximum": 4294967295 }, "ratio": { "description": "The resolution of the output image.", "type": "string", "enum": [ - "1344:768", - "768:1344", "1024:1024", - "1184:864", - "864:1184", - "1536:672", - "832:1248", - "1248:832", - "896:1152", - "1152:896" + "1080:1080", + "1168:880", + "1360:768", + "1440:1080", + "1080:1440", + "1808:768", + "1920:1080", + "1080:1920", + "2112:912", + "1280:720", + "720:1280", + "720:720", + "960:720", + "720:960", + "1680:720" ] }, "referenceImages": { @@ -10146,951 +10794,662 @@ "required": ["uri"] } }, - "model": { "type": "string", "const": "gemini_2.5_flash" } + "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 + }, + "model": { "type": "string", "const": "gen4_image" } }, "required": ["promptText", "ratio", "model"] - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/image_upscale": { - "post": { - "tags": ["Start generating"], - "summary": "Image upscale", - "description": "Upscale an image with Magnific precision upscaling. Each input dimension must be between 300px and 8000px. Output width and height are the input dimensions multiplied by `scaleFactor` (default 2). Output width times height cannot exceed 25,300,000 pixels (~25.3 million).", - "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 task = await client.imageUpscale\n .create({\n model: 'magnific_precision_upscaler_v2',\n imageUri: 'https://example.com/photo.jpg',\n scaleFactor: 2,\n })\n .waitForTaskOutput();\nconsole.log(task);" - }, - { - "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\ntask = client.image_upscale.create(\n model='magnific_precision_upscaler_v2',\n image_uri='https://example.com/photo.jpg',\n scale_factor=2,\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", - "oneOf": [ { - "title": "magnific_precision_upscaler_v2", + "title": "gpt_image_2", "type": "object", "properties": { - "imageUri": { - "description": "Image to upscale. See [image inputs](/assets/inputs#images) for URL, upload, and file size limits.", - "example": "https://example.com/image.jpg", - "anyOf": [ - { - "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", - "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\\/.*" - } + "promptText": { + "description": "A non-empty string up to 32,000 characters describing the desired image.", + "type": "string", + "minLength": 1, + "maxLength": 32000 + }, + "ratio": { + "description": "The resolution of the output image, expressed as `:`. Use `auto` to let the model choose.", + "type": "string", + "enum": [ + "2048:880", + "1920:1088", + "1920:1280", + "1920:1440", + "1920:1536", + "1920:1920", + "1536:1920", + "1440:1920", + "1280:1920", + "1088:1920", + "2912:1248", + "2560:1440", + "2560:1712", + "2560:1920", + "2560:2048", + "2560:2560", + "2048:2560", + "1920:2560", + "1712:2560", + "1440:2560", + "3840:1648", + "3840:2160", + "3504:2336", + "3264:2448", + "3200:2560", + "2880:2880", + "2560:3200", + "2448:3264", + "2336:3504", + "2160:3840", + "auto" ] }, - "scaleFactor": { - "description": "Multiplies each input dimension to produce output width and height. Defaults to 2.", - "type": "number", - "enum": [2, 4, 8, 16] + "quality": { + "description": "Rendering quality. Higher qualities consume more credits. Defaults to `high`.", + "type": "string", + "enum": ["low", "medium", "high", "auto"] }, - "sharpen": { - "description": "Sharpness intensity from 0 (none) to 100.", - "type": "integer", - "minimum": 0, - "maximum": 100 + "background": { + "description": "Background treatment. Defaults to `auto`, which lets the model pick. `transparent` is not supported by this model.", + "type": "string", + "enum": ["opaque", "auto"] }, - "smartGrain": { - "description": "Grain and texture enhancement from 0 to 100.", - "type": "integer", - "minimum": 0, - "maximum": 100 + "referenceImages": { + "description": "An array of up to 16 images to be used as references for the generated image output.", + "maxItems": 16, + "type": "array", + "items": { + "title": "GptImage2ReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" + } + ] + }, + "tag": { + "description": "A tag to identify the reference image. This may be used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", + "type": "string", + "minLength": 3, + "maxLength": 16, + "pattern": "^[a-z][a-z0-9_]+$" + } + }, + "required": ["uri"], + "additionalProperties": false + } }, - "ultraDetail": { - "description": "Fine detail enhancement from 0 to 100.", + "outputCount": { + "description": "The number of images to generate (1-10). Increasing this number will affect the number of credits consumed by the generation.", "type": "integer", - "minimum": 0, - "maximum": 100 - }, - "flavor": { - "description": "Optimization preset: `sublime` (illustration), `photo` (photographic), or `photo_denoiser` (noisy photos).", - "type": "string", - "enum": ["sublime", "photo", "photo_denoiser"] + "minimum": 1, + "maximum": 10 }, - "model": { - "type": "string", - "const": "magnific_precision_upscaler_v2" - } + "model": { "type": "string", "const": "gpt_image_2" } }, - "required": ["imageUri", "model"], + "required": ["promptText", "ratio", "model"], "additionalProperties": false - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/video_upscale": { - "post": { - "tags": ["Start generating"], - "summary": "Video upscale", - "description": "This endpoint starts a task to upscale a video. Set `model` to choose the upscaler.", - "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 task = await client.videoUpscale\n .create({\n model: 'magnific_video_upscaler_creative',\n videoUri: 'https://example.com/bunny.mp4',\n resolution: '2k',\n })\n .waitForTaskOutput();\nconsole.log(task);" - }, - { - "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\ntask = client.video_upscale.create(\n model='magnific_video_upscaler_creative',\n video_uri='https://example.com/bunny.mp4',\n resolution='2k',\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", - "oneOf": [ { - "title": "magnific_video_upscaler_creative", + "title": "gemini_image3_pro", "type": "object", "properties": { - "videoUri": { - "description": "Video to upscale. See [video inputs](/assets/inputs#videos) for URL, upload, and file size limits. Maximum duration is 30 seconds.", - "example": "https://example.com/video.mp4", - "anyOf": [ - { - "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/video.mp4", - "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\\/.*" - } - ] - }, - "resolution": { - "description": "Target output resolution from 720p to 4k. Defaults to `2k`.", + "promptText": { + "description": "This should describe in detail what should appear in the output.", "type": "string", - "enum": ["720p", "1k", "2k", "4k"] - }, - "creativity": { - "description": "How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.", - "type": "integer", - "minimum": 0, - "maximum": 100 - }, - "sharpen": { - "description": "Sharpness intensity from 0 (none) to 100.", - "type": "integer", - "minimum": 0, - "maximum": 100 - }, - "smartGrain": { - "description": "Grain and texture enhancement from 0 to 100.", - "type": "integer", - "minimum": 0, - "maximum": 100 + "minLength": 1, + "maxLength": 5500 }, - "flavor": { - "description": "Processing style: `vivid` for enhanced color and detail, `natural` for faithful reproduction.", + "ratio": { + "description": "The resolution of the output image.", "type": "string", - "enum": ["vivid", "natural"] + "enum": [ + "1344:768", + "768:1344", + "1024:1024", + "1184:864", + "864:1184", + "1536:672", + "832:1248", + "1248:832", + "896:1152", + "1152:896", + "2048:2048", + "1696:2528", + "2528:1696", + "1792:2400", + "2400:1792", + "1856:2304", + "2304:1856", + "1536:2752", + "2752:1536", + "3168:1344", + "4096:4096", + "3392:5056", + "5056:3392", + "3584:4800", + "4800:3584", + "3712:4608", + "4608:3712", + "3072:5504", + "5504:3072", + "6336:2688" + ] }, - "fpsBoost": { - "description": "Whether to increase the output frame rate.", - "type": "boolean" + "referenceImages": { + "description": "An array of up to 14 images to be used as references for the generated image output. Up to five of those images can pass `subject: \"human\"` to maintain character consistency, and up to nine of those images can pass `subject: \"object\"` with high-fidelity images of objects to include in the output.", + "maxItems": 14, + "type": "array", + "items": { + "title": "Gemini3ProReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" + } + ] + }, + "tag": { + "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", + "type": "string", + "minLength": 3, + "maxLength": 16, + "pattern": "^[a-z][a-z0-9_]+$" + }, + "subject": { + "description": "Whether this is a reference of a human subject (for character consistency) or an object that appears in the output.", + "default": "object", + "type": "string", + "enum": ["object", "human"] + } + }, + "required": ["uri"], + "additionalProperties": false + } + }, + "outputCount": { + "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation. Up to four images can be generated at once.", + "type": "number", + "enum": [1, 4] }, "model": { "type": "string", - "const": "magnific_video_upscaler_creative" + "const": "gemini_image3_pro" } }, - "required": ["videoUri", "model"], + "required": ["promptText", "ratio", "model"], "additionalProperties": false - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/character_performance": { - "post": { - "tags": ["Start generating"], - "summary": "Control a character", - "description": "This endpoint will start a new task to control a character's facial expressions and body movements using a reference video.", - "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 task = await client.characterPerformance\n .create({\n model: 'act_two',\n character: {\n type: 'video',\n uri: 'https://example.com/posedCharacter.mp4',\n },\n reference: {\n type: 'video',\n uri: 'https://example.com/actorPerformance.mp4',\n },\n ratio: '1280:720',\n })\n .waitForTaskOutput();\nconsole.log(task);" - }, - { - "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\ntask = client.character_performance.create(\n model='act_two',\n character={\n 'type': 'video',\n 'uri': 'https://example.com/posedCharacter.mp4',\n },\n reference={\n 'type': 'video',\n 'uri': 'https://example.com/actorPerformance.mp4',\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", - "oneOf": [ { - "title": "act_two", + "title": "gemini_image3.1_flash", "type": "object", "properties": { - "seed": { - "description": "If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results.", - "type": "integer", - "minimum": 0, - "maximum": 4294967295 - }, - "character": { - "description": "The character to control. You can either provide a video or an image. A visually recognizable face must be visible and stay within the frame.", - "oneOf": [ - { - "title": "CharacterImage", - "description": "An image of your character. In the output, the character will use the reference video performance in its original static environment.", - "type": "object", - "properties": { - "type": { "type": "string", "const": "image" }, - "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", - "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": ["type", "uri"] - }, - { - "title": "CharacterVideo", - "description": "A video of your character. In the output, the character will use the reference video performance in its original animated environment and some of the character's own movements.", - "type": "object", - "properties": { - "type": { "type": "string", "const": "video" }, - "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/video.mp4", - "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": ["type", "uri"] - } - ], - "discriminator": { "propertyName": "type" } - }, - "reference": { - "description": "The reference video containing the performance to apply to the character.", - "example": { - "type": "video", - "uri": "https://example.com/reference-performance.mp4" - }, - "oneOf": [ - { - "title": "CharacterReferenceVideo", - "description": "A video of a person performing in the manner that you would like your character to perform. The video must be between 3 and 30 seconds in duration.", - "type": "object", - "properties": { - "type": { "type": "string", "const": "video" }, - "uri": { - "description": "A video of a person performing in the manner that you would like your character to perform. The video must be between 3 and 30 seconds in duration. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/reference-performance.mp4", - "anyOf": [ - { - "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/video.mp4", - "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": ["type", "uri"] - } - ], - "discriminator": { "propertyName": "type" } - }, - "bodyControl": { - "description": "A boolean indicating whether to enable body control. When enabled, non-facial movements and gestures will be applied to the character in addition to facial expressions.", - "example": true, - "type": "boolean" - }, - "expressionIntensity": { - "description": "An integer between 1 and 5 (inclusive). A larger value increases the intensity of the character's expression.", - "example": 3, - "default": 3, - "type": "integer", - "minimum": 1, - "maximum": 5 + "promptText": { + "description": "This should describe in detail what should appear in the output.", + "type": "string", + "minLength": 1, + "maxLength": 5500 }, "ratio": { - "description": "The resolution of the output video.", - "example": "1280:720", + "description": "The resolution of the output image.", "type": "string", "enum": [ - "1280:720", - "720:1280", - "960:960", - "1104:832", - "832:1104", - "1584:672" + "512:512", + "416:624", + "624:416", + "432:592", + "592:432", + "448:576", + "576:448", + "384:672", + "672:384", + "768:336", + "256:1024", + "1024:256", + "176:1408", + "1408:176", + "1024:1024", + "832:1248", + "1248:832", + "864:1184", + "1184:864", + "896:1152", + "1152:896", + "768:1344", + "1344:768", + "1536:672", + "512:2048", + "2048:512", + "352:2816", + "2816:352", + "2048:2048", + "1696:2528", + "2528:1696", + "1792:2400", + "2400:1792", + "1856:2304", + "2304:1856", + "1536:2752", + "2752:1536", + "3168:1344", + "1024:4096", + "4096:1024", + "704:5632", + "5632:704", + "4096:4096", + "3392:5056", + "5056:3392", + "3584:4800", + "4800:3584", + "3712:4608", + "4608:3712", + "3072:5504", + "5504:3072", + "6336:2688", + "2048:8192", + "8192:2048", + "1408:11264", + "11264:1408" ] }, - "contentModeration": { - "description": "Settings that affect the behavior of the content moderation system.", - "example": { "publicFigureThreshold": "auto" }, - "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 - }, - "model": { "type": "string", "const": "act_two" } - }, - "required": ["character", "reference", "model"] - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } - }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/sound_effect": { - "post": { - "tags": ["Start generating"], - "summary": "Generate sound effects", - "description": "This endpoint will start a new task to generate sound effects from a text description.", - "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 task = await client.soundEffect\n .create({\n model: 'eleven_text_to_sound_v2',\n promptText: 'A thunderstorm with heavy rain',\n duration: 10,\n loop: true,\n })\n .waitForTaskOutput();\nconsole.log(task);" - }, - { - "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\ntask = client.sound_effect.create(\n model='eleven_text_to_sound_v2',\n promptText='A thunderstorm with heavy rain',\n duration=10,\n loop=True,\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", - "oneOf": [ - { - "title": "seed_audio", - "type": "object", - "properties": { - "promptText": { - "description": "A non-empty text prompt. For text-to-speech, the words to speak. For text-to-audio, a scene description that can include voice direction, dialogue, music, and sound effects.", - "type": "string", - "minLength": 1, - "maxLength": 2048 - }, - "referenceAudios": { - "description": "Up to three reference audio clips. When provided, reference them in promptText as @Audio1, @Audio2, and @Audio3 in order.", - "maxItems": 3, + "referenceImages": { + "description": "An array of up to 14 images to be used as references for the generated image output. Up to five of those images can pass `subject: \"human\"` to maintain character consistency, and up to nine of those images can pass `subject: \"object\"` with high-fidelity images of objects to include in the output.", + "maxItems": 14, "type": "array", "items": { - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "type": "string", - "minLength": 13, - "maxLength": 2048, - "pattern": "^https:\\/\\/.*" + "title": "Gemini31FlashReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" + } + ] }, - { - "description": "A Runway upload URI. See https://docs.dev.runwayml.com/assets/uploads for more information.", - "example": "runway://", + "tag": { + "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", "type": "string", - "minLength": 13, - "maxLength": 5000, - "pattern": "^runway:\\/\\/.*" + "minLength": 3, + "maxLength": 16, + "pattern": "^[a-z][a-z0-9_]+$" }, - { - "description": "A data URI containing encoded media.", - "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", + "subject": { + "description": "Whether this is a reference of a human subject (for character consistency) or an object that appears in the output.", + "default": "object", "type": "string", - "minLength": 13, - "maxLength": 16777216, - "pattern": "^data:audio\\/.*" + "enum": ["object", "human"] } - ] + }, + "required": ["uri"] } }, - "speechRate": { - "description": "Relative speech speed. Negative is slower, positive is faster; 0 is normal.", - "type": "integer", - "minimum": -50, - "maximum": 100 - }, - "loudnessRate": { - "description": "Relative output loudness. Negative is quieter, positive is louder; 0 is normal.", - "type": "integer", - "minimum": -50, - "maximum": 100 - }, - "pitchRate": { - "description": "Pitch shift in semitones. Negative lowers, positive raises; 0 is unchanged.", - "type": "integer", - "minimum": -12, - "maximum": 12 - }, - "sampleRate": { - "description": "Output sample rate in Hz.", + "outputCount": { + "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation. Up to four images can be generated at once.", "type": "number", - "enum": [8000, 16000, 24000, 32000, 44100, 48000] + "enum": [1, 4] }, - "outputFormat": { - "description": "Output audio container/format.", + "model": { "type": "string", - "enum": ["wav", "mp3", "ogg_opus"] - }, - "model": { "type": "string", "const": "seed_audio" } + "const": "gemini_image3.1_flash" + } }, - "required": ["promptText", "model"], - "additionalProperties": false + "required": ["promptText", "ratio", "model"] }, { - "title": "eleven_text_to_sound_v2", + "title": "seedream5_pro", "type": "object", "properties": { "promptText": { - "description": "A text description of the sound effect to generate.", + "description": "A non-empty string up to 4,000 characters describing the desired image.", "type": "string", "minLength": 1, - "maxLength": 3000 - }, - "duration": { - "description": "The duration of the sound effect in seconds, between 0.5 and 30 seconds. If not provided, the duration will be determined automatically based on the text description.", - "type": "number", - "minimum": 0.5, - "maximum": 30 + "maxLength": 4000 }, - "loop": { - "description": "Whether the output sound effect should be designed to loop seamlessly.", - "default": false, - "type": "boolean" + "ratio": { + "description": "The resolution of the output image, expressed as `:`. Use `auto_1k` or `auto_2k` to let the model pick aspect ratio at a fixed resolution tier.", + "type": "string", + "enum": [ + "1024:1024", + "1184:896", + "896:1184", + "1376:768", + "768:1376", + "1296:864", + "864:1296", + "2048:2048", + "2304:1728", + "1728:2304", + "2720:1530", + "1530:2720", + "2496:1664", + "1664:2496", + "auto_1k", + "auto_2k" + ] }, - "model": { + "outputFormat": { + "description": "The file format of the output image. Defaults to png.", "type": "string", - "const": "eleven_text_to_sound_v2" - } - }, - "required": ["promptText", "model"] - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } - }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/speech_to_speech": { - "post": { - "tags": ["Start generating"], - "summary": "Speech to speech", - "description": "This endpoint will start a new task to convert speech from one voice to another in audio or video.", - "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 audioTask = await client.speechToSpeech\n .create({\n model: 'eleven_multilingual_sts_v2',\n media: {\n type: 'audio',\n uri: 'https://example.com/audio.mp3',\n },\n voice: {\n type: 'runway-preset',\n presetId: 'Maggie',\n },\n })\n .waitForTaskOutput();\nconsole.log(audioTask);\n\nconst videoTask = await client.speechToSpeech\n .create({\n model: 'eleven_multilingual_sts_v2',\n media: {\n type: 'video',\n uri: 'https://example.com/video.mp4',\n },\n voice: {\n type: 'runway-preset',\n presetId: 'Noah',\n },\n })\n .waitForTaskOutput();\nconsole.log(videoTask);" - }, - { - "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\naudioTask = client.speech_to_speech.create(\n model='eleven_multilingual_sts_v2',\n media={\n 'type': 'audio',\n 'uri': 'https://example.com/audio.mp3',\n },\n voice={\n 'type': 'runway-preset',\n 'presetId': 'Maggie',\n },\n).wait_for_task_output()\n\nprint(audioTask)\n\nvideoTask = client.speech_to_speech.create(\n model='eleven_multilingual_sts_v2',\n media={\n 'type': 'video',\n 'uri': 'https://example.com/video.mp4',\n },\n voice={\n 'type': 'runway-preset',\n 'presetId': 'Noah',\n },\n).wait_for_task_output()\n\nprint(videoTask)" - } - ], - "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "oneOf": [ + "enum": ["png", "jpeg"] + }, + "referenceImages": { + "description": "An array of reference images for multi-image fusion and interactive editing. Reference by upload order in prompt text (Figure 1, Figure 2, etc.).", + "maxItems": 10, + "type": "array", + "items": { + "title": "Seedream5ProReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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 + } + }, + "outputCount": { + "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation.", + "type": "integer", + "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"], + "additionalProperties": false + }, { - "title": "eleven_multilingual_sts_v2", + "title": "seedream5_lite", "type": "object", "properties": { - "removeBackgroundNoise": { - "description": "Whether to remove background noise from the generated speech.", - "type": "boolean" + "promptText": { + "description": "A non-empty string up to 4,000 characters describing the desired image.", + "type": "string", + "minLength": 1, + "maxLength": 4000 }, - "media": { - "oneOf": [ - { - "title": "SpeechToSpeechAudio", - "description": "An audio file containing dialogue to be processed.", - "type": "object", - "properties": { - "type": { "type": "string", "const": "audio" }, - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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": ["type", "uri"] + "ratio": { + "description": "The resolution of the output image, expressed as `:`.", + "type": "string", + "enum": [ + "2048:2048", + "2304:1728", + "1728:2304", + "2848:1600", + "1600:2848", + "2496:1664", + "1664:2496", + "3136:1344", + "3072:3072", + "3456:2592", + "2592:3456", + "4096:2304", + "2304:4096", + "3744:2496", + "2496:3744", + "4704:2016" + ] + }, + "outputFormat": { + "description": "The file format of the output image. Defaults to png.", + "type": "string", + "enum": ["png", "jpeg"] + }, + "referenceImages": { + "description": "An array of reference images for multi-image fusion and interactive editing. Reference by upload order in prompt text (Figure 1, Figure 2, etc.).", + "maxItems": 14, + "type": "array", + "items": { + "title": "Seedream5LiteReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" + } + ] + } }, - { - "title": "SpeechToSpeechVideo", - "description": "A video file containing dialogue to be processed.", - "type": "object", - "properties": { - "type": { "type": "string", "const": "video" }, - "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/video.mp4", - "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": ["type", "uri"] - } - ], - "discriminator": { "propertyName": "type" } + "required": ["uri"], + "additionalProperties": false + } }, - "voice": { - "description": "The voice to use for the generated speech.", - "oneOf": [ - { - "title": "RunwayPresetVoice", - "description": "A voice preset from the RunwayML API.", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "runway-preset" - }, - "presetId": { - "description": "The preset voice ID to use for the generated speech.", - "type": "string", - "enum": [ - "Maya", - "Arjun", - "Serene", - "Bernard", - "Billy", - "Mark", - "Clint", - "Mabel", - "Chad", - "Leslie", - "Eleanor", - "Elias", - "Elliot", - "Grungle", - "Brodie", - "Sandra", - "Kirk", - "Kylie", - "Lara", - "Lisa", - "Malachi", - "Marlene", - "Martin", - "Miriam", - "Monster", - "Paula", - "Pip", - "Rusty", - "Ragnar", - "Xylar", - "Maggie", - "Jack", - "Katie", - "Noah", - "James", - "Rina", - "Ella", - "Mariah", - "Frank", - "Claudia", - "Niki", - "Vincent", - "Kendrick", - "Myrna", - "Tom", - "Wanda", - "Benjamin", - "Kiana", - "Rachel" - ] - } - }, - "required": ["type", "presetId"] - } - ], - "discriminator": { "propertyName": "type" } + "outputCount": { + "description": "The number of images to generate. Increasing this number will affect the number of credits consumed by the generation.", + "type": "integer", + "minimum": 1, + "maximum": 4 }, - "model": { + "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_lite" } + }, + "required": ["promptText", "ratio", "model"], + "additionalProperties": false + }, + { + "title": "gemini_2.5_flash", + "type": "object", + "properties": { + "promptText": { + "description": "This should describe in detail what should appear in the output.", "type": "string", - "const": "eleven_multilingual_sts_v2" - } + "minLength": 1, + "maxLength": 5500 + }, + "ratio": { + "description": "The resolution of the output image.", + "type": "string", + "enum": [ + "1344:768", + "768:1344", + "1024:1024", + "1184:864", + "864:1184", + "1536:672", + "832:1248", + "1248:832", + "896:1152", + "1152:896" + ] + }, + "referenceImages": { + "description": "An array of up to three images to be used as references for the generated image output.", + "maxItems": 3, + "type": "array", + "items": { + "title": "ReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" + } + ] + }, + "tag": { + "description": "A tag to identify the reference image. This is used to reference the image in prompt text. Must be 3-16 characters, start with a letter, and use only letters, digits, and underscores (no hyphens or other punctuation).", + "type": "string", + "minLength": 3, + "maxLength": 16, + "pattern": "^[a-z][a-z0-9_]+$" + } + }, + "required": ["uri"] + } + }, + "model": { "type": "string", "const": "gemini_2.5_flash" } }, - "required": ["media", "voice", "model"] + "required": ["promptText", "ratio", "model"] } ], "discriminator": { "propertyName": "model" } @@ -11111,9 +11470,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -11135,21 +11557,21 @@ } } }, - "/v1/text_to_speech": { + "/v1/image_upscale": { "post": { "tags": ["Start generating"], - "summary": "Text to speech", - "description": "This endpoint will start a new task to generate speech from text.", + "summary": "Image upscale", + "description": "Upscale an image with Magnific precision upscaling. Each input dimension must be between 300px and 8000px. Output width and height are the input dimensions multiplied by `scaleFactor` (default 2). Output width times height cannot exceed 25,300,000 pixels (~25.3 million).", "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 task = await client.textToSpeech\n .create({\n model: 'eleven_multilingual_v2',\n promptText: 'The quick brown fox jumps over the lazy dog',\n voice: {\n type: 'runway-preset',\n presetId: 'Leslie',\n },\n })\n .waitForTaskOutput();\nconsole.log(task);" + "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 task = await client.imageUpscale\n .create({\n model: 'magnific_precision_upscaler_v2',\n imageUri: 'https://example.com/photo.jpg',\n scaleFactor: 2,\n })\n .waitForTaskOutput();\nconsole.log(task);" }, { "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\ntask = client.text_to_speech.create(\n model='eleven_multilingual_v2',\n prompt_text='The quick brown fox jumps over the lazy dog',\n voice={\n 'type': 'runway-preset',\n 'presetId': 'Leslie',\n },\n).wait_for_task_output()\n\nprint(task)" + "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\ntask = client.image_upscale.create(\n model='magnific_precision_upscaler_v2',\n image_uri='https://example.com/photo.jpg',\n scale_factor=2,\n).wait_for_task_output()\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -11160,473 +11582,2792 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { - "title": "seed_audio", + "title": "magnific_precision_upscaler_v2", "type": "object", "properties": { - "promptText": { - "description": "A non-empty text prompt. For text-to-speech, the words to speak. For text-to-audio, a scene description that can include voice direction, dialogue, music, and sound effects.", - "type": "string", - "minLength": 1, - "maxLength": 2048 - }, - "voice": { - "description": "The voice to use for text-to-speech generation. If omitted, a default voice is used.", - "oneOf": [ + "imageUri": { + "description": "Image to upscale. See [image inputs](/assets/inputs#images) for URL, upload, and file size limits.", + "example": "https://example.com/image.jpg", + "anyOf": [ { - "title": "SeedReferenceVoice", - "description": "Clone from a single reference audio clip, then speak promptText in that voice.", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "reference-audio" - }, - "audioUri": { - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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": ["type", "audioUri"] + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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\\/.*" } - ], - "discriminator": { "propertyName": "type" } + ] }, - "speechRate": { - "description": "Relative speech speed. Negative is slower, positive is faster; 0 is normal.", + "scaleFactor": { + "description": "Multiplies each input dimension to produce output width and height. Defaults to 2.", + "type": "number", + "enum": [2, 4, 8, 16] + }, + "sharpen": { + "description": "Sharpness intensity from 0 (none) to 100.", "type": "integer", - "minimum": -50, + "minimum": 0, "maximum": 100 }, - "loudnessRate": { - "description": "Relative output loudness. Negative is quieter, positive is louder; 0 is normal.", + "smartGrain": { + "description": "Grain and texture enhancement from 0 to 100.", "type": "integer", - "minimum": -50, + "minimum": 0, "maximum": 100 }, - "pitchRate": { - "description": "Pitch shift in semitones. Negative lowers, positive raises; 0 is unchanged.", + "ultraDetail": { + "description": "Fine detail enhancement from 0 to 100.", "type": "integer", - "minimum": -12, - "maximum": 12 - }, - "sampleRate": { - "description": "Output sample rate in Hz.", - "type": "number", - "enum": [8000, 16000, 24000, 32000, 44100, 48000] + "minimum": 0, + "maximum": 100 }, - "outputFormat": { - "description": "Output audio container/format.", + "flavor": { + "description": "Optimization preset: `sublime` (illustration), `photo` (photographic), or `photo_denoiser` (noisy photos).", "type": "string", - "enum": ["wav", "mp3", "ogg_opus"] + "enum": ["sublime", "photo", "photo_denoiser"] }, - "model": { "type": "string", "const": "seed_audio" } + "model": { + "type": "string", + "const": "magnific_precision_upscaler_v2" + } }, - "required": ["promptText", "model"], + "required": ["imageUri", "model"], "additionalProperties": false + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } }, + "required": ["error"], + "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/video_upscale": { + "post": { + "tags": ["Start generating"], + "summary": "Video upscale", + "description": "This endpoint starts a task to upscale a video. Set `model` to choose the upscaler.", + "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 task = await client.videoUpscale\n .create({\n model: 'magnific_video_upscaler_creative',\n videoUri: 'https://example.com/bunny.mp4',\n resolution: '2k',\n })\n .waitForTaskOutput();\nconsole.log(task);" + }, + { + "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\ntask = client.video_upscale.create(\n model='magnific_video_upscaler_creative',\n video_uri='https://example.com/bunny.mp4',\n resolution='2k',\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", + "oneOf": [ { - "title": "eleven_multilingual_v2", + "title": "magnific_video_upscaler_creative", "type": "object", "properties": { - "promptText": { - "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", + "videoUri": { + "description": "Video to upscale. See [video inputs](/assets/inputs#videos) for URL, upload, and file size limits. Maximum duration is 30 seconds.", + "example": "https://example.com/video.mp4", + "anyOf": [ + { + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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\\/.*" + } + ] + }, + "resolution": { + "description": "Target output resolution from 720p to 4k. Defaults to `2k`.", "type": "string", - "minLength": 1, - "maxLength": 1000 + "enum": ["720p", "1k", "2k", "4k"] }, - "voice": { - "description": "The voice to use for the generated speech.", - "oneOf": [ - { - "title": "RunwayPresetVoice", - "description": "A voice preset from the RunwayML API.", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "runway-preset" - }, - "presetId": { - "description": "The preset voice ID to use for the generated speech.", - "type": "string", - "enum": [ - "Maya", - "Arjun", - "Serene", - "Bernard", - "Billy", - "Mark", - "Clint", - "Mabel", - "Chad", - "Leslie", - "Eleanor", - "Elias", - "Elliot", - "Grungle", - "Brodie", - "Sandra", - "Kirk", - "Kylie", - "Lara", - "Lisa", - "Malachi", - "Marlene", - "Martin", - "Miriam", - "Monster", - "Paula", - "Pip", - "Rusty", - "Ragnar", - "Xylar", - "Maggie", - "Jack", - "Katie", - "Noah", - "James", - "Rina", - "Ella", - "Mariah", - "Frank", - "Claudia", - "Niki", - "Vincent", - "Kendrick", - "Myrna", - "Tom", - "Wanda", - "Benjamin", - "Kiana", - "Rachel" + "creativity": { + "description": "How much AI-generated detail to add during upscaling, from 0 (faithful) to 100.", + "type": "integer", + "minimum": 0, + "maximum": 100 + }, + "sharpen": { + "description": "Sharpness intensity from 0 (none) to 100.", + "type": "integer", + "minimum": 0, + "maximum": 100 + }, + "smartGrain": { + "description": "Grain and texture enhancement from 0 to 100.", + "type": "integer", + "minimum": 0, + "maximum": 100 + }, + "flavor": { + "description": "Processing style: `vivid` for enhanced color and detail, `natural` for faithful reproduction.", + "type": "string", + "enum": ["vivid", "natural"] + }, + "fpsBoost": { + "description": "Whether to increase the output frame rate.", + "type": "boolean" + }, + "model": { + "type": "string", + "const": "magnific_video_upscaler_creative" + } + }, + "required": ["videoUri", "model"], + "additionalProperties": false + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/character_performance": { + "post": { + "tags": ["Start generating"], + "summary": "Control a character", + "description": "This endpoint will start a new task to control a character's facial expressions and body movements using a reference video.", + "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 task = await client.characterPerformance\n .create({\n model: 'act_two',\n character: {\n type: 'video',\n uri: 'https://example.com/posedCharacter.mp4',\n },\n reference: {\n type: 'video',\n uri: 'https://example.com/actorPerformance.mp4',\n },\n ratio: '1280:720',\n })\n .waitForTaskOutput();\nconsole.log(task);" + }, + { + "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\ntask = client.character_performance.create(\n model='act_two',\n character={\n 'type': 'video',\n 'uri': 'https://example.com/posedCharacter.mp4',\n },\n reference={\n 'type': 'video',\n 'uri': 'https://example.com/actorPerformance.mp4',\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", + "oneOf": [ + { + "title": "act_two", + "type": "object", + "properties": { + "seed": { + "description": "If unspecified, a random number is chosen. Varying the seed integer is a way to get different results for the same other request parameters. Using the same seed integer for an identical request will produce similar results.", + "type": "integer", + "minimum": 0, + "maximum": 4294967295 + }, + "character": { + "description": "The character to control. You can either provide a video or an image. A visually recognizable face must be visible and stay within the frame.", + "oneOf": [ + { + "title": "CharacterImage", + "description": "An image of your character. In the output, the character will use the reference video performance in its original static environment.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "image" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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": ["type", "presetId"] - } - ], - "discriminator": { "propertyName": "type" } + "required": ["type", "uri"] + }, + { + "title": "CharacterVideo", + "description": "A video of your character. In the output, the character will use the reference video performance in its original animated environment and some of the character's own movements.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "video" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": ["type", "uri"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "reference": { + "description": "The reference video containing the performance to apply to the character.", + "example": { + "type": "video", + "uri": "https://example.com/reference-performance.mp4" + }, + "oneOf": [ + { + "title": "CharacterReferenceVideo", + "description": "A video of a person performing in the manner that you would like your character to perform. The video must be between 3 and 30 seconds in duration.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "video" }, + "uri": { + "description": "A video of a person performing in the manner that you would like your character to perform. The video must be between 3 and 30 seconds in duration. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/reference-performance.mp4", + "anyOf": [ + { + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": ["type", "uri"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "bodyControl": { + "description": "A boolean indicating whether to enable body control. When enabled, non-facial movements and gestures will be applied to the character in addition to facial expressions.", + "example": true, + "type": "boolean" + }, + "expressionIntensity": { + "description": "An integer between 1 and 5 (inclusive). A larger value increases the intensity of the character's expression.", + "example": 3, + "default": 3, + "type": "integer", + "minimum": 1, + "maximum": 5 + }, + "ratio": { + "description": "The resolution of the output video.", + "example": "1280:720", + "type": "string", + "enum": [ + "1280:720", + "720:1280", + "960:960", + "1104:832", + "832:1104", + "1584:672" + ] + }, + "contentModeration": { + "description": "Settings that affect the behavior of the content moderation system.", + "example": { "publicFigureThreshold": "auto" }, + "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 + }, + "model": { "type": "string", "const": "act_two" } + }, + "required": ["character", "reference", "model"] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/sound_effect": { + "post": { + "tags": ["Start generating"], + "summary": "Generate sound effects", + "description": "This endpoint will start a new task to generate sound effects from a text description.", + "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 task = await client.soundEffect\n .create({\n model: 'eleven_text_to_sound_v2',\n promptText: 'A thunderstorm with heavy rain',\n duration: 10,\n loop: true,\n })\n .waitForTaskOutput();\nconsole.log(task);" + }, + { + "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\ntask = client.sound_effect.create(\n model='eleven_text_to_sound_v2',\n promptText='A thunderstorm with heavy rain',\n duration=10,\n loop=True,\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", + "oneOf": [ + { + "title": "seed_audio", + "type": "object", + "properties": { + "promptText": { + "description": "A non-empty text prompt. For text-to-speech, the words to speak. For text-to-audio, a scene description that can include voice direction, dialogue, music, and sound effects.", + "type": "string", + "minLength": 1, + "maxLength": 2048 + }, + "referenceAudios": { + "description": "Up to three reference audio clips. When provided, reference them in promptText as @Audio1, @Audio2, and @Audio3 in order.", + "maxItems": 3, + "type": "array", + "items": { + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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\\/.*" + } + ] + } + }, + "speechRate": { + "description": "Relative speech speed. Negative is slower, positive is faster; 0 is normal.", + "type": "integer", + "minimum": -50, + "maximum": 100 + }, + "loudnessRate": { + "description": "Relative output loudness. Negative is quieter, positive is louder; 0 is normal.", + "type": "integer", + "minimum": -50, + "maximum": 100 + }, + "pitchRate": { + "description": "Pitch shift in semitones. Negative lowers, positive raises; 0 is unchanged.", + "type": "integer", + "minimum": -12, + "maximum": 12 + }, + "sampleRate": { + "description": "Output sample rate in Hz.", + "type": "number", + "enum": [8000, 16000, 24000, 32000, 44100, 48000] + }, + "outputFormat": { + "description": "Output audio container/format.", + "type": "string", + "enum": ["wav", "mp3", "ogg_opus"] + }, + "model": { "type": "string", "const": "seed_audio" } + }, + "required": ["promptText", "model"], + "additionalProperties": false + }, + { + "title": "eleven_text_to_sound_v2", + "type": "object", + "properties": { + "promptText": { + "description": "A text description of the sound effect to generate.", + "type": "string", + "minLength": 1, + "maxLength": 3000 + }, + "duration": { + "description": "The duration of the sound effect in seconds, between 0.5 and 30 seconds. If not provided, the duration will be determined automatically based on the text description.", + "type": "number", + "minimum": 0.5, + "maximum": 30 + }, + "loop": { + "description": "Whether the output sound effect should be designed to loop seamlessly.", + "default": false, + "type": "boolean" + }, + "model": { + "type": "string", + "const": "eleven_text_to_sound_v2" + } + }, + "required": ["promptText", "model"] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/speech_to_speech": { + "post": { + "tags": ["Start generating"], + "summary": "Speech to speech", + "description": "This endpoint will start a new task to convert speech from one voice to another in audio or video.", + "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 audioTask = await client.speechToSpeech\n .create({\n model: 'eleven_multilingual_sts_v2',\n media: {\n type: 'audio',\n uri: 'https://example.com/audio.mp3',\n },\n voice: {\n type: 'runway-preset',\n presetId: 'Maggie',\n },\n })\n .waitForTaskOutput();\nconsole.log(audioTask);\n\nconst videoTask = await client.speechToSpeech\n .create({\n model: 'eleven_multilingual_sts_v2',\n media: {\n type: 'video',\n uri: 'https://example.com/video.mp4',\n },\n voice: {\n type: 'runway-preset',\n presetId: 'Noah',\n },\n })\n .waitForTaskOutput();\nconsole.log(videoTask);" + }, + { + "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\naudioTask = client.speech_to_speech.create(\n model='eleven_multilingual_sts_v2',\n media={\n 'type': 'audio',\n 'uri': 'https://example.com/audio.mp3',\n },\n voice={\n 'type': 'runway-preset',\n 'presetId': 'Maggie',\n },\n).wait_for_task_output()\n\nprint(audioTask)\n\nvideoTask = client.speech_to_speech.create(\n model='eleven_multilingual_sts_v2',\n media={\n 'type': 'video',\n 'uri': 'https://example.com/video.mp4',\n },\n voice={\n 'type': 'runway-preset',\n 'presetId': 'Noah',\n },\n).wait_for_task_output()\n\nprint(videoTask)" + } + ], + "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "oneOf": [ + { + "title": "eleven_multilingual_sts_v2", + "type": "object", + "properties": { + "removeBackgroundNoise": { + "description": "Whether to remove background noise from the generated speech.", + "type": "boolean" + }, + "media": { + "oneOf": [ + { + "title": "SpeechToSpeechAudio", + "description": "An audio file containing dialogue to be processed.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "audio" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "uri"] + }, + { + "title": "SpeechToSpeechVideo", + "description": "A video file containing dialogue to be processed.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "video" }, + "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": ["type", "uri"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "voice": { + "description": "The voice to use for the generated speech.", + "oneOf": [ + { + "title": "RunwayPresetVoice", + "description": "A voice preset from the RunwayML API.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "runway-preset" + }, + "presetId": { + "description": "The preset voice ID to use for the generated speech.", + "type": "string", + "enum": [ + "Maya", + "Arjun", + "Serene", + "Bernard", + "Billy", + "Mark", + "Clint", + "Mabel", + "Chad", + "Leslie", + "Eleanor", + "Elias", + "Elliot", + "Grungle", + "Brodie", + "Sandra", + "Kirk", + "Kylie", + "Lara", + "Lisa", + "Malachi", + "Marlene", + "Martin", + "Miriam", + "Monster", + "Paula", + "Pip", + "Rusty", + "Ragnar", + "Xylar", + "Maggie", + "Jack", + "Katie", + "Noah", + "James", + "Rina", + "Ella", + "Mariah", + "Frank", + "Claudia", + "Niki", + "Vincent", + "Kendrick", + "Myrna", + "Tom", + "Wanda", + "Benjamin", + "Kiana", + "Rachel" + ] + } + }, + "required": ["type", "presetId"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "model": { + "type": "string", + "const": "eleven_multilingual_sts_v2" + } + }, + "required": ["media", "voice", "model"] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/text_to_speech": { + "post": { + "tags": ["Start generating"], + "summary": "Text to speech", + "description": "This endpoint will start a new task to generate speech from text.", + "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 task = await client.textToSpeech\n .create({\n model: 'eleven_v3',\n promptText: '[laughs] The quick brown fox jumps over the lazy dog',\n voice: {\n type: 'runway-preset',\n presetId: 'Leslie',\n },\n stability: 0.5,\n languageCode: 'en',\n })\n .waitForTaskOutput();\nconsole.log(task);" + }, + { + "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\ntask = client.text_to_speech.create(\n model='eleven_v3',\n prompt_text='[laughs] The quick brown fox jumps over the lazy dog',\n voice={\n 'type': 'runway-preset',\n 'presetId': 'Leslie',\n },\n stability=0.5,\n language_code='en',\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", + "oneOf": [ + { + "title": "seed_audio", + "type": "object", + "properties": { + "promptText": { + "description": "A non-empty text prompt. For text-to-speech, the words to speak. For text-to-audio, a scene description that can include voice direction, dialogue, music, and sound effects.", + "type": "string", + "minLength": 1, + "maxLength": 2048 + }, + "voice": { + "description": "The voice to use for text-to-speech generation. If omitted, a default voice is used.", + "oneOf": [ + { + "title": "SeedPresetVoice", + "description": "A preset voice for Seed Audio text-to-speech.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "seed-preset" + }, + "presetId": { + "description": "A Seed Audio preset voice id.", + "type": "string", + "enum": [ + "vivi_mixed_en_zh_ja_es_id", + "mindy_en_es_id_pt_zh", + "kian_en_zh", + "cedric_en_zh", + "sophie_en_zh", + "jean_en_zh", + "magnus_en_zh", + "mabel_en_zh", + "nadia_en_zh", + "opal_en_zh", + "pearl_en_zh", + "quentin_en_zh", + "corinne_mixed_en_zh", + "esther_mixed_en_zh", + "lyla_mixed_en_zh", + "tracy_es_zh", + "sandy_es_mixed_en_zh", + "felix_zh", + "celeste_zh", + "monkey_king_zh" + ] + } + }, + "required": ["type", "presetId"] + }, + { + "title": "SeedReferenceVoice", + "description": "Clone from a single reference audio clip, then speak promptText in that voice.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "reference-audio" + }, + "audioUri": { + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "audioUri"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "speechRate": { + "description": "Relative speech speed. Negative is slower, positive is faster; 0 is normal.", + "type": "integer", + "minimum": -50, + "maximum": 100 + }, + "loudnessRate": { + "description": "Relative output loudness. Negative is quieter, positive is louder; 0 is normal.", + "type": "integer", + "minimum": -50, + "maximum": 100 + }, + "pitchRate": { + "description": "Pitch shift in semitones. Negative lowers, positive raises; 0 is unchanged.", + "type": "integer", + "minimum": -12, + "maximum": 12 + }, + "sampleRate": { + "description": "Output sample rate in Hz.", + "type": "number", + "enum": [8000, 16000, 24000, 32000, 44100, 48000] + }, + "outputFormat": { + "description": "Output audio container/format.", + "type": "string", + "enum": ["wav", "mp3", "ogg_opus"] + }, + "model": { "type": "string", "const": "seed_audio" } + }, + "required": ["promptText", "model"], + "additionalProperties": false + }, + { + "title": "eleven_multilingual_v2", + "type": "object", + "properties": { + "promptText": { + "description": "A non-empty string up to 1000 characters (measured in UTF-16 code units). This should describe in detail what should appear in the output.", + "type": "string", + "minLength": 1, + "maxLength": 1000 + }, + "voice": { + "description": "The voice to use for the generated speech.", + "oneOf": [ + { + "title": "RunwayPresetVoice", + "description": "A voice preset from the RunwayML API.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "runway-preset" + }, + "presetId": { + "description": "The preset voice ID to use for the generated speech.", + "type": "string", + "enum": [ + "Maya", + "Arjun", + "Serene", + "Bernard", + "Billy", + "Mark", + "Clint", + "Mabel", + "Chad", + "Leslie", + "Eleanor", + "Elias", + "Elliot", + "Grungle", + "Brodie", + "Sandra", + "Kirk", + "Kylie", + "Lara", + "Lisa", + "Malachi", + "Marlene", + "Martin", + "Miriam", + "Monster", + "Paula", + "Pip", + "Rusty", + "Ragnar", + "Xylar", + "Maggie", + "Jack", + "Katie", + "Noah", + "James", + "Rina", + "Ella", + "Mariah", + "Frank", + "Claudia", + "Niki", + "Vincent", + "Kendrick", + "Myrna", + "Tom", + "Wanda", + "Benjamin", + "Kiana", + "Rachel" + ] + } + }, + "required": ["type", "presetId"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "model": { + "type": "string", + "const": "eleven_multilingual_v2" + } + }, + "required": ["promptText", "voice", "model"] + }, + { + "title": "eleven_v3", + "type": "object", + "properties": { + "promptText": { + "description": "The text to convert to speech. You can include expressive audio tags like [laughs] or [whispers] in the script.", + "type": "string", + "minLength": 1, + "maxLength": 5000 + }, + "voice": { + "description": "The voice to use for the generated speech.", + "oneOf": [ + { + "title": "RunwayPresetVoice", + "description": "A voice preset from the RunwayML API.", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "runway-preset" + }, + "presetId": { + "description": "The preset voice ID to use for the generated speech.", + "type": "string", + "enum": [ + "Maya", + "Arjun", + "Serene", + "Bernard", + "Billy", + "Mark", + "Clint", + "Mabel", + "Chad", + "Leslie", + "Eleanor", + "Elias", + "Elliot", + "Grungle", + "Brodie", + "Sandra", + "Kirk", + "Kylie", + "Lara", + "Lisa", + "Malachi", + "Marlene", + "Martin", + "Miriam", + "Monster", + "Paula", + "Pip", + "Rusty", + "Ragnar", + "Xylar", + "Maggie", + "Jack", + "Katie", + "Noah", + "James", + "Rina", + "Ella", + "Mariah", + "Frank", + "Claudia", + "Niki", + "Vincent", + "Kendrick", + "Myrna", + "Tom", + "Wanda", + "Benjamin", + "Kiana", + "Rachel" + ] + } + }, + "required": ["type", "presetId"] + } + ], + "discriminator": { "propertyName": "type" } + }, + "stability": { + "description": "Voice stability (0–1). Lower values allow broader emotional range; higher values are steadier.", + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "similarityBoost": { + "description": "How closely the output tracks the original speaker (0–1). Maps to ElevenLabs similarity_boost.", + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "style": { + "description": "Style exaggeration (0–1). Higher values amplify the speaker style.", + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "speed": { + "description": "Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and above speed up.", + "type": "number", + "minimum": 0.7, + "maximum": 1.2 + }, + "useSpeakerBoost": { + "description": "Boost similarity to the original speaker at a small latency cost.", + "type": "boolean" + }, + "languageCode": { + "description": "ISO 639-1 language code to enforce pronunciation and normalization.", + "type": "string", + "minLength": 2, + "maxLength": 5 + }, + "applyTextNormalization": { + "description": "Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).", + "type": "string", + "enum": ["auto", "on", "off"] + }, + "seed": { + "description": "Optional seed for more deterministic output (0–4294967295). Not guaranteed.", + "type": "integer", + "minimum": 0, + "maximum": 4294967295 + }, + "model": { "type": "string", "const": "eleven_v3" } + }, + "required": ["promptText", "voice", "model"] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/voice_dubbing": { + "post": { + "tags": ["Start generating"], + "summary": "Voice dubbing", + "description": "This endpoint will start a new task to dub audio content to a target language.", + "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 task = await client.voiceDubbing\n .create({\n model: 'eleven_voice_dubbing',\n audioUri: 'https://example.com/audio.mp3',\n targetLang: 'es',\n })\n .waitForTaskOutput();\nconsole.log(task);" + }, + { + "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\ntask = client.voice_dubbing.create(\n model='eleven_voice_dubbing',\n audio_uri='https://example.com/audio.mp3',\n target_lang='es',\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", + "oneOf": [ + { + "title": "eleven_voice_dubbing", + "type": "object", + "properties": { + "audioUri": { + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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\\/.*" + } + ] + }, + "targetLang": { + "description": "The target language code to dub the audio to (e.g., \"es\" for Spanish, \"fr\" for French).", + "type": "string", + "enum": [ + "en", + "hi", + "pt", + "zh", + "es", + "fr", + "de", + "ja", + "ar", + "ru", + "ko", + "id", + "it", + "nl", + "tr", + "pl", + "sv", + "fil", + "ms", + "ro", + "uk", + "el", + "cs", + "da", + "fi", + "bg", + "hr", + "sk", + "ta" + ] + }, + "disableVoiceCloning": { + "description": "Whether to disable voice cloning and use a generic voice instead.", + "type": "boolean" + }, + "dropBackgroundAudio": { + "description": "Whether to remove background audio from the dubbed output.", + "type": "boolean" + }, + "numSpeakers": { + "description": "The number of speakers in the audio. If not provided, it will be detected automatically.", + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "model": { + "type": "string", + "const": "eleven_voice_dubbing" + } + }, + "required": ["audioUri", "targetLang", "model"] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/voice_isolation": { + "post": { + "tags": ["Start generating"], + "summary": "Voice isolation", + "description": "This endpoint will start a new task to isolate the voice from the background audio. Audio duration must be greater than 4.6 seconds and less than 3600 seconds.", + "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 task = await client.voiceIsolation\n .create({\n model: 'eleven_voice_isolation',\n audioUrl: 'https://example.com/audio.mp3',\n })\n .waitForTaskOutput();\nconsole.log(task);" + }, + { + "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\ntask = client.voice_isolation.create(\n model='eleven_voice_isolation',\n audio_url='https://example.com/audio.mp3',\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", + "oneOf": [ + { + "title": "eleven_voice_isolation", + "type": "object", + "properties": { + "audioUri": { + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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\\/.*" + } + ] + }, + "model": { + "type": "string", + "const": "eleven_voice_isolation" + } + }, + "required": ["audioUri", "model"] + } + ], + "discriminator": { "propertyName": "model" } + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], + "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/generate/video": { + "post": { + "tags": ["Model Router"], + "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": { + "configId": { + "description": "The slug of a saved Model Router config to route this request with.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "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": 6000 + }, + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "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 + } + ] + } }, - "model": { + "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": 30 + }, + "aspectRatio": { + "description": "Desired aspect ratio. Models that do not support the requested aspect are excluded.", "type": "string", - "const": "eleven_multilingual_v2" + "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 } }, - "required": ["promptText", "voice", "model"] + "additionalProperties": false } - ], - "discriminator": { "propertyName": "model" } + }, + "required": ["configId", "input"], + "additionalProperties": false } } } }, "responses": { "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" - } - }, - "required": ["id"], - "additionalProperties": false - } - } - } - }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", + "description": "The routing decision. Includes a task `id` for real requests; dry runs return the decision only.", "content": { "application/json": { "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/voice_dubbing": { - "post": { - "tags": ["Start generating"], - "summary": "Voice dubbing", - "description": "This endpoint will start a new task to dub audio content to a target language.", - "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 task = await client.voiceDubbing\n .create({\n model: 'eleven_voice_dubbing',\n audioUri: 'https://example.com/audio.mp3',\n targetLang: 'es',\n })\n .waitForTaskOutput();\nconsole.log(task);" - }, - { - "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\ntask = client.voice_dubbing.create(\n model='eleven_voice_dubbing',\n audio_uri='https://example.com/audio.mp3',\n target_lang='es',\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", - "oneOf": [ - { - "title": "eleven_voice_dubbing", - "type": "object", - "properties": { - "audioUri": { - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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\\/.*" - } - ] - }, - "targetLang": { - "description": "The target language code to dub the audio to (e.g., \"es\" for Spanish, \"fr\" for French).", - "type": "string", - "enum": [ - "en", - "hi", - "pt", - "zh", - "es", - "fr", - "de", - "ja", - "ar", - "ru", - "ko", - "id", - "it", - "nl", - "tr", - "pl", - "sv", - "fil", - "ms", - "ro", - "uk", - "el", - "cs", - "da", - "fi", - "bg", - "hr", - "sk", - "ta" - ] - }, - "disableVoiceCloning": { - "description": "Whether to disable voice cloning and use a generic voice instead.", - "type": "boolean" - }, - "dropBackgroundAudio": { - "description": "Whether to remove background audio from the dubbed output.", - "type": "boolean" - }, - "numSpeakers": { - "description": "The number of speakers in the audio. If not provided, it will be detected automatically.", - "type": "integer", - "exclusiveMinimum": 0, - "maximum": 9007199254740991 + "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 + }, + "capacityFallback": { + "description": "Present only when the config enables fallback.onCapacity and capacity affected this request.", + "type": "object", + "properties": { + "skipped": { + "description": "Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue.", + "type": "boolean" + } + }, + "required": ["skipped", "allExhausted"], + "additionalProperties": false + } + }, + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], + "additionalProperties": false + } }, - "model": { - "type": "string", - "const": "eleven_voice_dubbing" - } + "required": ["dryRun", "id", "routing"], + "additionalProperties": false }, - "required": ["audioUri", "targetLang", "model"] - } - ], - "discriminator": { "propertyName": "model" } - } - } - } - }, - "responses": { - "200": { - "description": "The task that was created.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + { + "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 + }, + "capacityFallback": { + "description": "Present only when the config enables fallback.onCapacity and capacity affected this request.", + "type": "object", + "properties": { + "skipped": { + "description": "Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue.", + "type": "boolean" + } + }, + "required": ["skipped", "allExhausted"], + "additionalProperties": false + } + }, + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], + "additionalProperties": false + } + }, + "required": ["dryRun", "routing"], + "additionalProperties": false } - }, - "required": ["id"], - "additionalProperties": false + ], + "discriminator": { "propertyName": "dryRun" } } } } }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", + "400": { + "description": "Error", "content": { "application/json": { "schema": { - "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/voice_isolation": { - "post": { - "tags": ["Start generating"], - "summary": "Voice isolation", - "description": "This endpoint will start a new task to isolate the voice from the background audio. Audio duration must be greater than 4.6 seconds and less than 3600 seconds.", - "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 task = await client.voiceIsolation\n .create({\n model: 'eleven_voice_isolation',\n audioUrl: 'https://example.com/audio.mp3',\n })\n .waitForTaskOutput();\nconsole.log(task);" - }, - { - "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\ntask = client.voice_isolation.create(\n model='eleven_voice_isolation',\n audio_url='https://example.com/audio.mp3',\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", - "oneOf": [ - { - "title": "eleven_voice_isolation", - "type": "object", - "properties": { - "audioUri": { - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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==", + "anyOf": [ + { + "description": "No model satisfies the config and request together. Returned identically for real and dry-run requests.", + "type": "object", + "properties": { + "error": { "type": "string" }, + "code": { + "type": "string", + "const": "no_eligible_model" + }, + "pipeline": { + "description": "The hard-filter pipeline in execution order with surviving model ids at each stage.", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "const": "filter" }, + "filter": { + "description": "Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling).", + "type": "string", + "enum": [ + "capability", + "prompt_length", + "input_support", + "allow_deny", + "price" + ] + }, + "models": { + "description": "Model IDs of the models that remained eligible after this filter stage.", + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["type", "filter", "models"], + "additionalProperties": false + } + }, + "emptiedBy": { + "description": "The filter(s) that reduced the eligible pool to zero.", + "type": "array", + "items": { "type": "string", - "minLength": 13, - "maxLength": 16777216, - "pattern": "^data:audio\\/.*" + "enum": [ + "capability", + "prompt_length", + "input_support", + "allow_deny", + "price" + ] } - ] + } }, - "model": { - "type": "string", - "const": "eleven_voice_isolation" - } + "required": ["error", "code", "pipeline", "emptiedBy"], + "additionalProperties": false }, - "required": ["audioUri", "model"] - } - ], - "discriminator": { "propertyName": "model" } + { + "description": "The request was invalid - e.g. an input failed validation for the routed model.", + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues, when available.", + "type": "array", + "items": { + "type": "object", + "properties": {}, + "additionalProperties": {} + } + } + }, + "required": ["error"], + "additionalProperties": false + } + ] + } } } - } - }, - "responses": { - "200": { - "description": "The task that was created.", + }, + "404": { + "description": "The referenced router config does not exist or is not accessible to this account.", "content": { "application/json": { "schema": { "type": "object", "properties": { - "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", + "error": { "type": "string" }, + "code": { "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})$" + "const": "router_config_not_found" } }, - "required": ["id"], + "required": ["error", "code"], "additionalProperties": false } } @@ -11644,332 +14385,116 @@ } } } - } - } - } - }, - "/v1/generate/video": { - "post": { - "tags": ["Model Router"], - "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": { - "configId": { - "description": "The slug of a saved Model Router config to route this request with.", - "type": "string", - "pattern": "^[a-z][a-z0-9_-]{0,63}$" - }, - "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", - "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, Runway upload URI, or base64 data URI (e.g. `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/video.mp4", - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", - "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.", + } + } + } + }, + "/v1/generate/image": { + "post": { + "tags": ["Model Router"], + "summary": "Routed image generation", + "description": "Start an image 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": "RoutedImageRequest", + "type": "object", + "properties": { + "configId": { + "description": "The slug of a saved Model Router config to route this request with.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "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": "UniversalImageInput", + "description": "Model-agnostic image generation input. The router selects a model and maps these options to it.", + "type": "object", + "properties": { + "promptText": { + "description": "A text prompt describing the desired image.", + "type": "string", + "minLength": 1, + "maxLength": 32000 + }, + "referenceImages": { + "description": "Optional reference images for models that support them. Tags are assigned per model when omitted.", + "maxItems": 16, + "type": "array", + "items": { + "title": "ImageReferenceImage", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) 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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", - "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\\/.*" - } - ] + "type": "string", + "minLength": 13, + "maxLength": 2048, + "pattern": "^https:\\/\\/.*" }, - "at": { - "type": "number", - "minimum": 0, - "maximum": 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:\\/\\/.*" }, - "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 + { + "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", "at"], - "additionalProperties": false + ] } - ] + }, + "required": ["uri"], + "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"] + "enum": [ + "16:9", + "9:16", + "1:1", + "4:3", + "3:4", + "21:9", + "2:3", + "3:2", + "4:5", + "5:4" + ] }, "resolution": { - "description": "Desired output resolution tier. Models that do not support the requested tier are excluded.", + "description": "Desired megapixel tier. Models that do not support the requested tier are excluded.", "type": "string", - "enum": ["480p", "720p", "1080p", "4k"] + "enum": ["1k", "2k", "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" + "outputCount": { + "description": "Number of images to generate (1-10). Models that cannot produce the exact count are excluded and cost scales with this value.", + "type": "integer", + "minimum": 1, + "maximum": 10 }, "seed": { - "description": "A seed for reproducible generation. Random if omitted.", + "description": "A seed for reproducible generation. Only gen4_image and gen4_image_turbo accept this field.", "type": "integer", "minimum": 0, "maximum": 4294967295 @@ -11987,6 +14512,7 @@ "additionalProperties": false } }, + "required": ["promptText"], "additionalProperties": false } }, @@ -12002,97 +14528,233 @@ "content": { "application/json": { "schema": { - "title": "RoutedVideoTaskCreated", - "type": "object", - "properties": { - "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.", + "oneOf": [ + { + "title": "RoutedImageTaskCreated", "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" + "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})$" }, - "resolvedSettings": { - "description": "The resolved config settings the router used for this request.", + "routing": { + "description": "Metadata describing which model the router selected and why.", "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"] + "model": { + "description": "The public name of the model the router selected.", + "type": "string" }, - "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" } - ] + "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": { + "ratio": { + "description": "Concrete output ratio derived from aspectRatio and resolution for the selected model.", + "type": "string" + }, + "aspectRatio": { + "description": "Aspect ratio used for routing display.", + "type": "string" + }, + "resolution": { + "description": "Megapixel tier used for routing display.", + "type": "string" + } + }, + "required": [ + "ratio", + "aspectRatio", + "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 + }, + "capacityFallback": { + "description": "Present only when the config enables fallback.onCapacity and capacity affected this request.", + "type": "object", + "properties": { + "skipped": { + "description": "Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue.", + "type": "boolean" + } + }, + "required": ["skipped", "allExhausted"], + "additionalProperties": false } }, - "required": ["optimizeFor", "priceCeiling"], + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], "additionalProperties": false - }, - "resolvedInput": { - "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", + } + }, + "required": ["dryRun", "id", "routing"], + "additionalProperties": false + }, + { + "title": "RoutedImageDryRun", + "type": "object", + "properties": { + "dryRun": { "type": "boolean", "const": true }, + "routing": { + "description": "Metadata describing which model the router selected and why.", "type": "object", "properties": { - "duration": { - "description": "Duration in seconds used for routing display (request value or router default).", - "type": "number" + "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": { + "ratio": { + "description": "Concrete output ratio derived from aspectRatio and resolution for the selected model.", + "type": "string" + }, + "aspectRatio": { + "description": "Aspect ratio used for routing display.", + "type": "string" + }, + "resolution": { + "description": "Megapixel tier used for routing display.", + "type": "string" + } + }, + "required": [ + "ratio", + "aspectRatio", + "resolution" + ], + "additionalProperties": false }, - "ratio": { - "description": "Concrete output ratio derived from aspectRatio (e.g. \"1280:720\"), or the router default.", - "type": "string" + "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 }, - "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" + "capacityFallback": { + "description": "Present only when the config enables fallback.onCapacity and capacity affected this request.", + "type": "object", + "properties": { + "skipped": { + "description": "Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue.", + "type": "boolean" + } + }, + "required": ["skipped", "allExhausted"], + "additionalProperties": false } }, - "required": ["credits"], + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], "additionalProperties": false } }, - "required": [ - "model", - "provider", - "configId", - "resolvedSettings", - "resolvedInput", - "estimatedCost" - ], + "required": ["dryRun", "routing"], "additionalProperties": false } - }, - "required": ["id", "routing"], - "additionalProperties": false + ], + "discriminator": { "propertyName": "dryRun" } } } } @@ -12113,12 +14775,14 @@ "const": "no_eligible_model" }, "pipeline": { - "description": "The hard-filter pipeline in execution order with survivor counts at each stage.", + "description": "The hard-filter pipeline in execution order with surviving model ids at each stage.", "type": "array", "items": { "type": "object", "properties": { + "type": { "type": "string", "const": "filter" }, "filter": { + "description": "Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling).", "type": "string", "enum": [ "capability", @@ -12128,14 +14792,13 @@ "price" ] }, - "remaining": { - "description": "How many models remained eligible after this filter ran.", - "type": "integer", - "minimum": -9007199254740991, - "maximum": 9007199254740991 + "models": { + "description": "Model IDs of the models that remained eligible after this filter stage.", + "type": "array", + "items": { "type": "string" } } }, - "required": ["filter", "remaining"], + "required": ["type", "filter", "models"], "additionalProperties": false } }, @@ -12201,22 +14864,35 @@ } } } + }, + "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/generate/image": { + "/v1/generate/audio": { "post": { "tags": ["Model Router"], - "summary": "Routed image generation", - "description": "Start an image generation task using a saved Model Router config instead of naming a model.", + "summary": "Routed audio generation", + "description": "Start an audio generation task using a saved Model Router config instead of naming a model. Set input.type to speech to speak promptText verbatim, or audio to generate audio described by promptText.", "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], "requestBody": { "content": { "application/json": { "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", - "title": "RoutedImageRequest", + "title": "RoutedAudioRequest", "type": "object", "properties": { "configId": { @@ -12224,32 +14900,157 @@ "type": "string", "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, + "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": "UniversalImageInput", - "description": "Model-agnostic image generation input. The router selects a model and maps these options to it.", + "title": "UniversalAudioInput", + "description": "Model-agnostic audio generation input. The router selects a model and maps these options to it.", "type": "object", "properties": { + "type": { + "description": "How promptText is interpreted: `speech` speaks it verbatim as a script; `audio` treats it as a description of the desired audio, which may combine speech, music, ambience, and sound effects.", + "type": "string", + "enum": ["speech", "audio"] + }, "promptText": { - "description": "A text prompt describing the desired image.", + "description": "For `speech`, the words to speak. For `audio`, a description of the desired output.", "type": "string", "minLength": 1, - "maxLength": 32000 + "maxLength": 5000 }, - "referenceImages": { - "description": "Optional reference images for models that support them. Tags are assigned per model when omitted.", - "maxItems": 16, + "voice": { + "description": "The voice to speak with. When omitted, models that support a default voice remain eligible.", + "oneOf": [ + { + "title": "AudioPresetVoice", + "description": "A preset voice.", + "type": "object", + "properties": { + "type": { "type": "string", "const": "preset" }, + "presetId": { + "description": "A Runway preset voice id. Choosing a preset routes only to models that support preset voices.", + "type": "string", + "enum": [ + "Maya", + "Arjun", + "Serene", + "Bernard", + "Billy", + "Mark", + "Clint", + "Mabel", + "Chad", + "Leslie", + "Eleanor", + "Elias", + "Elliot", + "Grungle", + "Brodie", + "Sandra", + "Kirk", + "Kylie", + "Lara", + "Lisa", + "Malachi", + "Marlene", + "Martin", + "Miriam", + "Monster", + "Paula", + "Pip", + "Rusty", + "Ragnar", + "Xylar", + "Maggie", + "Jack", + "Katie", + "Noah", + "James", + "Rina", + "Ella", + "Mariah", + "Frank", + "Claudia", + "Niki", + "Vincent", + "Kendrick", + "Myrna", + "Tom", + "Wanda", + "Benjamin", + "Kiana", + "Rachel" + ] + } + }, + "required": ["type", "presetId"], + "additionalProperties": false + }, + { + "title": "AudioReferenceVoice", + "description": "Clone a voice from a reference audio clip, then speak promptText in that voice. Routes only to models that support voice cloning.", + "x-stainless-model": "generate.audio.reference_voice", + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "reference-audio" + }, + "audioUri": { + "description": "A 1-30 second clip to clone the voice from.", + "example": "https://example.com/audio.mp3", + "anyOf": [ + { + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": ["type", "audioUri"], + "additionalProperties": false + } + ], + "discriminator": { "propertyName": "type" } + }, + "referenceAudios": { + "description": "Optional reference audio clips guiding `audio` generation, for models that support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3 in order.", + "maxItems": 3, "type": "array", "items": { - "title": "ImageReferenceImage", + "title": "AudioReferenceAudio", + "x-stainless-model": "generate.audio.reference_audio", "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", + "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, Runway upload URI, or base64 data URI (e.g. `data:image/png;base64,...`, up to 5MB) containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", - "example": "https://example.com/image.jpg", + "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", "type": "string", "minLength": 13, "maxLength": 2048, @@ -12268,63 +15069,28 @@ "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", "type": "string", "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "maxLength": 16777216, + "pattern": "^data:audio\\/.*" } ] } }, "required": ["uri"], "additionalProperties": false - } - }, - "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", - "2:3", - "3:2", - "4:5", - "5:4" - ] - }, - "resolution": { - "description": "Desired megapixel tier. Models that do not support the requested tier are excluded.", - "type": "string", - "enum": ["1k", "2k", "4k"] - }, - "outputCount": { - "description": "Number of images to generate (1-10). Models that cannot produce the exact count are excluded and cost scales with this value.", - "type": "integer", - "minimum": 1, - "maximum": 10 - }, - "seed": { - "description": "A seed for reproducible generation. Only gen4_image and gen4_image_turbo accept this field.", - "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 + } + }, + "duration": { + "description": "Desired output duration in seconds for `audio` generation. Models that cannot honor an explicit duration are excluded.", + "type": "number", + "minimum": 0.5, + "maximum": 30 + }, + "loop": { + "description": "When true, the `audio` output is designed to loop seamlessly. Models without loop support are excluded.", + "type": "boolean" } }, - "required": ["promptText"], + "required": ["type", "promptText"], "additionalProperties": false } }, @@ -12340,97 +15106,231 @@ "content": { "application/json": { "schema": { - "title": "RoutedImageTaskCreated", - "type": "object", - "properties": { - "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.", + "oneOf": [ + { + "title": "RoutedAudioTaskCreated", "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" + "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})$" }, - "resolvedSettings": { - "description": "The resolved config settings the router used for this request.", + "routing": { + "description": "Metadata describing which model the router selected and why.", "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"] + "model": { + "description": "The public name of the model the router selected.", + "type": "string" }, - "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" } - ] + "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": { + "type": { + "description": "The prompt mode the router routed for.", + "type": "string", + "enum": ["speech", "audio"] + }, + "voice": { + "description": "How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio.", + "type": "string", + "enum": [ + "preset", + "reference-audio", + "default", + "none" + ] + } + }, + "required": ["type", "voice"], + "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 + }, + "capacityFallback": { + "description": "Present only when the config enables fallback.onCapacity and capacity affected this request.", + "type": "object", + "properties": { + "skipped": { + "description": "Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue.", + "type": "boolean" + } + }, + "required": ["skipped", "allExhausted"], + "additionalProperties": false } }, - "required": ["optimizeFor", "priceCeiling"], + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], "additionalProperties": false - }, - "resolvedInput": { - "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", + } + }, + "required": ["dryRun", "id", "routing"], + "additionalProperties": false + }, + { + "title": "RoutedAudioDryRun", + "type": "object", + "properties": { + "dryRun": { "type": "boolean", "const": true }, + "routing": { + "description": "Metadata describing which model the router selected and why.", "type": "object", "properties": { - "ratio": { - "description": "Concrete output ratio derived from aspectRatio and resolution for the selected model.", + "model": { + "description": "The public name of the model the router selected.", "type": "string" }, - "aspectRatio": { - "description": "Aspect ratio used for routing display.", + "provider": { + "description": "The provider of the selected model.", "type": "string" }, - "resolution": { - "description": "Megapixel tier used for routing display.", + "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": { + "type": { + "description": "The prompt mode the router routed for.", + "type": "string", + "enum": ["speech", "audio"] + }, + "voice": { + "description": "How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio.", + "type": "string", + "enum": [ + "preset", + "reference-audio", + "default", + "none" + ] + } + }, + "required": ["type", "voice"], + "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 + }, + "capacityFallback": { + "description": "Present only when the config enables fallback.onCapacity and capacity affected this request.", + "type": "object", + "properties": { + "skipped": { + "description": "Eligible models that were considered for this request but not selected because this account is at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its concurrency limit, so the best-ranked model was used and the task will queue.", + "type": "boolean" + } + }, + "required": ["skipped", "allExhausted"], + "additionalProperties": false } }, - "required": ["ratio", "aspectRatio", "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"], + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], "additionalProperties": false } }, - "required": [ - "model", - "provider", - "configId", - "resolvedSettings", - "resolvedInput", - "estimatedCost" - ], + "required": ["dryRun", "routing"], "additionalProperties": false } - }, - "required": ["id", "routing"], - "additionalProperties": false + ], + "discriminator": { "propertyName": "dryRun" } } } } @@ -12451,12 +15351,14 @@ "const": "no_eligible_model" }, "pipeline": { - "description": "The hard-filter pipeline in execution order with survivor counts at each stage.", + "description": "The hard-filter pipeline in execution order with surviving model ids at each stage.", "type": "array", "items": { "type": "object", "properties": { + "type": { "type": "string", "const": "filter" }, "filter": { + "description": "Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling).", "type": "string", "enum": [ "capability", @@ -12466,14 +15368,13 @@ "price" ] }, - "remaining": { - "description": "How many models remained eligible after this filter ran.", - "type": "integer", - "minimum": -9007199254740991, - "maximum": 9007199254740991 + "models": { + "description": "Model IDs of the models that remained eligible after this filter stage.", + "type": "array", + "items": { "type": "string" } } }, - "required": ["filter", "remaining"], + "required": ["type", "filter", "models"], "additionalProperties": false } }, @@ -12534,7 +15435,165 @@ "const": "router_config_not_found" } }, - "required": ["error", "code"], + "required": ["error", "code"], + "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/organization/webapp/usage": { + "get": { + "tags": ["Organization"], + "summary": "List linked workspace usage", + "description": "List per-generation credit-usage rows for the linked Runway workspaces you administer, newest first. Unlike `/v1/organization/usage` (this API project's own usage), this reports usage from the workspace linked to this API project. Authorized via that account link.", + "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." + }, + { + "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." + }, + { + "name": "from", + "in": "query", + "required": true, + "schema": { + "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))$" + }, + "description": "Start of the time window (inclusive), ISO-8601 datetime." + }, + { + "name": "to", + "in": "query", + "required": true, + "schema": { + "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))$" + }, + "description": "End of the time window (exclusive), ISO-8601 datetime. A `cursor` can only narrow this window, never extend it past `to`." + }, + { + "name": "organizationId", + "in": "query", + "required": false, + "schema": { + "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)$" + }, + "description": "Organization to report on. Optional when this API project is linked to a single organization; required when it is linked to more than one." + }, + { + "name": "workspaceIds", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Restrict results to these workspace IDs, as a comma-separated list. Defaults to every workspace you administer in the organization." + }, + { "$ref": "#/components/parameters/X-Runway-Version" } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "description": "The list of items for the current page.", + "type": "array", + "items": { + "type": "object", + "properties": { + "timestamp": { + "description": "When the generation was charged.", + "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))$" + }, + "email": { + "description": "Email of the user who generated.", + "type": "string" + }, + "workspaceId": { + "description": "ID of the owning workspace.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "workspaceName": { + "description": "Name of the owning workspace.", + "type": "string" + }, + "tool": { + "description": "Model/task display name for the generation.", + "type": "string" + }, + "credits": { + "description": "Credits charged for this generation.", + "type": "number" + }, + "type": { + "description": "Whether the row is a credit charge for a generation or a task refund (negative credits).", + "type": "string", + "enum": ["charge", "refund"] + } + }, + "required": [ + "timestamp", + "email", + "workspaceId", + "workspaceName", + "tool", + "credits", + "type" + ], + "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" }] + } + }, + "required": ["data", "hasMore", "nextCursor"], "additionalProperties": false } } @@ -12543,423 +15602,477 @@ } } }, - "/v1/generate/audio": { - "post": { - "tags": ["Model Router"], - "summary": "Routed audio generation", - "description": "Start an audio generation task using a saved Model Router config instead of naming a model. Set input.type to speech to speak promptText verbatim, or audio to generate audio described by promptText.", - "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "title": "RoutedAudioRequest", - "type": "object", - "properties": { - "configId": { - "description": "The slug of a saved Model Router config to route this request with.", - "type": "string", - "pattern": "^[a-z][a-z0-9_-]{0,63}$" - }, - "input": { - "title": "UniversalAudioInput", - "description": "Model-agnostic audio generation input. The router selects a model and maps these options to it.", - "type": "object", - "properties": { - "type": { - "description": "How promptText is interpreted: `speech` speaks it verbatim as a script; `audio` treats it as a description of the desired audio, which may combine speech, music, ambience, and sound effects.", - "type": "string", - "enum": ["speech", "audio"] - }, - "promptText": { - "description": "For `speech`, the words to speak. For `audio`, a description of the desired output.", - "type": "string", - "minLength": 1, - "maxLength": 3000 - }, - "voice": { - "description": "The voice to speak with. When omitted, models that support a default voice remain eligible.", - "oneOf": [ - { - "title": "AudioPresetVoice", - "description": "A preset voice.", - "type": "object", - "properties": { - "type": { "type": "string", "const": "preset" }, - "presetId": { - "description": "A Runway preset voice id. Choosing a preset routes only to models that support preset voices.", - "type": "string", - "enum": [ - "Maya", - "Arjun", - "Serene", - "Bernard", - "Billy", - "Mark", - "Clint", - "Mabel", - "Chad", - "Leslie", - "Eleanor", - "Elias", - "Elliot", - "Grungle", - "Brodie", - "Sandra", - "Kirk", - "Kylie", - "Lara", - "Lisa", - "Malachi", - "Marlene", - "Martin", - "Miriam", - "Monster", - "Paula", - "Pip", - "Rusty", - "Ragnar", - "Xylar", - "Maggie", - "Jack", - "Katie", - "Noah", - "James", - "Rina", - "Ella", - "Mariah", - "Frank", - "Claudia", - "Niki", - "Vincent", - "Kendrick", - "Myrna", - "Tom", - "Wanda", - "Benjamin", - "Kiana", - "Rachel" - ] - } - }, - "required": ["type", "presetId"], - "additionalProperties": false - }, - { - "title": "AudioReferenceVoice", - "description": "Clone a voice from a reference audio clip, then speak promptText in that voice. Routes only to models that support voice cloning.", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "reference-audio" - }, - "audioUri": { - "description": "A 1-30 second clip to clone the voice from.", - "example": "https://example.com/audio.mp3", - "anyOf": [ - { - "description": "A HTTPS URL, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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": ["type", "audioUri"], - "additionalProperties": false - } - ], - "discriminator": { "propertyName": "type" } - }, - "referenceAudios": { - "description": "Optional reference audio clips guiding `audio` generation, for models that support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3 in order.", - "maxItems": 3, - "type": "array", - "items": { - "title": "AudioReferenceAudio", - "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, Runway upload URI, or base64 data URI (e.g. `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", - "example": "https://example.com/audio.mp3", - "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"], - "additionalProperties": false - } - }, - "duration": { - "description": "Desired output duration in seconds for `audio` generation. Models that cannot honor an explicit duration are excluded.", - "type": "number", - "minimum": 0.5, - "maximum": 30 - }, - "loop": { - "description": "When true, the `audio` output is designed to loop seamlessly. Models without loop support are excluded.", - "type": "boolean" - } - }, - "required": ["type", "promptText"], - "additionalProperties": false - } - }, - "required": ["configId", "input"], - "additionalProperties": false - } - } - } - }, + "/v1/organization/webapp/audit_logs": { + "get": { + "tags": ["Organization"], + "summary": "List linked workspace audit logs", + "description": "List audit log entries for the linked Runway workspaces you administer, newest first. Authorized via the account link between this API project and the workspace.", + "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." + }, + { + "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." + }, + { + "name": "organizationId", + "in": "query", + "required": false, + "schema": { + "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)$" + }, + "description": "Organization to report on. Optional when this API project is linked to a single organization; required when it is linked to more than one." + }, + { + "name": "workspaceIds", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Restrict results to these workspace IDs, as a comma-separated list of up to 50 IDs. Defaults to every workspace you administer in the organization." + }, + { + "name": "actions", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Restrict results to these audit log actions, as a comma-separated list of up to 50 actions. Allowed values: `UserLogin`, `PasswordChanged`, `EmailChangeRequested`, `EmailChanged`, `UserRegistered`, `UserAccountDeleted`, `WorkspaceCreated`, `WorkspaceDeleted`, `MemberInvited`, `MemberRemoved`, `MemberRoleChanged`, `InviteAccepted`, `TeamSettingsUpdated`, `InviteLinkToggled`, `UserGroupCreated`, `UserGroupDeleted`, `UserGroupMemberAdded`, `UserGroupMemberRemoved`, `SSOLogin`, `SSOUserProvisioned`, `SSOConfigCreated`, `SSOUserAutoAddedToTeam`, `SSODomainRegistrationCloned`, `AssetCreated`, `AssetUpdated`, `AssetDeleted`, `AssetDownloaded`, `AssetShared`, `AssetUnshared`, `PermissionGranted`, `PermissionUpdated`, `PermissionRevoked`, `PermissionAccepted`, `SubscriptionCancelled`, `SubscriptionPlanSwitched`, `CreditsTransferred`, `SeatsTransferred`, `SessionShared`, `SessionUnshared`, `VideoProjectShared`, `VideoProjectUnshared`, `BrandKitShared`, `BrandKitUnshared`, `AgentCustomSkillCreated`, `AgentCustomSkillDeleted`, `AgentCustomSkillShared`, `AgentCustomSkillUnshared`, `AgentSessionShared`, `AgentSessionUnshared`, `AgentConnectorLinkTokenCreated`, `AgentConnectorConnected`, `AgentConnectorDisconnected`, `AgentConnectorAssetExported`, `AgentConnectorSessionEnabled`, `AgentConnectorSessionDisabled`, `GenerationCreated`, `AccountLinkCreated`, `AccountLinkDeleted`, `OrganizationSettingsUpdated`, `OrganizationDisabledModelsUpdated`, `WorkspaceCountryLockUpdated`, `WorkspaceTagCreated`, `WorkspaceTagUpdated`, `WorkspaceTagDeleted`, `WorkspaceTagAssigned`, `WorkspaceTagUnassigned`, `MeteredBillingConfigUpdated`, `MeteredBillingRefillTriggered`, `MeteredBillingRetryTriggered`, `EnterpriseSpendCapEnforcementUpdated`." + }, + { + "name": "actorEmails", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Restrict results to entries performed by the users with these emails, as a comma-separated list of up to 50 emails." + }, + { + "name": "from", + "in": "query", + "required": false, + "schema": { + "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))$" + }, + "description": "Start of the time window (inclusive), ISO-8601 datetime." + }, + { + "name": "to", + "in": "query", + "required": false, + "schema": { + "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))$" + }, + "description": "End of the time window (exclusive), ISO-8601 datetime." + }, + { "$ref": "#/components/parameters/X-Runway-Version" } + ], "responses": { "200": { - "description": "The routing decision. Includes a task `id` for real requests; dry runs return the decision only.", + "description": "Success", "content": { "application/json": { "schema": { - "title": "RoutedAudioTaskCreated", "type": "object", "properties": { - "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" } - ] - } + "data": { + "description": "The list of items for the current page.", + "type": "array", + "items": { + "type": "object", + "properties": { + "eventId": { + "description": "Unique identifier of the entry.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" }, - "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": { - "type": { - "description": "The prompt mode the router routed for.", - "type": "string", - "enum": ["speech", "audio"] - }, - "voice": { - "description": "How the selected model resolves the voice: the requested preset or reference-audio clone, the model default for voiceless speech, or none for general audio.", - "type": "string", - "enum": [ - "preset", - "reference-audio", - "default", - "none" - ] - } + "timestamp": { + "description": "When the action occurred.", + "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": ["type", "voice"], - "additionalProperties": false - }, - "estimatedCost": { - "description": "Estimated cost, computed against current pricing.", - "type": "object", - "properties": { - "credits": { - "description": "Estimated cost of the generation in credits.", - "type": "number" - } + "action": { + "description": "The action performed.", + "type": "string", + "enum": [ + "UserLogin", + "PasswordChanged", + "EmailChangeRequested", + "EmailChanged", + "UserRegistered", + "UserAccountDeleted", + "WorkspaceCreated", + "WorkspaceDeleted", + "MemberInvited", + "MemberRemoved", + "MemberRoleChanged", + "InviteAccepted", + "TeamSettingsUpdated", + "InviteLinkToggled", + "UserGroupCreated", + "UserGroupDeleted", + "UserGroupMemberAdded", + "UserGroupMemberRemoved", + "SSOLogin", + "SSOUserProvisioned", + "SSOConfigCreated", + "SSOUserAutoAddedToTeam", + "SSODomainRegistrationCloned", + "AssetCreated", + "AssetUpdated", + "AssetDeleted", + "AssetDownloaded", + "AssetShared", + "AssetUnshared", + "PermissionGranted", + "PermissionUpdated", + "PermissionRevoked", + "PermissionAccepted", + "SubscriptionCancelled", + "SubscriptionPlanSwitched", + "CreditsTransferred", + "SeatsTransferred", + "SessionShared", + "SessionUnshared", + "VideoProjectShared", + "VideoProjectUnshared", + "BrandKitShared", + "BrandKitUnshared", + "AgentCustomSkillCreated", + "AgentCustomSkillDeleted", + "AgentCustomSkillShared", + "AgentCustomSkillUnshared", + "AgentSessionShared", + "AgentSessionUnshared", + "AgentConnectorLinkTokenCreated", + "AgentConnectorConnected", + "AgentConnectorDisconnected", + "AgentConnectorAssetExported", + "AgentConnectorSessionEnabled", + "AgentConnectorSessionDisabled", + "GenerationCreated", + "AccountLinkCreated", + "AccountLinkDeleted", + "OrganizationSettingsUpdated", + "OrganizationDisabledModelsUpdated", + "WorkspaceCountryLockUpdated", + "WorkspaceTagCreated", + "WorkspaceTagUpdated", + "WorkspaceTagDeleted", + "WorkspaceTagAssigned", + "WorkspaceTagUnassigned", + "MeteredBillingConfigUpdated", + "MeteredBillingRefillTriggered", + "MeteredBillingRetryTriggered", + "EnterpriseSpendCapEnforcementUpdated" + ] }, - "required": ["credits"], - "additionalProperties": false - } - }, - "required": [ - "model", - "provider", - "configId", - "resolvedSettings", - "resolvedInput", - "estimatedCost" - ], - "additionalProperties": false + "actorUsername": { + "description": "Username of the user who performed the action.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "actorEmail": { + "description": "Email of the user who performed the action.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "actorDeleted": { + "description": "Whether the acting user has since been deleted.", + "type": "boolean" + }, + "workspaceId": { + "description": "ID of the owning workspace.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "workspaceName": { + "description": "Name of the owning workspace.", + "type": "string" + } + }, + "required": [ + "eventId", + "timestamp", + "action", + "actorUsername", + "actorEmail", + "actorDeleted", + "workspaceId", + "workspaceName" + ], + "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" }] } }, - "required": ["id", "routing"], + "required": ["data", "hasMore", "nextCursor"], "additionalProperties": false } } } + } + } + } + }, + "/v1/organization/webapp/audit_logs/{eventId}": { + "get": { + "tags": ["Organization"], + "summary": "Get a linked workspace audit log entry", + "description": "Get a single audit log entry, including its metadata and forensic details, for a linked Runway workspace you administer. Authorized via the account link between this API project and the workspace.", + "parameters": [ + { + "name": "eventId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + }, + "description": "The `eventId` of an entry returned by the list endpoint." }, - "400": { - "description": "Error", + { + "name": "organizationId", + "in": "query", + "required": false, + "schema": { + "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)$" + }, + "description": "Organization to report on. Optional when this API project is linked to a single organization; required when it is linked to more than one." + }, + { "$ref": "#/components/parameters/X-Runway-Version" } + ], + "responses": { + "200": { + "description": "Success", "content": { "application/json": { "schema": { - "anyOf": [ - { - "description": "No model satisfies the config and request together. Returned identically for real and dry-run requests.", - "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 + "type": "object", + "properties": { + "eventId": { + "description": "Unique identifier of the entry.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" }, - { - "description": "The request was invalid - e.g. an input failed validation for the routed model.", + "timestamp": { + "description": "When the action occurred.", + "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))$" + }, + "action": { + "description": "The action performed.", + "type": "string", + "enum": [ + "UserLogin", + "PasswordChanged", + "EmailChangeRequested", + "EmailChanged", + "UserRegistered", + "UserAccountDeleted", + "WorkspaceCreated", + "WorkspaceDeleted", + "MemberInvited", + "MemberRemoved", + "MemberRoleChanged", + "InviteAccepted", + "TeamSettingsUpdated", + "InviteLinkToggled", + "UserGroupCreated", + "UserGroupDeleted", + "UserGroupMemberAdded", + "UserGroupMemberRemoved", + "SSOLogin", + "SSOUserProvisioned", + "SSOConfigCreated", + "SSOUserAutoAddedToTeam", + "SSODomainRegistrationCloned", + "AssetCreated", + "AssetUpdated", + "AssetDeleted", + "AssetDownloaded", + "AssetShared", + "AssetUnshared", + "PermissionGranted", + "PermissionUpdated", + "PermissionRevoked", + "PermissionAccepted", + "SubscriptionCancelled", + "SubscriptionPlanSwitched", + "CreditsTransferred", + "SeatsTransferred", + "SessionShared", + "SessionUnshared", + "VideoProjectShared", + "VideoProjectUnshared", + "BrandKitShared", + "BrandKitUnshared", + "AgentCustomSkillCreated", + "AgentCustomSkillDeleted", + "AgentCustomSkillShared", + "AgentCustomSkillUnshared", + "AgentSessionShared", + "AgentSessionUnshared", + "AgentConnectorLinkTokenCreated", + "AgentConnectorConnected", + "AgentConnectorDisconnected", + "AgentConnectorAssetExported", + "AgentConnectorSessionEnabled", + "AgentConnectorSessionDisabled", + "GenerationCreated", + "AccountLinkCreated", + "AccountLinkDeleted", + "OrganizationSettingsUpdated", + "OrganizationDisabledModelsUpdated", + "WorkspaceCountryLockUpdated", + "WorkspaceTagCreated", + "WorkspaceTagUpdated", + "WorkspaceTagDeleted", + "WorkspaceTagAssigned", + "WorkspaceTagUnassigned", + "MeteredBillingConfigUpdated", + "MeteredBillingRefillTriggered", + "MeteredBillingRetryTriggered", + "EnterpriseSpendCapEnforcementUpdated" + ] + }, + "actorUsername": { + "description": "Username of the user who performed the action.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "actorEmail": { + "description": "Email of the user who performed the action.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "actorDeleted": { + "description": "Whether the acting user has since been deleted.", + "type": "boolean" + }, + "workspaceId": { + "description": "ID of the owning workspace.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "workspaceName": { + "description": "Name of the owning workspace.", + "type": "string" + }, + "metadata": { + "description": "Action-specific details.", "type": "object", "properties": { - "error": { - "description": "A message describing why the request was rejected.", - "type": "string" - }, - "issues": { - "description": "Field-level validation issues, when available.", - "type": "array", - "items": { - "type": "object", - "properties": {}, - "additionalProperties": {} - } - } + "Workspace": {}, + "Invited member": {}, + "Removed member": {}, + "Target member": {}, + "Member email": {}, + "Previous role": {}, + "New role": {}, + "Role": {}, + "Login method": {}, + "Platform": {}, + "Application": {}, + "Plan": {}, + "Amount": {}, + "New User": {}, + "Group name": {}, + "Model": {}, + "Operation": {}, + "Asset name": {}, + "Tag name": {}, + "Tag color": {}, + "Workspace ID": {}, + "Workspace name": {}, + "Workspace picture": {}, + "Workspace description": {}, + "Default task name template": {}, + "Shared with workspace": {}, + "Shared with projects": {}, + "Hard spend cap": {}, + "Spend cap": {} }, - "required": ["error"], "additionalProperties": false + }, + "resourceType": { + "description": "Type of the affected resource, if any. Currently one of `account_link`, `agent_custom_skill`, `asset`, `brand_kit`, `generation`, `invite_link`, `membership`, `organization`, `permission`, `promotion`, `session`, `shared_asset`, `sso_config`, `sso_domain_registration`, `subscription`, `team_settings`, `user`, `user_group`, `video_project`, `workspace`, or `workspace_tag`. New types may be added over time, so treat this as an open set.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "resourceId": { + "description": "ID of the affected resource, if any.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "clientIpAddress": { + "description": "IP address of the client that performed the action.", + "type": "string" + }, + "userAgent": { + "description": "User-Agent header of the client request.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "requestId": { + "description": "Request ID for correlation with other logs.", + "anyOf": [{ "type": "string" }, { "type": "null" }] } - ] + }, + "required": [ + "eventId", + "timestamp", + "action", + "actorUsername", + "actorEmail", + "actorDeleted", + "workspaceId", + "workspaceName", + "metadata", + "resourceType", + "resourceId", + "clientIpAddress", + "userAgent", + "requestId" + ], + "additionalProperties": false } } } }, "404": { - "description": "The referenced router config does not exist or is not accessible to this account.", + "description": "The entry does not exist, or is not visible to your organization.", "content": { "application/json": { "schema": { "type": "object", - "properties": { - "error": { "type": "string" }, - "code": { - "type": "string", - "const": "router_config_not_found" - } - }, - "required": ["error", "code"], + "properties": { "error": { "type": "string" } }, + "required": ["error"], "additionalProperties": false } } @@ -13042,8 +16155,10 @@ "gwm1_avatar_async_text_to_video", "voice_processing", "seedance2", + "seedance2_5", "seedance2_fast", "seedance2_mini", + "hailuo3", "magnific_precision_upscaler_v2", "magnific_video_upscaler_creative", "kling2.5_turbo_pro", @@ -13140,8 +16255,10 @@ "gwm1_avatar_async_text_to_video", "voice_processing", "seedance2", + "seedance2_5", "seedance2_fast", "seedance2_mini", + "hailuo3", "magnific_precision_upscaler_v2", "magnific_video_upscaler_creative", "kling2.5_turbo_pro", @@ -13295,8 +16412,10 @@ "gwm1_avatar_async_text_to_video", "voice_processing", "seedance2", + "seedance2_5", "seedance2_fast", "seedance2_mini", + "hailuo3", "magnific_precision_upscaler_v2", "magnific_video_upscaler_creative", "kling2.5_turbo_pro", @@ -13371,8 +16490,10 @@ "gwm1_avatar_async_text_to_video", "voice_processing", "seedance2", + "seedance2_5", "seedance2_fast", "seedance2_mini", + "hailuo3", "magnific_precision_upscaler_v2", "magnific_video_upscaler_creative", "kling2.5_turbo_pro", @@ -13458,12 +16579,12 @@ { "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';\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: 'aleph2',\n videoUri: uploadUri,\n promptText: 'Add the easter elements to the cat video',\n keyframes: [\n {\n uri: 'https://example.com/easter-scene.jpg',\n at: 0,\n },\n ],\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)" + "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='aleph2',\n video_uri=upload_uri,\n prompt_text='Add the easter elements to the cat video',\n keyframes=[\n {\n 'uri': 'https://example.com/easter-scene.jpg',\n 'at': 0,\n },\n ],\n).wait_for_task_output()\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -13654,9 +16775,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -13785,9 +16969,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -13981,9 +17228,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -14099,9 +17409,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -14318,9 +17691,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -14570,9 +18006,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" } }, - "required": ["id"], + "required": ["error"], "additionalProperties": false } } @@ -14748,9 +18247,72 @@ "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})$" + }, + "estimatedCost": { + "description": "The maximum credits this task may charge. The final amount may be lower after the task completes.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false } }, - "required": ["id"], + "required": ["id", "estimatedCost"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "The request was rejected. Inspect `error` or `issues` (when present) and retry with a corrected request.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "description": "A message describing why the request was rejected.", + "type": "string" + }, + "issues": { + "description": "Field-level validation issues when the request failed Zod body/query validation. Omitted for other 400s.", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "description": "A machine-readable issue code from request validation.", + "type": "string" + }, + "path": { + "description": "The path to the invalid field in the request body or query.", + "type": "array", + "items": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + } + }, + "message": { + "description": "A human-readable description of the issue.", + "type": "string" + } + }, + "required": ["code", "path", "message"], + "additionalProperties": {} + } + }, + "docUrl": { + "description": "A link to the public API documentation.", + "type": "string" + } + }, + "required": ["error"], "additionalProperties": false } } @@ -14903,6 +18465,17 @@ "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", "enum": ["cost", "latency", "quality"] + }, + "fallback": { + "description": "Opt-in behavior for what routing should do when the preferred model cannot start immediately.", + "type": "object", + "properties": { + "onCapacity": { + "description": "When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual.", + "type": "boolean" + } + }, + "additionalProperties": false } }, "required": ["schemaVersion"], @@ -15039,6 +18612,17 @@ "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", "enum": ["cost", "latency", "quality"] + }, + "fallback": { + "description": "Opt-in behavior for what routing should do when the preferred model cannot start immediately.", + "type": "object", + "properties": { + "onCapacity": { + "description": "When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual.", + "type": "boolean" + } + }, + "additionalProperties": false } }, "additionalProperties": false @@ -15135,6 +18719,17 @@ "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", "enum": ["cost", "latency", "quality"] + }, + "fallback": { + "description": "Opt-in behavior for what routing should do when the preferred model cannot start immediately.", + "type": "object", + "properties": { + "onCapacity": { + "description": "When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual.", + "type": "boolean" + } + }, + "additionalProperties": false } }, "required": ["schemaVersion"], @@ -15276,6 +18871,17 @@ "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", "enum": ["cost", "latency", "quality"] + }, + "fallback": { + "description": "Opt-in behavior for what routing should do when the preferred model cannot start immediately.", + "type": "object", + "properties": { + "onCapacity": { + "description": "When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual.", + "type": "boolean" + } + }, + "additionalProperties": false } }, "required": ["schemaVersion"], @@ -15401,6 +19007,17 @@ "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", "enum": ["cost", "latency", "quality"] + }, + "fallback": { + "description": "Opt-in behavior for what routing should do when the preferred model cannot start immediately.", + "type": "object", + "properties": { + "onCapacity": { + "description": "When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual.", + "type": "boolean" + } + }, + "additionalProperties": false } }, "additionalProperties": false @@ -15496,6 +19113,17 @@ "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", "enum": ["cost", "latency", "quality"] + }, + "fallback": { + "description": "Opt-in behavior for what routing should do when the preferred model cannot start immediately.", + "type": "object", + "properties": { + "onCapacity": { + "description": "When true, if the account is at its concurrency limit on the preferred model, routing skips it and picks the next-best eligible model instead of queueing. If every eligible model is at its limit, the original best-ranked model is used and the task queues as usual.", + "type": "boolean" + } + }, + "additionalProperties": false } }, "required": ["schemaVersion"], @@ -15552,6 +19180,253 @@ "responses": { "204": { "description": "Success" } } } }, + "/v1/routers/{id}/requests": { + "get": { + "tags": ["Model Router"], + "summary": "List Model Router requests", + "description": "Paginated routing history for live Model Router requests (successful routes and failures). Playground dry runs are not recorded.", + "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)." + }, + { + "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." + }, + { + "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" } + ], + "responses": { + "200": { + "description": "Paginated routing history for a Model Router.", + "content": { + "application/json": { + "schema": { + "title": "ModelRouterRequestList", + "type": "object", + "properties": { + "data": { + "description": "The list of items for the current page.", + "type": "array", + "items": { + "title": "ModelRouterRequest", + "description": "A recorded Model Router routing decision.", + "type": "object", + "properties": { + "id": { + "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)$" + }, + "requestId": { "type": "string" }, + "status": { + "description": "How the routing attempt ended: routed (model selected), no_eligible_model (hard filters emptied the pool), router_config_not_found (same condition as the generate error of that name), invalid_request, or error.", + "type": "string", + "enum": [ + "routed", + "no_eligible_model", + "router_config_not_found", + "invalid_request", + "error" + ] + }, + "model": { + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "provider": { + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "reason": { + "description": "Free-text explanation of the pick. Written by the ranker, so treat it as prose for humans and group on reasonCode instead.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "reasonCode": { + "description": "Why the model won: lowest_cost, best_latency, best_quality, only_eligible_model, or filter_order_fallback (ranking was unavailable, so hard-filter order stood). Null when the request never reached ranking.", + "anyOf": [ + { + "type": "string", + "enum": [ + "lowest_cost", + "best_latency", + "best_quality", + "only_eligible_model", + "filter_order_fallback" + ] + }, + { "type": "null" } + ] + }, + "estimatedCredits": { + "anyOf": [{ "type": "number" }, { "type": "null" }] + }, + "taskId": { + "anyOf": [ + { + "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)$" + }, + { "type": "null" } + ] + }, + "createdAt": { + "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))$" + }, + "pipeline": { + "description": "Ordered routing story: hard-filter stages with surviving model ids, a capacity step when concurrency limits affected the pool, then rank step when selection reached ranking.", + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "filter" + }, + "filter": { + "description": "Hard-filter stage that ran: capability (modality/feature fit), prompt_length (prompt within model limits), input_support (requested inputs/assets), allow_deny (router model allowlist/denylist), or price (credit ceiling).", + "type": "string", + "enum": [ + "capability", + "prompt_length", + "input_support", + "allow_deny", + "price" + ] + }, + "models": { + "description": "Model IDs of the models that remained eligible after this filter stage.", + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["type", "filter", "models"], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "capacity" + }, + "skipped": { + "description": "Model IDs that were eligible but passed over because the account was at its concurrency limit for them.", + "type": "array", + "items": { "type": "string" } + }, + "allExhausted": { + "description": "True when every eligible model was at its limit, in which case none was skipped and the selected task queues.", + "type": "boolean" + } + }, + "required": [ + "type", + "skipped", + "allExhausted" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "rank" + }, + "outcome": { + "description": "How the router chose among eligible models: cost (sorted by estimated credits), selected (preference ranking chose a model), fallback (preference ranking failed so the eligible models were left in filter order), or single_candidate (only one model remained).", + "type": "string", + "enum": [ + "cost", + "selected", + "fallback", + "single_candidate" + ] + } + }, + "required": ["type", "outcome"], + "additionalProperties": false + } + ], + "discriminator": { "propertyName": "type" } + } + }, + "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": [ + "id", + "requestId", + "status", + "model", + "provider", + "reason", + "reasonCode", + "estimatedCredits", + "taskId", + "createdAt", + "pipeline", + "emptiedBy" + ], + "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" }] + } + }, + "required": ["data", "hasMore", "nextCursor"], + "additionalProperties": false + } + } + } + } + } + } + }, "/v1/voices": { "get": { "tags": ["Voices"],