diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Account.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Account.JsonSerializerContext.g.cs index f9388c0..51d4478 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Account.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Account.JsonSerializerContext.g.cs @@ -16,8 +16,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetAccountResponse200))] @@ -28,8 +28,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetTeamResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class AccountSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancement.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancement.JsonSerializerContext.g.cs deleted file mode 100644 index ae726c5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancement.JsonSerializerContext.g.cs +++ /dev/null @@ -1,203 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ListAudioEnhancementsRequestBadRequestError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestBadRequestError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestForbiddenError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GetAudioEnhancementRequestNotFoundError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class AudioEnhancementSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class AudioEnhancementSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static AudioEnhancementSourceGenerationContext Default { get; } = new(DefaultOptions); - - private AudioEnhancementSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new AudioEnhancementSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 175f876..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioEnhancementClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.Constructors.Bearer.g.cs deleted file mode 100644 index fe09905..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioEnhancementClient - { - /// - - public AudioEnhancementClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.CreateAudioEnhancement.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.CreateAudioEnhancement.g.cs deleted file mode 100644 index 71ebf38..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.CreateAudioEnhancement.g.cs +++ /dev/null @@ -1,1691 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AudioEnhancementClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateAudioEnhancementServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateAudioEnhancementSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateAudioEnhancementSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateAudioEnhancementSecurityRequirement0, - }; - partial void PrepareCreateAudioEnhancementArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateAudioEnhancementRequest request); - partial void PrepareCreateAudioEnhancementRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateAudioEnhancementRequest request); - partial void ProcessCreateAudioEnhancementResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateAudioEnhancementResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// 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 CreateAudioEnhancementAsync( - - global::ResembleAI.CreateAudioEnhancementRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateAudioEnhancementAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// 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> CreateAudioEnhancementAsResponseAsync( - - global::ResembleAI.CreateAudioEnhancementRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateAudioEnhancementArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateAudioEnhancementSecurityRequirements, - operationName: "CreateAudioEnhancementAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/audio_enhancements", - baseUri: ResolveBaseUri( - servers: s_CreateAudioEnhancementServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentAudioFile = new global::System.Net.Http.ByteArrayContent(request.AudioFile ?? global::System.Array.Empty()); - __contentAudioFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.AudioFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.AudioFilename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudioFile, - name: "\"audio_file\"", - fileName: request.AudioFilename != null ? $"\"{request.AudioFilename}\"" : string.Empty); - if (__contentAudioFile.Headers.ContentDisposition != null) - { - __contentAudioFile.Headers.ContentDisposition.FileNameStar = null; - } - - if (request.RemoveNoise != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.RemoveNoise, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"remove_noise\""); - - } - if (request.Normalize != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Normalize, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"normalize\""); - - } - if (request.StudioSound != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.StudioSound, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"studio_sound\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateAudioEnhancementRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateAudioEnhancementResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.CreateAudioEnhancementRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.CreateAudioEnhancementRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - // Forbidden - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::ResembleAI.CreateAudioEnhancementRequestForbiddenError.FromJson(__content_403, JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = global::ResembleAI.CreateAudioEnhancementRequestForbiddenError.FromJson(__content_403, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseObject: __value_403, - 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); - ProcessCreateAudioEnhancementResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// - /// 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 CreateAudioEnhancementAsync( - byte[] audioFile, - string audioFilename, - bool? removeNoise = default, - bool? normalize = default, - bool? studioSound = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateAudioEnhancementRequest - { - AudioFile = audioFile, - AudioFilename = audioFilename, - RemoveNoise = removeNoise, - Normalize = normalize, - StudioSound = studioSound, - }; - - return await CreateAudioEnhancementAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// - /// 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 CreateAudioEnhancementAsync( - global::System.IO.Stream audioFile, - string audioFilename, - bool? removeNoise = default, - bool? normalize = default, - bool? studioSound = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - audioFile = audioFile ?? throw new global::System.ArgumentNullException(nameof(audioFile)); - var request = new global::ResembleAI.CreateAudioEnhancementRequest - { - AudioFile = global::System.Array.Empty(), - AudioFilename = audioFilename, - RemoveNoise = removeNoise, - Normalize = normalize, - StudioSound = studioSound, - }; - PrepareArguments( - client: HttpClient); - PrepareCreateAudioEnhancementArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateAudioEnhancementSecurityRequirements, - operationName: "CreateAudioEnhancementAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/audio_enhancements", - baseUri: ResolveBaseUri( - servers: s_CreateAudioEnhancementServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentAudioFile = new global::System.Net.Http.StreamContent(audioFile); - __contentAudioFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.AudioFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.AudioFilename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudioFile, - name: "\"audio_file\"", - fileName: request.AudioFilename != null ? $"\"{request.AudioFilename}\"" : string.Empty); - if (__contentAudioFile.Headers.ContentDisposition != null) - { - __contentAudioFile.Headers.ContentDisposition.FileNameStar = null; - } - - if (request.RemoveNoise != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.RemoveNoise, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"remove_noise\""); - - } - if (request.Normalize != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Normalize, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"normalize\""); - - } - if (request.StudioSound != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.StudioSound, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"studio_sound\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateAudioEnhancementRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateAudioEnhancementResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.CreateAudioEnhancementRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.CreateAudioEnhancementRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - // Forbidden - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::ResembleAI.CreateAudioEnhancementRequestForbiddenError.FromJson(__content_403, JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = global::ResembleAI.CreateAudioEnhancementRequestForbiddenError.FromJson(__content_403, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseObject: __value_403, - 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); - ProcessCreateAudioEnhancementResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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); - - return - await global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// - /// 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> CreateAudioEnhancementAsResponseAsync( - global::System.IO.Stream audioFile, - string audioFilename, - bool? removeNoise = default, - bool? normalize = default, - bool? studioSound = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - audioFile = audioFile ?? throw new global::System.ArgumentNullException(nameof(audioFile)); - var request = new global::ResembleAI.CreateAudioEnhancementRequest - { - AudioFile = global::System.Array.Empty(), - AudioFilename = audioFilename, - RemoveNoise = removeNoise, - Normalize = normalize, - StudioSound = studioSound, - }; - PrepareArguments( - client: HttpClient); - PrepareCreateAudioEnhancementArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateAudioEnhancementSecurityRequirements, - operationName: "CreateAudioEnhancementAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/audio_enhancements", - baseUri: ResolveBaseUri( - servers: s_CreateAudioEnhancementServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentAudioFile = new global::System.Net.Http.StreamContent(audioFile); - __contentAudioFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.AudioFilename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.AudioFilename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudioFile, - name: "\"audio_file\"", - fileName: request.AudioFilename != null ? $"\"{request.AudioFilename}\"" : string.Empty); - if (__contentAudioFile.Headers.ContentDisposition != null) - { - __contentAudioFile.Headers.ContentDisposition.FileNameStar = null; - } - - if (request.RemoveNoise != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.RemoveNoise, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"remove_noise\""); - - } - if (request.Normalize != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Normalize, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"normalize\""); - - } - if (request.StudioSound != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.StudioSound, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"studio_sound\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateAudioEnhancementRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateAudioEnhancementResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateAudioEnhancement", - methodName: "CreateAudioEnhancementAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.CreateAudioEnhancementRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.CreateAudioEnhancementRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - // Forbidden - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::ResembleAI.CreateAudioEnhancementRequestForbiddenError.FromJson(__content_403, JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = global::ResembleAI.CreateAudioEnhancementRequestForbiddenError.FromJson(__content_403, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - responseBody: __content_403, - responseObject: __value_403, - 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); - ProcessCreateAudioEnhancementResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.GetAudioEnhancement.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.GetAudioEnhancement.g.cs deleted file mode 100644 index ebec9b0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.GetAudioEnhancement.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AudioEnhancementClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetAudioEnhancementServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetAudioEnhancementSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetAudioEnhancementSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetAudioEnhancementSecurityRequirement0, - }; - partial void PrepareGetAudioEnhancementArguments( - global::System.Net.Http.HttpClient httpClient, - ref string enhancementUuid); - partial void PrepareGetAudioEnhancementRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string enhancementUuid); - partial void ProcessGetAudioEnhancementResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetAudioEnhancementResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get audio enhancement
- /// Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete. - ///
- /// - /// 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 GetAudioEnhancementAsync( - string enhancementUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetAudioEnhancementAsResponseAsync( - enhancementUuid: enhancementUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get audio enhancement
- /// Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete. - ///
- /// - /// 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> GetAudioEnhancementAsResponseAsync( - string enhancementUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetAudioEnhancementArguments( - httpClient: HttpClient, - enhancementUuid: ref enhancementUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetAudioEnhancementSecurityRequirements, - operationName: "GetAudioEnhancementAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/audio_enhancements/{enhancementUuid}", - baseUri: ResolveBaseUri( - servers: s_GetAudioEnhancementServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetAudioEnhancementRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - enhancementUuid: enhancementUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAudioEnhancement", - methodName: "GetAudioEnhancementAsync", - pathTemplate: "$\"/audio_enhancements/{enhancementUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAudioEnhancement", - methodName: "GetAudioEnhancementAsync", - pathTemplate: "$\"/audio_enhancements/{enhancementUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAudioEnhancement", - methodName: "GetAudioEnhancementAsync", - pathTemplate: "$\"/audio_enhancements/{enhancementUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetAudioEnhancementResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAudioEnhancement", - methodName: "GetAudioEnhancementAsync", - pathTemplate: "$\"/audio_enhancements/{enhancementUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetAudioEnhancement", - methodName: "GetAudioEnhancementAsync", - pathTemplate: "$\"/audio_enhancements/{enhancementUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::ResembleAI.GetAudioEnhancementRequestNotFoundError? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::ResembleAI.GetAudioEnhancementRequestNotFoundError.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::ResembleAI.GetAudioEnhancementRequestNotFoundError.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::ResembleAI.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); - ProcessGetAudioEnhancementResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.ListAudioEnhancements.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.ListAudioEnhancements.g.cs deleted file mode 100644 index 9ccc6ad..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.ListAudioEnhancements.g.cs +++ /dev/null @@ -1,490 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class AudioEnhancementClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListAudioEnhancementsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListAudioEnhancementsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListAudioEnhancementsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListAudioEnhancementsSecurityRequirement0, - }; - partial void PrepareListAudioEnhancementsArguments( - global::System.Net.Http.HttpClient httpClient, - ref int page, - ref int? pageSize); - partial void PrepareListAudioEnhancementsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int page, - int? pageSize); - partial void ProcessListAudioEnhancementsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListAudioEnhancementsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List audio enhancements
- /// Returns a paginated list of all audio enhancements for your team, ordered by most recent first. - ///
- /// - /// - /// Default Value: 10 - /// - /// 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 ListAudioEnhancementsAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListAudioEnhancementsAsResponseAsync( - page: page, - pageSize: pageSize, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List audio enhancements
- /// Returns a paginated list of all audio enhancements for your team, ordered by most recent first. - ///
- /// - /// - /// Default Value: 10 - /// - /// 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> ListAudioEnhancementsAsResponseAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListAudioEnhancementsArguments( - httpClient: HttpClient, - page: ref page, - pageSize: ref pageSize); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListAudioEnhancementsSecurityRequirements, - operationName: "ListAudioEnhancementsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/audio_enhancements", - baseUri: ResolveBaseUri( - servers: s_ListAudioEnhancementsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("page_size", pageSize?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListAudioEnhancementsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - page: page, - pageSize: pageSize); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAudioEnhancements", - methodName: "ListAudioEnhancementsAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAudioEnhancements", - methodName: "ListAudioEnhancementsAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAudioEnhancements", - methodName: "ListAudioEnhancementsAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListAudioEnhancementsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAudioEnhancements", - methodName: "ListAudioEnhancementsAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListAudioEnhancements", - methodName: "ListAudioEnhancementsAsync", - pathTemplate: "\"/audio_enhancements\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.ListAudioEnhancementsRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.ListAudioEnhancementsRequestBadRequestError.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - - 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); - ProcessListAudioEnhancementsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.g.cs deleted file mode 100644 index 1574d14..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioEnhancementClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class AudioEnhancementClient : global::ResembleAI.IAudioEnhancementClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.AudioEnhancementSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the AudioEnhancementClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AudioEnhancementClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AudioEnhancementClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AudioEnhancementClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the AudioEnhancementClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public AudioEnhancementClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.AudioSourceTracing.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.AudioSourceTracing.JsonSerializerContext.g.cs index b187a57..0b61715 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.AudioSourceTracing.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.AudioSourceTracing.JsonSerializerContext.g.cs @@ -16,8 +16,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults))] @@ -28,8 +28,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioSourceTracingGetAudioSourceTracingResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.BillingPlans.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.BillingPlans.JsonSerializerContext.g.cs index 85e5586..f79d885 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.BillingPlans.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.BillingPlans.JsonSerializerContext.g.cs @@ -17,8 +17,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanPlanType), TypeInfoPropertyName = "BillingPlanPlanType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanBillingInterval), TypeInfoPropertyName = "BillingPlanBillingInterval2")] @@ -36,8 +36,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanPlanType?), TypeInfoPropertyName = "NullableBillingPlanPlanType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanBillingInterval?), TypeInfoPropertyName = "NullableBillingPlanBillingInterval2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.BillingSubscriptions.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.BillingSubscriptions.JsonSerializerContext.g.cs index 11b98e6..d084f6c 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.BillingSubscriptions.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.BillingSubscriptions.JsonSerializerContext.g.cs @@ -18,8 +18,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanPlanType), TypeInfoPropertyName = "BillingPlanPlanType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanBillingInterval), TypeInfoPropertyName = "BillingPlanBillingInterval2")] @@ -54,8 +54,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ChangeBillingPlanRequestUnprocessableEntityError), TypeInfoPropertyName = "ChangeBillingPlanRequestUnprocessableEntityError2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanPlanType?), TypeInfoPropertyName = "NullableBillingPlanPlanType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanBillingInterval?), TypeInfoPropertyName = "NullableBillingPlanBillingInterval2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.BillingWallet.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.BillingWallet.JsonSerializerContext.g.cs index 1b24e8e..c48ea0c 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.BillingWallet.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.BillingWallet.JsonSerializerContext.g.cs @@ -18,8 +18,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingError))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingForbiddenError))] @@ -38,8 +38,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError), TypeInfoPropertyName = "UpdateBillingAutoReloadRequestUnprocessableEntityError2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingWalletTransactionTransactionType?), TypeInfoPropertyName = "NullableBillingWalletTransactionTransactionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError?), TypeInfoPropertyName = "NullableUpdateBillingAutoReloadRequestUnprocessableEntityError2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Clips.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Clips.JsonSerializerContext.g.cs deleted file mode 100644 index 62cfa69..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Clips.JsonSerializerContext.g.cs +++ /dev/null @@ -1,138 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsListClipsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsGetClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsDeleteClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsUpdateClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateClipRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class ClipsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class ClipsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static ClipsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private ClipsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new ClipsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index c09f7a3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ClipsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.Constructors.Bearer.g.cs deleted file mode 100644 index f8f2e11..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ClipsClient - { - /// - - public ClipsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.DeleteClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.DeleteClip.g.cs deleted file mode 100644 index 5f2a1a4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.DeleteClip.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ClipsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteClipServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteClipSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteClipSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteClipSecurityRequirement0, - }; - partial void PrepareDeleteClipArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid, - ref string clipUuid); - partial void PrepareDeleteClipRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid, - string clipUuid); - partial void ProcessDeleteClipResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteClipResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete clip
- /// Delete a clip - ///
- /// - /// - /// 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 DeleteClipAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteClipAsResponseAsync( - projectUuid: projectUuid, - clipUuid: clipUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete clip
- /// Delete a clip - ///
- /// - /// - /// 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> DeleteClipAsResponseAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteClipArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid, - clipUuid: ref clipUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteClipSecurityRequirements, - operationName: "DeleteClipAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}/clips/{clipUuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteClipServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteClipRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid, - clipUuid: clipUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteClip", - methodName: "DeleteClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteClip", - methodName: "DeleteClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteClip", - methodName: "DeleteClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteClipResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteClip", - methodName: "DeleteClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteClip", - methodName: "DeleteClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteClipResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ClipsDeleteClipResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ClipsDeleteClipResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.ClipsClient.GetClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.GetClip.g.cs deleted file mode 100644 index 21be608..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.GetClip.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ClipsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetClipServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetClipSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetClipSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetClipSecurityRequirement0, - }; - partial void PrepareGetClipArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid, - ref string clipUuid); - partial void PrepareGetClipRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid, - string clipUuid); - partial void ProcessGetClipResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetClipResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get clip
- /// Get clip details - ///
- /// - /// - /// 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 GetClipAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetClipAsResponseAsync( - projectUuid: projectUuid, - clipUuid: clipUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get clip
- /// Get clip details - ///
- /// - /// - /// 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> GetClipAsResponseAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetClipArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid, - clipUuid: ref clipUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetClipSecurityRequirements, - operationName: "GetClipAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}/clips/{clipUuid}", - baseUri: ResolveBaseUri( - servers: s_GetClipServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetClipRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid, - clipUuid: clipUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetClip", - methodName: "GetClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetClip", - methodName: "GetClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetClip", - methodName: "GetClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetClipResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetClip", - methodName: "GetClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetClip", - methodName: "GetClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetClipResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ClipsGetClipResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ClipsGetClipResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.ClipsClient.ListClips.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.ListClips.g.cs deleted file mode 100644 index 47ecee3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.ListClips.g.cs +++ /dev/null @@ -1,466 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ClipsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListClipsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListClipsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListClipsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListClipsSecurityRequirement0, - }; - partial void PrepareListClipsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid, - ref int page, - ref int? pageSize); - partial void PrepareListClipsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid, - int page, - int? pageSize); - partial void ProcessListClipsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListClipsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List clips
- /// List clips in a project - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListClipsAsync( - string projectUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListClipsAsResponseAsync( - projectUuid: projectUuid, - page: page, - pageSize: pageSize, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List clips
- /// List clips in a project - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListClipsAsResponseAsync( - string projectUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListClipsArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid, - page: ref page, - pageSize: ref pageSize); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListClipsSecurityRequirements, - operationName: "ListClipsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}/clips", - baseUri: ResolveBaseUri( - servers: s_ListClipsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("page_size", pageSize?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListClipsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid, - page: page, - pageSize: pageSize); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListClips", - methodName: "ListClipsAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListClips", - methodName: "ListClipsAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListClips", - methodName: "ListClipsAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListClipsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListClips", - methodName: "ListClipsAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListClips", - methodName: "ListClipsAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListClipsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ClipsListClipsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ClipsListClipsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.ClipsClient.UpdateClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.UpdateClip.g.cs deleted file mode 100644 index 1c87f8d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.UpdateClip.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ClipsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateClipServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateClipSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateClipSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateClipSecurityRequirement0, - }; - partial void PrepareUpdateClipArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid, - ref string clipUuid, - global::ResembleAI.UpdateClipRequest request); - partial void PrepareUpdateClipRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid, - string clipUuid, - global::ResembleAI.UpdateClipRequest request); - partial void ProcessUpdateClipResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateClipResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update clip
- /// Update a clip - ///
- /// - /// - /// - /// 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 UpdateClipAsync( - string projectUuid, - string clipUuid, - - global::ResembleAI.UpdateClipRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateClipAsResponseAsync( - projectUuid: projectUuid, - clipUuid: clipUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update clip
- /// Update a clip - ///
- /// - /// - /// - /// 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> UpdateClipAsResponseAsync( - string projectUuid, - string clipUuid, - - global::ResembleAI.UpdateClipRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateClipArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid, - clipUuid: ref clipUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateClipSecurityRequirements, - operationName: "UpdateClipAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}/clips/{clipUuid}", - baseUri: ResolveBaseUri( - servers: s_UpdateClipServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateClipRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid, - clipUuid: clipUuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateClip", - methodName: "UpdateClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateClip", - methodName: "UpdateClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateClip", - methodName: "UpdateClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessUpdateClipResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateClip", - methodName: "UpdateClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateClip", - methodName: "UpdateClipAsync", - pathTemplate: "$\"/projects/{projectUuid}/clips/{clipUuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessUpdateClipResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ClipsUpdateClipResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ClipsUpdateClipResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update clip
- /// Update a clip - ///
- /// - /// - /// - /// - /// - /// 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 UpdateClipAsync( - string projectUuid, - string clipUuid, - string? title = default, - string? body = default, - bool? isArchived = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateClipRequest - { - Title = title, - Body = body, - IsArchived = isArchived, - }; - - return await UpdateClipAsync( - projectUuid: projectUuid, - clipUuid: clipUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.g.cs deleted file mode 100644 index d5d63b4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ClipsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class ClipsClient : global::ResembleAI.IClipsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.ClipsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the ClipsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public ClipsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the ClipsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public ClipsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the ClipsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public ClipsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciations.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciations.JsonSerializerContext.g.cs deleted file mode 100644 index ebf68bf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciations.JsonSerializerContext.g.cs +++ /dev/null @@ -1,200 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsGetParametersStatus), TypeInfoPropertyName = "PronunciationsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationStatus), TypeInfoPropertyName = "CustomPronunciationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsListPronunciationsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsGetPronunciationResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreatePronunciationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BulkCreatePronunciationsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdatePronunciationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsGetParametersStatus?), TypeInfoPropertyName = "NullablePronunciationsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationStatus?), TypeInfoPropertyName = "NullableCustomPronunciationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [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 CustomPronunciationsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class CustomPronunciationsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static CustomPronunciationsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private CustomPronunciationsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus) - - || typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus?) - - || typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus) - - || typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus)) - { - return new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus?)) - { - return new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus)) - { - return new global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus?)) - { - return new global::ResembleAI.JsonConverters.CustomPronunciationStatusNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new CustomPronunciationsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index e432c8b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.BulkCreatePronunciations.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.BulkCreatePronunciations.g.cs deleted file mode 100644 index f10dd0a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.BulkCreatePronunciations.g.cs +++ /dev/null @@ -1,1340 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class CustomPronunciationsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_BulkCreatePronunciationsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_BulkCreatePronunciationsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_BulkCreatePronunciationsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_BulkCreatePronunciationsSecurityRequirement0, - }; - partial void PrepareBulkCreatePronunciationsArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.BulkCreatePronunciationsRequest request); - partial void PrepareBulkCreatePronunciationsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.BulkCreatePronunciationsRequest request); - partial void ProcessBulkCreatePronunciationsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessBulkCreatePronunciationsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// 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 BulkCreatePronunciationsAsync( - - global::ResembleAI.BulkCreatePronunciationsRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await BulkCreatePronunciationsAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// 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> BulkCreatePronunciationsAsResponseAsync( - - global::ResembleAI.BulkCreatePronunciationsRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareBulkCreatePronunciationsArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_BulkCreatePronunciationsSecurityRequirements, - operationName: "BulkCreatePronunciationsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations/bulk", - baseUri: ResolveBaseUri( - servers: s_BulkCreatePronunciationsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentZip = new global::System.Net.Http.ByteArrayContent(request.Zip ?? global::System.Array.Empty()); - __contentZip.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Zipname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Zipname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentZip, - name: "\"zip\"", - fileName: request.Zipname != null ? $"\"{request.Zipname}\"" : string.Empty); - if (__contentZip.Headers.ContentDisposition != null) - { - __contentZip.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareBulkCreatePronunciationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessBulkCreatePronunciationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessBulkCreatePronunciationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// 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 BulkCreatePronunciationsAsync( - byte[] zip, - string zipname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.BulkCreatePronunciationsRequest - { - Zip = zip, - Zipname = zipname, - }; - - return await BulkCreatePronunciationsAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// 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 BulkCreatePronunciationsAsync( - global::System.IO.Stream zip, - string zipname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - zip = zip ?? throw new global::System.ArgumentNullException(nameof(zip)); - var request = new global::ResembleAI.BulkCreatePronunciationsRequest - { - Zip = global::System.Array.Empty(), - Zipname = zipname, - }; - PrepareArguments( - client: HttpClient); - PrepareBulkCreatePronunciationsArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_BulkCreatePronunciationsSecurityRequirements, - operationName: "BulkCreatePronunciationsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations/bulk", - baseUri: ResolveBaseUri( - servers: s_BulkCreatePronunciationsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentZip = new global::System.Net.Http.StreamContent(zip); - __contentZip.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Zipname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Zipname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentZip, - name: "\"zip\"", - fileName: request.Zipname != null ? $"\"{request.Zipname}\"" : string.Empty); - if (__contentZip.Headers.ContentDisposition != null) - { - __contentZip.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareBulkCreatePronunciationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessBulkCreatePronunciationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessBulkCreatePronunciationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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); - - return - await global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::ResembleAI.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(); - } - } - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// 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> BulkCreatePronunciationsAsResponseAsync( - global::System.IO.Stream zip, - string zipname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - zip = zip ?? throw new global::System.ArgumentNullException(nameof(zip)); - var request = new global::ResembleAI.BulkCreatePronunciationsRequest - { - Zip = global::System.Array.Empty(), - Zipname = zipname, - }; - PrepareArguments( - client: HttpClient); - PrepareBulkCreatePronunciationsArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_BulkCreatePronunciationsSecurityRequirements, - operationName: "BulkCreatePronunciationsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations/bulk", - baseUri: ResolveBaseUri( - servers: s_BulkCreatePronunciationsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentZip = new global::System.Net.Http.StreamContent(zip); - __contentZip.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Zipname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Zipname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentZip, - name: "\"zip\"", - fileName: request.Zipname != null ? $"\"{request.Zipname}\"" : string.Empty); - if (__contentZip.Headers.ContentDisposition != null) - { - __contentZip.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareBulkCreatePronunciationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessBulkCreatePronunciationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BulkCreatePronunciations", - methodName: "BulkCreatePronunciationsAsync", - pathTemplate: "\"/pronunciations/bulk\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessBulkCreatePronunciationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.Constructors.Bearer.g.cs deleted file mode 100644 index 9e08782..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsClient - { - /// - - public CustomPronunciationsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.CreatePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.CreatePronunciation.g.cs deleted file mode 100644 index b2f1e6b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.CreatePronunciation.g.cs +++ /dev/null @@ -1,1478 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class CustomPronunciationsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreatePronunciationServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreatePronunciationSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreatePronunciationSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreatePronunciationSecurityRequirement0, - }; - partial void PrepareCreatePronunciationArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreatePronunciationRequest request); - partial void PrepareCreatePronunciationRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreatePronunciationRequest request); - partial void ProcessCreatePronunciationResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreatePronunciationResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// 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 CreatePronunciationAsync( - - global::ResembleAI.CreatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreatePronunciationAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// 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> CreatePronunciationAsResponseAsync( - - global::ResembleAI.CreatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreatePronunciationArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreatePronunciationSecurityRequirements, - operationName: "CreatePronunciationAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations", - baseUri: ResolveBaseUri( - servers: s_CreatePronunciationServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Word ?? string.Empty), - name: "\"word\""); - - var __contentAudio = new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()); - __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Audioname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Audioname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudio, - name: "\"audio\"", - fileName: request.Audioname != null ? $"\"{request.Audioname}\"" : string.Empty); - if (__contentAudio.Headers.ContentDisposition != null) - { - __contentAudio.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreatePronunciationRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreatePronunciationResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Validation error (e.g., duplicate word) - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::ResembleAI.Error? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, - 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); - ProcessCreatePronunciationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsCreatePronunciationResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// 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 CreatePronunciationAsync( - string word, - byte[] audio, - string audioname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreatePronunciationRequest - { - Word = word, - Audio = audio, - Audioname = audioname, - }; - - return await CreatePronunciationAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// 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 CreatePronunciationAsync( - string word, - global::System.IO.Stream audio, - string audioname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::ResembleAI.CreatePronunciationRequest - { - Word = word, - Audio = global::System.Array.Empty(), - Audioname = audioname, - }; - PrepareArguments( - client: HttpClient); - PrepareCreatePronunciationArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreatePronunciationSecurityRequirements, - operationName: "CreatePronunciationAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations", - baseUri: ResolveBaseUri( - servers: s_CreatePronunciationServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Word ?? string.Empty), - name: "\"word\""); - - var __contentAudio = new global::System.Net.Http.StreamContent(audio); - __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Audioname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Audioname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudio, - name: "\"audio\"", - fileName: request.Audioname != null ? $"\"{request.Audioname}\"" : string.Empty); - if (__contentAudio.Headers.ContentDisposition != null) - { - __contentAudio.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreatePronunciationRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreatePronunciationResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Validation error (e.g., duplicate word) - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::ResembleAI.Error? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, - 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); - ProcessCreatePronunciationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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); - - return - await global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// 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> CreatePronunciationAsResponseAsync( - string word, - global::System.IO.Stream audio, - string audioname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::ResembleAI.CreatePronunciationRequest - { - Word = word, - Audio = global::System.Array.Empty(), - Audioname = audioname, - }; - PrepareArguments( - client: HttpClient); - PrepareCreatePronunciationArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreatePronunciationSecurityRequirements, - operationName: "CreatePronunciationAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations", - baseUri: ResolveBaseUri( - servers: s_CreatePronunciationServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Word ?? string.Empty), - name: "\"word\""); - - var __contentAudio = new global::System.Net.Http.StreamContent(audio); - __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Audioname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Audioname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudio, - name: "\"audio\"", - fileName: request.Audioname != null ? $"\"{request.Audioname}\"" : string.Empty); - if (__contentAudio.Headers.ContentDisposition != null) - { - __contentAudio.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreatePronunciationRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreatePronunciationResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreatePronunciation", - methodName: "CreatePronunciationAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Validation error (e.g., duplicate word) - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::ResembleAI.Error? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - responseBody: __content_422, - responseObject: __value_422, - 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); - ProcessCreatePronunciationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsCreatePronunciationResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.DeletePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.DeletePronunciation.g.cs deleted file mode 100644 index dca1d6a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.DeletePronunciation.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class CustomPronunciationsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeletePronunciationServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeletePronunciationSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeletePronunciationSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeletePronunciationSecurityRequirement0, - }; - partial void PrepareDeletePronunciationArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareDeletePronunciationRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessDeletePronunciationResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeletePronunciationResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete custom pronunciation
- /// Permanently remove a custom pronunciation. Takes effect immediately. - ///
- /// - /// 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 DeletePronunciationAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeletePronunciationAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete custom pronunciation
- /// Permanently remove a custom pronunciation. Takes effect immediately. - ///
- /// - /// 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> DeletePronunciationAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeletePronunciationArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeletePronunciationSecurityRequirements, - operationName: "DeletePronunciationAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/pronunciations/{uuid}", - baseUri: ResolveBaseUri( - servers: s_DeletePronunciationServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeletePronunciationRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePronunciation", - methodName: "DeletePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePronunciation", - methodName: "DeletePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePronunciation", - methodName: "DeletePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeletePronunciationResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePronunciation", - methodName: "DeletePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeletePronunciation", - methodName: "DeletePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeletePronunciationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsDeletePronunciationResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.GetPronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.GetPronunciation.g.cs deleted file mode 100644 index 111a8e2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.GetPronunciation.g.cs +++ /dev/null @@ -1,473 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class CustomPronunciationsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetPronunciationServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetPronunciationSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetPronunciationSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetPronunciationSecurityRequirement0, - }; - partial void PrepareGetPronunciationArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareGetPronunciationRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessGetPronunciationResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetPronunciationResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get custom pronunciation
- /// Retrieve a single custom pronunciation by UUID - ///
- /// - /// 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 GetPronunciationAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetPronunciationAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get custom pronunciation
- /// Retrieve a single custom pronunciation by UUID - ///
- /// - /// 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> GetPronunciationAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetPronunciationArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetPronunciationSecurityRequirements, - operationName: "GetPronunciationAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/pronunciations/{uuid}", - baseUri: ResolveBaseUri( - servers: s_GetPronunciationServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetPronunciationRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPronunciation", - methodName: "GetPronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPronunciation", - methodName: "GetPronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPronunciation", - methodName: "GetPronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetPronunciationResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPronunciation", - methodName: "GetPronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetPronunciation", - methodName: "GetPronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Not found - if ((int)__response.StatusCode == 404) - { - string? __content_404 = null; - global::System.Exception? __exception_404 = null; - global::ResembleAI.Error? __value_404 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); - } - else - { - __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_404 = global::ResembleAI.Error.FromJson(__content_404, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_404 = __ex; - } - - - throw global::ResembleAI.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); - ProcessGetPronunciationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsGetPronunciationResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsGetPronunciationResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.ListPronunciations.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.ListPronunciations.g.cs deleted file mode 100644 index d721bfa..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.ListPronunciations.g.cs +++ /dev/null @@ -1,469 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class CustomPronunciationsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListPronunciationsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListPronunciationsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListPronunciationsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListPronunciationsSecurityRequirement0, - }; - partial void PrepareListPronunciationsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string? language, - ref string? domain, - ref global::ResembleAI.PronunciationsGetParametersStatus? status, - ref bool? active); - partial void PrepareListPronunciationsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string? language, - string? domain, - global::ResembleAI.PronunciationsGetParametersStatus? status, - bool? active); - partial void ProcessListPronunciationsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListPronunciationsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List custom pronunciations
- /// Retrieve all custom pronunciations for your team, with optional filters. - ///
- /// - /// - /// - /// - /// 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 ListPronunciationsAsync( - string? language = default, - string? domain = default, - global::ResembleAI.PronunciationsGetParametersStatus? status = default, - bool? active = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListPronunciationsAsResponseAsync( - language: language, - domain: domain, - status: status, - active: active, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List custom pronunciations
- /// Retrieve all custom pronunciations for your team, with optional filters. - ///
- /// - /// - /// - /// - /// 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> ListPronunciationsAsResponseAsync( - string? language = default, - string? domain = default, - global::ResembleAI.PronunciationsGetParametersStatus? status = default, - bool? active = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListPronunciationsArguments( - httpClient: HttpClient, - language: ref language, - domain: ref domain, - status: ref status, - active: ref active); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListPronunciationsSecurityRequirements, - operationName: "ListPronunciationsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/pronunciations", - baseUri: ResolveBaseUri( - servers: s_ListPronunciationsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddOptionalParameter("language", language) - .AddOptionalParameter("domain", domain) - .AddOptionalParameter("status", status?.ToValueString()) - .AddOptionalParameter("active", active?.ToString().ToLowerInvariant()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListPronunciationsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - language: language, - domain: domain, - status: status, - active: active); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPronunciations", - methodName: "ListPronunciationsAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPronunciations", - methodName: "ListPronunciationsAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPronunciations", - methodName: "ListPronunciationsAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListPronunciationsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPronunciations", - methodName: "ListPronunciationsAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListPronunciations", - methodName: "ListPronunciationsAsync", - pathTemplate: "\"/pronunciations\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListPronunciationsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsListPronunciationsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsListPronunciationsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.UpdatePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.UpdatePronunciation.g.cs deleted file mode 100644 index 124838d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.UpdatePronunciation.g.cs +++ /dev/null @@ -1,484 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class CustomPronunciationsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdatePronunciationServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdatePronunciationSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdatePronunciationSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdatePronunciationSecurityRequirement0, - }; - partial void PrepareUpdatePronunciationArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - global::ResembleAI.UpdatePronunciationRequest request); - partial void PrepareUpdatePronunciationRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - global::ResembleAI.UpdatePronunciationRequest request); - partial void ProcessUpdatePronunciationResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdatePronunciationResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Toggle pronunciation active status
- /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis. - ///
- /// - /// - /// 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 UpdatePronunciationAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdatePronunciationAsResponseAsync( - uuid: uuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Toggle pronunciation active status
- /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis. - ///
- /// - /// - /// 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> UpdatePronunciationAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdatePronunciationArguments( - httpClient: HttpClient, - uuid: ref uuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdatePronunciationSecurityRequirements, - operationName: "UpdatePronunciationAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/pronunciations/{uuid}", - baseUri: ResolveBaseUri( - servers: s_UpdatePronunciationServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdatePronunciationRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdatePronunciation", - methodName: "UpdatePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdatePronunciation", - methodName: "UpdatePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdatePronunciation", - methodName: "UpdatePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessUpdatePronunciationResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdatePronunciation", - methodName: "UpdatePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdatePronunciation", - methodName: "UpdatePronunciationAsync", - pathTemplate: "$\"/pronunciations/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessUpdatePronunciationResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Toggle pronunciation active status
- /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis. - ///
- /// - /// - /// Set to false to disable, true to re-enable - /// - /// 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 UpdatePronunciationAsync( - global::System.Guid uuid, - bool active, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdatePronunciationRequest - { - Active = active, - }; - - return await UpdatePronunciationAsync( - uuid: uuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.g.cs deleted file mode 100644 index b32ef28..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.CustomPronunciationsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class CustomPronunciationsClient : global::ResembleAI.ICustomPronunciationsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.CustomPronunciationsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the CustomPronunciationsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public CustomPronunciationsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the CustomPronunciationsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public CustomPronunciationsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the CustomPronunciationsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public CustomPronunciationsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DeepfakeDetection.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DeepfakeDetection.JsonSerializerContext.g.cs index a7d9a23..8bb5a1e 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.DeepfakeDetection.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DeepfakeDetection.JsonSerializerContext.g.cs @@ -46,8 +46,13 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectImageMetricsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectImageMetrics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoAttackTypeItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -61,7 +66,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionListDetectionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality), TypeInfoPropertyName = "DetectPostRequestBodyContentMultipartFormDataSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "DetectPostResponsesContentApplicationJsonSchemaItemStatus2")] @@ -112,8 +116,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType), TypeInfoPropertyName = "DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionCreateDetectFeedbackResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionDeleteDetectFeedbackResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectBatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectFeedbackRequest))] @@ -133,9 +137,9 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectWatermarkAnalysisMetrics?), TypeInfoPropertyName = "NullableDetectWatermarkAnalysisMetrics2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectC2PaManifestValidationState?), TypeInfoPropertyName = "NullableDetectC2PaManifestValidationState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemModality2")] @@ -163,6 +167,8 @@ namespace ResembleAI [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))] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DetectAgents.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgents.JsonSerializerContext.g.cs index c9b7a8d..dc330f8 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.DetectAgents.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.DetectAgents.JsonSerializerContext.g.cs @@ -18,8 +18,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentTier), TypeInfoPropertyName = "DetectAgentTier2")] @@ -43,8 +43,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RunDetectAgentInvestigationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentTier?), TypeInfoPropertyName = "NullableDetectAgentTier2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunSummaryStatus?), TypeInfoPropertyName = "NullableDetectAgentRunSummaryStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Duets.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Duets.JsonSerializerContext.g.cs deleted file mode 100644 index 5fdab8f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Duets.JsonSerializerContext.g.cs +++ /dev/null @@ -1,184 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsListDuetVoicesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsCreateDuetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsUpdateDuetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsDeleteDuetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsListDuetVoicePairsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsCreateDuetVoicePairResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker), TypeInfoPropertyName = "DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsGenerateDuetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDuetVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateDuetVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDuetVoicePairRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GenerateDuetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?), TypeInfoPropertyName = "NullableDuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker2")] - [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 DuetsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class DuetsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static DuetsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private DuetsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker) - - || typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker)) - { - return new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?)) - { - return new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new DuetsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 6764355..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.Constructors.Bearer.g.cs deleted file mode 100644 index c1e7740..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsClient - { - /// - - public DuetsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.CreateDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.CreateDuetVoice.g.cs deleted file mode 100644 index ee61556..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.CreateDuetVoice.g.cs +++ /dev/null @@ -1,1406 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateDuetVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateDuetVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateDuetVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateDuetVoiceSecurityRequirement0, - }; - partial void PrepareCreateDuetVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateDuetVoiceRequest request); - partial void PrepareCreateDuetVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateDuetVoiceRequest request); - partial void ProcessCreateDuetVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateDuetVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// 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 CreateDuetVoiceAsync( - - global::ResembleAI.CreateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateDuetVoiceAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// 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> CreateDuetVoiceAsResponseAsync( - - global::ResembleAI.CreateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateDuetVoiceArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateDuetVoiceSecurityRequirements, - operationName: "CreateDuetVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet_voices", - baseUri: ResolveBaseUri( - servers: s_CreateDuetVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), - name: "\"name\""); - - if (request.StylePrompt != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.StylePrompt ?? string.Empty), - name: "\"style_prompt\""); - - } - var __contentAudio = new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()); - __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Audioname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Audioname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudio, - name: "\"audio\"", - fileName: request.Audioname != null ? $"\"{request.Audioname}\"" : string.Empty); - if (__contentAudio.Headers.ContentDisposition != null) - { - __contentAudio.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateDuetVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateDuetVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateDuetVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsCreateDuetVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsCreateDuetVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// Voice name - /// - /// - /// Optional style prompt - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// 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 CreateDuetVoiceAsync( - string name, - byte[] audio, - string audioname, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateDuetVoiceRequest - { - Name = name, - StylePrompt = stylePrompt, - Audio = audio, - Audioname = audioname, - }; - - return await CreateDuetVoiceAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// Voice name - /// - /// - /// Optional style prompt - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// 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 CreateDuetVoiceAsync( - string name, - global::System.IO.Stream audio, - string audioname, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::ResembleAI.CreateDuetVoiceRequest - { - Name = name, - StylePrompt = stylePrompt, - Audio = global::System.Array.Empty(), - Audioname = audioname, - }; - PrepareArguments( - client: HttpClient); - PrepareCreateDuetVoiceArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateDuetVoiceSecurityRequirements, - operationName: "CreateDuetVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet_voices", - baseUri: ResolveBaseUri( - servers: s_CreateDuetVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), - name: "\"name\""); - - if (request.StylePrompt != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.StylePrompt ?? string.Empty), - name: "\"style_prompt\""); - - } - var __contentAudio = new global::System.Net.Http.StreamContent(audio); - __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Audioname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Audioname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudio, - name: "\"audio\"", - fileName: request.Audioname != null ? $"\"{request.Audioname}\"" : string.Empty); - if (__contentAudio.Headers.ContentDisposition != null) - { - __contentAudio.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateDuetVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateDuetVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateDuetVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::ResembleAI.DuetsCreateDuetVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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); - - return - await global::ResembleAI.DuetsCreateDuetVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// Voice name - /// - /// - /// Optional style prompt - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// 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> CreateDuetVoiceAsResponseAsync( - string name, - global::System.IO.Stream audio, - string audioname, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - var request = new global::ResembleAI.CreateDuetVoiceRequest - { - Name = name, - StylePrompt = stylePrompt, - Audio = global::System.Array.Empty(), - Audioname = audioname, - }; - PrepareArguments( - client: HttpClient); - PrepareCreateDuetVoiceArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateDuetVoiceSecurityRequirements, - operationName: "CreateDuetVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet_voices", - baseUri: ResolveBaseUri( - servers: s_CreateDuetVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), - name: "\"name\""); - - if (request.StylePrompt != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.StylePrompt ?? string.Empty), - name: "\"style_prompt\""); - - } - var __contentAudio = new global::System.Net.Http.StreamContent(audio); - __contentAudio.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Audioname is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Audioname) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentAudio, - name: "\"audio\"", - fileName: request.Audioname != null ? $"\"{request.Audioname}\"" : string.Empty); - if (__contentAudio.Headers.ContentDisposition != null) - { - __contentAudio.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateDuetVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateDuetVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoice", - methodName: "CreateDuetVoiceAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateDuetVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsCreateDuetVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsCreateDuetVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.DuetsClient.CreateDuetVoicePair.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.CreateDuetVoicePair.g.cs deleted file mode 100644 index 5e73fe9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.CreateDuetVoicePair.g.cs +++ /dev/null @@ -1,482 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateDuetVoicePairServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateDuetVoicePairSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateDuetVoicePairSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateDuetVoicePairSecurityRequirement0, - }; - partial void PrepareCreateDuetVoicePairArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateDuetVoicePairRequest request); - partial void PrepareCreateDuetVoicePairRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateDuetVoicePairRequest request); - partial void ProcessCreateDuetVoicePairResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateDuetVoicePairResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create duet voice pair
- /// Create a voice pair for duet generation - ///
- /// - /// 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 CreateDuetVoicePairAsync( - - global::ResembleAI.CreateDuetVoicePairRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateDuetVoicePairAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create duet voice pair
- /// Create a voice pair for duet generation - ///
- /// - /// 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> CreateDuetVoicePairAsResponseAsync( - - global::ResembleAI.CreateDuetVoicePairRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateDuetVoicePairArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateDuetVoicePairSecurityRequirements, - operationName: "CreateDuetVoicePairAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet_voice_pairs", - baseUri: ResolveBaseUri( - servers: s_CreateDuetVoicePairServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateDuetVoicePairRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoicePair", - methodName: "CreateDuetVoicePairAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoicePair", - methodName: "CreateDuetVoicePairAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoicePair", - methodName: "CreateDuetVoicePairAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateDuetVoicePairResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoicePair", - methodName: "CreateDuetVoicePairAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateDuetVoicePair", - methodName: "CreateDuetVoicePairAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateDuetVoicePairResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsCreateDuetVoicePairResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsCreateDuetVoicePairResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create duet voice pair
- /// Create a voice pair for duet generation - ///
- /// - /// ID of first voice - /// - /// - /// ID of second voice - /// - /// - /// Optional pair name - /// - /// 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 CreateDuetVoicePairAsync( - int voice1Id, - int voice2Id, - string? name = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateDuetVoicePairRequest - { - Voice1Id = voice1Id, - Voice2Id = voice2Id, - Name = name, - }; - - return await CreateDuetVoicePairAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.DeleteDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.DeleteDuetVoice.g.cs deleted file mode 100644 index 0ac8fcc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.DeleteDuetVoice.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteDuetVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteDuetVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteDuetVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteDuetVoiceSecurityRequirement0, - }; - partial void PrepareDeleteDuetVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareDeleteDuetVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessDeleteDuetVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteDuetVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete duet voice
- /// Delete a custom duet voice (default voices cannot be deleted) - ///
- /// - /// 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 DeleteDuetVoiceAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteDuetVoiceAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete duet voice
- /// Delete a custom duet voice (default voices cannot be deleted) - ///
- /// - /// 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> DeleteDuetVoiceAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteDuetVoiceArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteDuetVoiceSecurityRequirements, - operationName: "DeleteDuetVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/duet_voices/{id}", - baseUri: ResolveBaseUri( - servers: s_DeleteDuetVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteDuetVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDuetVoice", - methodName: "DeleteDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDuetVoice", - methodName: "DeleteDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDuetVoice", - methodName: "DeleteDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteDuetVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDuetVoice", - methodName: "DeleteDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteDuetVoice", - methodName: "DeleteDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteDuetVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsDeleteDuetVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsDeleteDuetVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.DuetsClient.GenerateDuet.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.GenerateDuet.g.cs deleted file mode 100644 index 0b18ace..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.GenerateDuet.g.cs +++ /dev/null @@ -1,485 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GenerateDuetServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GenerateDuetSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GenerateDuetSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GenerateDuetSecurityRequirement0, - }; - partial void PrepareGenerateDuetArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.GenerateDuetRequest request); - partial void PrepareGenerateDuetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.GenerateDuetRequest request); - partial void ProcessGenerateDuetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGenerateDuetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Generate duet
- /// Generate conversational audio with two speakers - ///
- /// - /// 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 GenerateDuetAsync( - - global::ResembleAI.GenerateDuetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GenerateDuetAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Generate duet
- /// Generate conversational audio with two speakers - ///
- /// - /// 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> GenerateDuetAsResponseAsync( - - global::ResembleAI.GenerateDuetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareGenerateDuetArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GenerateDuetSecurityRequirements, - operationName: "GenerateDuetAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet", - baseUri: ResolveBaseUri( - servers: s_GenerateDuetServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGenerateDuetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateDuet", - methodName: "GenerateDuetAsync", - pathTemplate: "\"/duet\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateDuet", - methodName: "GenerateDuetAsync", - pathTemplate: "\"/duet\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateDuet", - methodName: "GenerateDuetAsync", - pathTemplate: "\"/duet\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGenerateDuetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateDuet", - methodName: "GenerateDuetAsync", - pathTemplate: "\"/duet\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GenerateDuet", - methodName: "GenerateDuetAsync", - pathTemplate: "\"/duet\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGenerateDuetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsGenerateDuetResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsGenerateDuetResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Generate duet
- /// Generate conversational audio with two speakers - ///
- /// - /// Voice pair ID to use - /// - /// - /// - /// Optional title for the duet - /// - /// - /// Webhook URL for completion notification - /// - /// 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 GenerateDuetAsync( - int voicePairId, - global::System.Collections.Generic.IList script, - string? title = default, - string? callbackUri = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.GenerateDuetRequest - { - VoicePairId = voicePairId, - Script = script, - Title = title, - CallbackUri = callbackUri, - }; - - return await GenerateDuetAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.ListDuetVoicePairs.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.ListDuetVoicePairs.g.cs deleted file mode 100644 index b417748..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.ListDuetVoicePairs.g.cs +++ /dev/null @@ -1,427 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListDuetVoicePairsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListDuetVoicePairsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListDuetVoicePairsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListDuetVoicePairsSecurityRequirement0, - }; - partial void PrepareListDuetVoicePairsArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareListDuetVoicePairsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessListDuetVoicePairsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListDuetVoicePairsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List duet voice pairs
- /// List all voice pairs for duet generation - ///
- /// 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 ListDuetVoicePairsAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListDuetVoicePairsAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List duet voice pairs
- /// List all voice pairs for duet generation - ///
- /// 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> ListDuetVoicePairsAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListDuetVoicePairsArguments( - httpClient: HttpClient); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListDuetVoicePairsSecurityRequirements, - operationName: "ListDuetVoicePairsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet_voice_pairs", - baseUri: ResolveBaseUri( - servers: s_ListDuetVoicePairsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListDuetVoicePairsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoicePairs", - methodName: "ListDuetVoicePairsAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoicePairs", - methodName: "ListDuetVoicePairsAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoicePairs", - methodName: "ListDuetVoicePairsAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListDuetVoicePairsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoicePairs", - methodName: "ListDuetVoicePairsAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoicePairs", - methodName: "ListDuetVoicePairsAsync", - pathTemplate: "\"/duet_voice_pairs\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListDuetVoicePairsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsListDuetVoicePairsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsListDuetVoicePairsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.DuetsClient.ListDuetVoices.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.ListDuetVoices.g.cs deleted file mode 100644 index 49873d5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.ListDuetVoices.g.cs +++ /dev/null @@ -1,427 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListDuetVoicesServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListDuetVoicesSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListDuetVoicesSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListDuetVoicesSecurityRequirement0, - }; - partial void PrepareListDuetVoicesArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareListDuetVoicesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessListDuetVoicesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListDuetVoicesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List duet voices
- /// Returns default and custom duet voices - ///
- /// 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 ListDuetVoicesAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListDuetVoicesAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List duet voices
- /// Returns default and custom duet voices - ///
- /// 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> ListDuetVoicesAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListDuetVoicesArguments( - httpClient: HttpClient); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListDuetVoicesSecurityRequirements, - operationName: "ListDuetVoicesAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/duet_voices", - baseUri: ResolveBaseUri( - servers: s_ListDuetVoicesServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListDuetVoicesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoices", - methodName: "ListDuetVoicesAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoices", - methodName: "ListDuetVoicesAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoices", - methodName: "ListDuetVoicesAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListDuetVoicesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoices", - methodName: "ListDuetVoicesAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListDuetVoices", - methodName: "ListDuetVoicesAsync", - pathTemplate: "\"/duet_voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListDuetVoicesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsListDuetVoicesResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsListDuetVoicesResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.DuetsClient.UpdateDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.UpdateDuetVoice.g.cs deleted file mode 100644 index 9ea54fd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.UpdateDuetVoice.g.cs +++ /dev/null @@ -1,485 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class DuetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateDuetVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateDuetVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateDuetVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateDuetVoiceSecurityRequirement0, - }; - partial void PrepareUpdateDuetVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id, - global::ResembleAI.UpdateDuetVoiceRequest request); - partial void PrepareUpdateDuetVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id, - global::ResembleAI.UpdateDuetVoiceRequest request); - partial void ProcessUpdateDuetVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateDuetVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update duet voice
- /// Update a custom duet voice (default voices cannot be modified) - ///
- /// - /// - /// 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 UpdateDuetVoiceAsync( - int id, - - global::ResembleAI.UpdateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateDuetVoiceAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update duet voice
- /// Update a custom duet voice (default voices cannot be modified) - ///
- /// - /// - /// 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> UpdateDuetVoiceAsResponseAsync( - int id, - - global::ResembleAI.UpdateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateDuetVoiceArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateDuetVoiceSecurityRequirements, - operationName: "UpdateDuetVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/duet_voices/{id}", - baseUri: ResolveBaseUri( - servers: s_UpdateDuetVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Put, - 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); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateDuetVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateDuetVoice", - methodName: "UpdateDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateDuetVoice", - methodName: "UpdateDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateDuetVoice", - methodName: "UpdateDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessUpdateDuetVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateDuetVoice", - methodName: "UpdateDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateDuetVoice", - methodName: "UpdateDuetVoiceAsync", - pathTemplate: "$\"/duet_voices/{id}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessUpdateDuetVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.DuetsUpdateDuetVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.DuetsUpdateDuetVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update duet voice
- /// Update a custom duet voice (default voices cannot be modified) - ///
- /// - /// - /// - /// 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 UpdateDuetVoiceAsync( - int id, - string? name = default, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateDuetVoiceRequest - { - Name = name, - StylePrompt = stylePrompt, - }; - - return await UpdateDuetVoiceAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.g.cs deleted file mode 100644 index 76c8209..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.DuetsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class DuetsClient : global::ResembleAI.IDuetsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.DuetsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the DuetsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DuetsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DuetsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DuetsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the DuetsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public DuetsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 83cb916..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IAudioEnhancementClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.CreateAudioEnhancement.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.CreateAudioEnhancement.g.cs deleted file mode 100644 index fd3815f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.CreateAudioEnhancement.g.cs +++ /dev/null @@ -1,134 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAudioEnhancementClient - { - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// 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 CreateAudioEnhancementAsync( - - global::ResembleAI.CreateAudioEnhancementRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// 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> CreateAudioEnhancementAsResponseAsync( - - global::ResembleAI.CreateAudioEnhancementRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// - /// 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 CreateAudioEnhancementAsync( - byte[] audioFile, - string audioFilename, - bool? removeNoise = default, - bool? normalize = default, - bool? studioSound = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// - /// 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 CreateAudioEnhancementAsync( - global::System.IO.Stream audioFile, - string audioFilename, - bool? removeNoise = default, - bool? normalize = default, - bool? studioSound = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create audio enhancement
- /// Submit an audio file for enhancement. Processing happens asynchronously in the background. - ///
- /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// - /// 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> CreateAudioEnhancementAsResponseAsync( - global::System.IO.Stream audioFile, - string audioFilename, - bool? removeNoise = default, - bool? normalize = default, - bool? studioSound = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.GetAudioEnhancement.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.GetAudioEnhancement.g.cs deleted file mode 100644 index 47f1900..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.GetAudioEnhancement.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAudioEnhancementClient - { - /// - /// Get audio enhancement
- /// Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete. - ///
- /// - /// 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 GetAudioEnhancementAsync( - string enhancementUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get audio enhancement
- /// Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete. - ///
- /// - /// 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> GetAudioEnhancementAsResponseAsync( - string enhancementUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.ListAudioEnhancements.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.ListAudioEnhancements.g.cs deleted file mode 100644 index a096228..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.ListAudioEnhancements.g.cs +++ /dev/null @@ -1,40 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IAudioEnhancementClient - { - /// - /// List audio enhancements
- /// Returns a paginated list of all audio enhancements for your team, ordered by most recent first. - ///
- /// - /// - /// Default Value: 10 - /// - /// 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 ListAudioEnhancementsAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List audio enhancements
- /// Returns a paginated list of all audio enhancements for your team, ordered by most recent first. - ///
- /// - /// - /// Default Value: 10 - /// - /// 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> ListAudioEnhancementsAsResponseAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.g.cs deleted file mode 100644 index 96d83a0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IAudioEnhancementClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IAudioEnhancementClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 21408c1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IClipsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.DeleteClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.DeleteClip.g.cs deleted file mode 100644 index 2e9facb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.DeleteClip.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IClipsClient - { - /// - /// Delete clip
- /// Delete a clip - ///
- /// - /// - /// 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 DeleteClipAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete clip
- /// Delete a clip - ///
- /// - /// - /// 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> DeleteClipAsResponseAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.GetClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.GetClip.g.cs deleted file mode 100644 index 9ecbca7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.GetClip.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IClipsClient - { - /// - /// Get clip
- /// Get clip details - ///
- /// - /// - /// 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 GetClipAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get clip
- /// Get clip details - ///
- /// - /// - /// 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> GetClipAsResponseAsync( - string projectUuid, - string clipUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.ListClips.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.ListClips.g.cs deleted file mode 100644 index b3f0dd4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.ListClips.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IClipsClient - { - /// - /// List clips
- /// List clips in a project - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListClipsAsync( - string projectUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List clips
- /// List clips in a project - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListClipsAsResponseAsync( - string projectUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.UpdateClip.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.UpdateClip.g.cs deleted file mode 100644 index 2ef5b9f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.UpdateClip.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IClipsClient - { - /// - /// Update clip
- /// Update a clip - ///
- /// - /// - /// - /// 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 UpdateClipAsync( - string projectUuid, - string clipUuid, - - global::ResembleAI.UpdateClipRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update clip
- /// Update a clip - ///
- /// - /// - /// - /// 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> UpdateClipAsResponseAsync( - string projectUuid, - string clipUuid, - - global::ResembleAI.UpdateClipRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update clip
- /// Update a clip - ///
- /// - /// - /// - /// - /// - /// 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 UpdateClipAsync( - string projectUuid, - string clipUuid, - string? title = default, - string? body = default, - bool? isArchived = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.g.cs deleted file mode 100644 index dbdd6d0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IClipsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IClipsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index a58ef8e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.BulkCreatePronunciations.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.BulkCreatePronunciations.g.cs deleted file mode 100644 index 868080d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.BulkCreatePronunciations.g.cs +++ /dev/null @@ -1,89 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// 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 BulkCreatePronunciationsAsync( - - global::ResembleAI.BulkCreatePronunciationsRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// 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> BulkCreatePronunciationsAsResponseAsync( - - global::ResembleAI.BulkCreatePronunciationsRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// 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 BulkCreatePronunciationsAsync( - byte[] zip, - string zipname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// 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 BulkCreatePronunciationsAsync( - global::System.IO.Stream zip, - string zipname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Bulk create pronunciations from ZIP
- /// Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word. - ///
- /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// 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> BulkCreatePronunciationsAsResponseAsync( - global::System.IO.Stream zip, - string zipname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.CreatePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.CreatePronunciation.g.cs deleted file mode 100644 index 35573d1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.CreatePronunciation.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// 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 CreatePronunciationAsync( - - global::ResembleAI.CreatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// 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> CreatePronunciationAsResponseAsync( - - global::ResembleAI.CreatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// 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 CreatePronunciationAsync( - string word, - byte[] audio, - string audioname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// 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 CreatePronunciationAsync( - string word, - global::System.IO.Stream audio, - string audioname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create custom pronunciation
- /// Upload a single pronunciation with a reference audio file. - ///
- /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// 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> CreatePronunciationAsResponseAsync( - string word, - global::System.IO.Stream audio, - string audioname, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.DeletePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.DeletePronunciation.g.cs deleted file mode 100644 index bded610..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.DeletePronunciation.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// Delete custom pronunciation
- /// Permanently remove a custom pronunciation. Takes effect immediately. - ///
- /// - /// 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 DeletePronunciationAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete custom pronunciation
- /// Permanently remove a custom pronunciation. Takes effect immediately. - ///
- /// - /// 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> DeletePronunciationAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.GetPronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.GetPronunciation.g.cs deleted file mode 100644 index 167ecbf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.GetPronunciation.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// Get custom pronunciation
- /// Retrieve a single custom pronunciation by UUID - ///
- /// - /// 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 GetPronunciationAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get custom pronunciation
- /// Retrieve a single custom pronunciation by UUID - ///
- /// - /// 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> GetPronunciationAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.ListPronunciations.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.ListPronunciations.g.cs deleted file mode 100644 index 27e7e22..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.ListPronunciations.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// List custom pronunciations
- /// Retrieve all custom pronunciations for your team, with optional filters. - ///
- /// - /// - /// - /// - /// 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 ListPronunciationsAsync( - string? language = default, - string? domain = default, - global::ResembleAI.PronunciationsGetParametersStatus? status = default, - bool? active = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List custom pronunciations
- /// Retrieve all custom pronunciations for your team, with optional filters. - ///
- /// - /// - /// - /// - /// 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> ListPronunciationsAsResponseAsync( - string? language = default, - string? domain = default, - global::ResembleAI.PronunciationsGetParametersStatus? status = default, - bool? active = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.UpdatePronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.UpdatePronunciation.g.cs deleted file mode 100644 index 0e0c8e9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.UpdatePronunciation.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ICustomPronunciationsClient - { - /// - /// Toggle pronunciation active status
- /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis. - ///
- /// - /// - /// 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 UpdatePronunciationAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Toggle pronunciation active status
- /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis. - ///
- /// - /// - /// 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> UpdatePronunciationAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.UpdatePronunciationRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Toggle pronunciation active status
- /// Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis. - ///
- /// - /// - /// Set to false to disable, true to re-enable - /// - /// 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 UpdatePronunciationAsync( - global::System.Guid uuid, - bool active, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.g.cs deleted file mode 100644 index 31bf1a1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ICustomPronunciationsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface ICustomPronunciationsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index cc3db97..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.CreateDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.CreateDuetVoice.g.cs deleted file mode 100644 index 55de821..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.CreateDuetVoice.g.cs +++ /dev/null @@ -1,113 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// 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 CreateDuetVoiceAsync( - - global::ResembleAI.CreateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// 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> CreateDuetVoiceAsResponseAsync( - - global::ResembleAI.CreateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// Voice name - /// - /// - /// Optional style prompt - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// 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 CreateDuetVoiceAsync( - string name, - byte[] audio, - string audioname, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// Voice name - /// - /// - /// Optional style prompt - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// 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 CreateDuetVoiceAsync( - string name, - global::System.IO.Stream audio, - string audioname, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create custom duet voice
- /// Create a custom voice for duet generation - ///
- /// - /// Voice name - /// - /// - /// Optional style prompt - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// 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> CreateDuetVoiceAsResponseAsync( - string name, - global::System.IO.Stream audio, - string audioname, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.CreateDuetVoicePair.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.CreateDuetVoicePair.g.cs deleted file mode 100644 index 01f2069..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.CreateDuetVoicePair.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// Create duet voice pair
- /// Create a voice pair for duet generation - ///
- /// - /// 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 CreateDuetVoicePairAsync( - - global::ResembleAI.CreateDuetVoicePairRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create duet voice pair
- /// Create a voice pair for duet generation - ///
- /// - /// 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> CreateDuetVoicePairAsResponseAsync( - - global::ResembleAI.CreateDuetVoicePairRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create duet voice pair
- /// Create a voice pair for duet generation - ///
- /// - /// ID of first voice - /// - /// - /// ID of second voice - /// - /// - /// Optional pair name - /// - /// 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 CreateDuetVoicePairAsync( - int voice1Id, - int voice2Id, - string? name = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.DeleteDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.DeleteDuetVoice.g.cs deleted file mode 100644 index b6d6ec8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.DeleteDuetVoice.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// Delete duet voice
- /// Delete a custom duet voice (default voices cannot be deleted) - ///
- /// - /// 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 DeleteDuetVoiceAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete duet voice
- /// Delete a custom duet voice (default voices cannot be deleted) - ///
- /// - /// 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> DeleteDuetVoiceAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.GenerateDuet.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.GenerateDuet.g.cs deleted file mode 100644 index e52b94f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.GenerateDuet.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// Generate duet
- /// Generate conversational audio with two speakers - ///
- /// - /// 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 GenerateDuetAsync( - - global::ResembleAI.GenerateDuetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Generate duet
- /// Generate conversational audio with two speakers - ///
- /// - /// 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> GenerateDuetAsResponseAsync( - - global::ResembleAI.GenerateDuetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Generate duet
- /// Generate conversational audio with two speakers - ///
- /// - /// Voice pair ID to use - /// - /// - /// - /// Optional title for the duet - /// - /// - /// Webhook URL for completion notification - /// - /// 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 GenerateDuetAsync( - int voicePairId, - global::System.Collections.Generic.IList script, - string? title = default, - string? callbackUri = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.ListDuetVoicePairs.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.ListDuetVoicePairs.g.cs deleted file mode 100644 index 1f699dd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.ListDuetVoicePairs.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// List duet voice pairs
- /// List all voice pairs for duet generation - ///
- /// 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 ListDuetVoicePairsAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List duet voice pairs
- /// List all voice pairs for duet generation - ///
- /// 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> ListDuetVoicePairsAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.ListDuetVoices.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.ListDuetVoices.g.cs deleted file mode 100644 index 7dddf88..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.ListDuetVoices.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// List duet voices
- /// Returns default and custom duet voices - ///
- /// 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 ListDuetVoicesAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List duet voices
- /// Returns default and custom duet voices - ///
- /// 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> ListDuetVoicesAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.UpdateDuetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.UpdateDuetVoice.g.cs deleted file mode 100644 index e39c774..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.UpdateDuetVoice.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IDuetsClient - { - /// - /// Update duet voice
- /// Update a custom duet voice (default voices cannot be modified) - ///
- /// - /// - /// 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 UpdateDuetVoiceAsync( - int id, - - global::ResembleAI.UpdateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update duet voice
- /// Update a custom duet voice (default voices cannot be modified) - ///
- /// - /// - /// 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> UpdateDuetVoiceAsResponseAsync( - int id, - - global::ResembleAI.UpdateDuetVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update duet voice
- /// Update a custom duet voice (default voices cannot be modified) - ///
- /// - /// - /// - /// 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 UpdateDuetVoiceAsync( - int id, - string? name = default, - string? stylePrompt = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.g.cs deleted file mode 100644 index 22edcbf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IDuetsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IDuetsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 98a1aab..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IProjectsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.CreateProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.CreateProject.g.cs deleted file mode 100644 index f4df1f8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.CreateProject.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IProjectsClient - { - /// - /// Create project
- /// Create a new project - ///
- /// - /// 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 CreateProjectAsync( - - global::ResembleAI.CreateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create project
- /// Create a new project - ///
- /// - /// 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> CreateProjectAsResponseAsync( - - global::ResembleAI.CreateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create project
- /// Create a new project - ///
- /// - /// - /// - /// - /// 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 CreateProjectAsync( - string name, - string description, - bool isCollaborative, - bool isArchived, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.DeleteProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.DeleteProject.g.cs deleted file mode 100644 index 0a14418..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.DeleteProject.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IProjectsClient - { - /// - /// Delete project
- /// Delete a project - ///
- /// - /// 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 DeleteProjectAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete project
- /// Delete a project - ///
- /// - /// 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> DeleteProjectAsResponseAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.GetProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.GetProject.g.cs deleted file mode 100644 index 8f77aa9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.GetProject.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IProjectsClient - { - /// - /// Get project
- /// Get project details - ///
- /// - /// 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 GetProjectAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get project
- /// Get project details - ///
- /// - /// 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> GetProjectAsResponseAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.ListProjects.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.ListProjects.g.cs deleted file mode 100644 index 43d58cf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.ListProjects.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IProjectsClient - { - /// - /// List projects
- /// List all projects - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListProjectsAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List projects
- /// List all projects - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListProjectsAsResponseAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.UpdateProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.UpdateProject.g.cs deleted file mode 100644 index 644213a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.UpdateProject.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IProjectsClient - { - /// - /// Update project
- /// Update a project - ///
- /// - /// - /// 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 UpdateProjectAsync( - string projectUuid, - - global::ResembleAI.UpdateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update project
- /// Update a project - ///
- /// - /// - /// 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> UpdateProjectAsResponseAsync( - string projectUuid, - - global::ResembleAI.UpdateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update project
- /// Update a project - ///
- /// - /// - /// - /// - /// - /// 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 UpdateProjectAsync( - string projectUuid, - string? name = default, - string? description = default, - bool? isCollaborative = default, - bool? isArchived = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.g.cs deleted file mode 100644 index ec293c0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IProjectsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IProjectsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index c9d06fc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IRecordingsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.CreateRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.CreateRecording.g.cs deleted file mode 100644 index 6fb1338..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.CreateRecording.g.cs +++ /dev/null @@ -1,159 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IRecordingsClient - { - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// 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 CreateRecordingAsync( - string voiceUuid, - - global::ResembleAI.CreateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// 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> CreateRecordingAsResponseAsync( - string voiceUuid, - - global::ResembleAI.CreateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// - /// 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 CreateRecordingAsync( - string voiceUuid, - byte[] file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// - /// 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 CreateRecordingAsync( - string voiceUuid, - global::System.IO.Stream file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// - /// 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> CreateRecordingAsResponseAsync( - string voiceUuid, - global::System.IO.Stream file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.DeleteRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.DeleteRecording.g.cs deleted file mode 100644 index 6c7d636..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.DeleteRecording.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IRecordingsClient - { - /// - /// Delete recording
- /// Delete a recording - ///
- /// - /// - /// 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 DeleteRecordingAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete recording
- /// Delete a recording - ///
- /// - /// - /// 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> DeleteRecordingAsResponseAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.GetRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.GetRecording.g.cs deleted file mode 100644 index 6ed3809..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.GetRecording.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IRecordingsClient - { - /// - /// Get recording
- /// Get recording details - ///
- /// - /// - /// 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 GetRecordingAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get recording
- /// Get recording details - ///
- /// - /// - /// 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> GetRecordingAsResponseAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.ListRecordings.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.ListRecordings.g.cs deleted file mode 100644 index 5321c5e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.ListRecordings.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IRecordingsClient - { - /// - /// List recordings
- /// List all recordings for a voice - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListRecordingsAsync( - string voiceUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List recordings
- /// List all recordings for a voice - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListRecordingsAsResponseAsync( - string voiceUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.UpdateRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.UpdateRecording.g.cs deleted file mode 100644 index f80fd7c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.UpdateRecording.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IRecordingsClient - { - /// - /// Update recording
- /// Update a recording - ///
- /// - /// - /// - /// 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 UpdateRecordingAsync( - string voiceUuid, - string recordingId, - - global::ResembleAI.UpdateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update recording
- /// Update a recording - ///
- /// - /// - /// - /// 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> UpdateRecordingAsResponseAsync( - string voiceUuid, - string recordingId, - - global::ResembleAI.UpdateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update recording
- /// Update a recording - ///
- /// - /// - /// - /// - /// - /// - /// 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 UpdateRecordingAsync( - string voiceUuid, - string recordingId, - string? name = default, - string? text = default, - string? emotion = default, - bool? isActive = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.g.cs deleted file mode 100644 index ecbfea3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IRecordingsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IRecordingsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs index 49242d8..2d03679 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs @@ -70,11 +70,6 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public AccountClient Account { get; } - /// - /// - /// - public AudioEnhancementClient AudioEnhancement { get; } - /// /// /// @@ -95,16 +90,6 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public BillingWalletClient BillingWallet { get; } - /// - /// - /// - public ClipsClient Clips { get; } - - /// - /// - /// - public CustomPronunciationsClient CustomPronunciations { get; } - /// /// /// @@ -120,11 +105,6 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public DetectIntelligenceClient DetectIntelligence { get; } - /// - /// - /// - public DuetsClient Duets { get; } - /// /// /// @@ -140,16 +120,6 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public MusicDetectionClient MusicDetection { get; } - /// - /// - /// - public ProjectsClient Projects { get; } - - /// - /// - /// - public RecordingsClient Recordings { get; } - /// /// /// @@ -160,36 +130,11 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public SignalClient Signal { get; } - /// - /// - /// - public SpeechToTextClient SpeechToText { get; } - - /// - /// - /// - public TermSubstitutionsClient TermSubstitutions { get; } - /// /// /// public TextDetectionClient TextDetection { get; } - /// - /// - /// - public TextToSpeechClient TextToSpeech { get; } - - /// - /// - /// - public VoiceSettingsPresetsClient VoiceSettingsPresets { get; } - - /// - /// - /// - public VoicesClient Voices { get; } - /// /// /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.AskTranscriptQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.AskTranscriptQuestion.g.cs deleted file mode 100644 index 4409f70..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.AskTranscriptQuestion.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// Ask intelligence question
- /// Submit a question about a completed transcript - ///
- /// - /// - /// 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 AskTranscriptQuestionAsync( - global::System.Guid uuid, - - global::ResembleAI.AskTranscriptQuestionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Ask intelligence question
- /// Submit a question about a completed transcript - ///
- /// - /// - /// 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> AskTranscriptQuestionAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.AskTranscriptQuestionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Ask intelligence question
- /// Submit a question about a completed transcript - ///
- /// - /// - /// Question to ask about the transcript - /// - /// 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 AskTranscriptQuestionAsync( - global::System.Guid uuid, - string query, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 98ca7db..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.CreateTranscript.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.CreateTranscript.g.cs deleted file mode 100644 index 346070c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.CreateTranscript.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// Create transcript job
- /// Submit audio or video for transcription - ///
- /// - /// 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 CreateTranscriptAsync( - - global::ResembleAI.CreateTranscriptRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create transcript job
- /// Submit audio or video for transcription - ///
- /// - /// 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> CreateTranscriptAsResponseAsync( - - global::ResembleAI.CreateTranscriptRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create transcript job
- /// Submit audio or video for transcription - ///
- /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - /// - /// Optional intelligence question to evaluate after transcription - /// - /// - /// Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true. - /// - /// - /// Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan.
- /// Default Value: false - /// - /// 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 CreateTranscriptAsync( - byte[]? file = default, - string? filename = default, - string? query = default, - string? callbackUrl = default, - bool? zeroRetentionMode = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.GetTranscript.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.GetTranscript.g.cs deleted file mode 100644 index d13d4f4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.GetTranscript.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// Get transcript
- /// Retrieve transcript status, text, and timestamps - ///
- /// - /// 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 GetTranscriptAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get transcript
- /// Retrieve transcript status, text, and timestamps - ///
- /// - /// 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> GetTranscriptAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.GetTranscriptQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.GetTranscriptQuestion.g.cs deleted file mode 100644 index 97ac8f5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.GetTranscriptQuestion.g.cs +++ /dev/null @@ -1,36 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// Get intelligence question status
- /// Check the status of a specific question - ///
- /// - /// - /// 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 GetTranscriptQuestionAsync( - global::System.Guid uuid, - global::System.Guid questionUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get intelligence question status
- /// Check the status of a specific question - ///
- /// - /// - /// 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> GetTranscriptQuestionAsResponseAsync( - global::System.Guid uuid, - global::System.Guid questionUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.ListTranscriptQuestions.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.ListTranscriptQuestions.g.cs deleted file mode 100644 index 1f3a33a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.ListTranscriptQuestions.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// List intelligence questions
- /// List all questions asked about a transcript - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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 ListTranscriptQuestionsAsync( - global::System.Guid uuid, - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List intelligence questions
- /// List all questions asked about a transcript - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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> ListTranscriptQuestionsAsResponseAsync( - global::System.Guid uuid, - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.ListTranscripts.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.ListTranscripts.g.cs deleted file mode 100644 index 0530cf8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.ListTranscripts.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ISpeechToTextClient - { - /// - /// List transcripts
- /// Retrieve paginated list of transcript jobs - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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 ListTranscriptsAsync( - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List transcripts
- /// Retrieve paginated list of transcript jobs - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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> ListTranscriptsAsResponseAsync( - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.g.cs deleted file mode 100644 index 3b421e3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ISpeechToTextClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface ISpeechToTextClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index c0d9198..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface ITermSubstitutionsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.CreateTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.CreateTermSubstitution.g.cs deleted file mode 100644 index 3393293..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.CreateTermSubstitution.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ITermSubstitutionsClient - { - /// - /// Create term substitution
- /// Create a new pronunciation substitution - ///
- /// - /// 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 CreateTermSubstitutionAsync( - - global::ResembleAI.CreateTermSubstitutionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create term substitution
- /// Create a new pronunciation substitution - ///
- /// - /// 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> CreateTermSubstitutionAsResponseAsync( - - global::ResembleAI.CreateTermSubstitutionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create term substitution
- /// Create a new pronunciation substitution - ///
- /// - /// Original text to substitute - /// - /// - /// Replacement pronunciation - /// - /// 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 CreateTermSubstitutionAsync( - string originalText, - string replacementText, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.DeleteTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.DeleteTermSubstitution.g.cs deleted file mode 100644 index 3199a1b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.DeleteTermSubstitution.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ITermSubstitutionsClient - { - /// - /// Delete term substitution
- /// Delete a term substitution - ///
- /// - /// 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 DeleteTermSubstitutionAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete term substitution
- /// Delete a term substitution - ///
- /// - /// 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> DeleteTermSubstitutionAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.GetTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.GetTermSubstitution.g.cs deleted file mode 100644 index 0988c1a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.GetTermSubstitution.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ITermSubstitutionsClient - { - /// - /// Get term substitution
- /// Get term substitution details - ///
- /// - /// 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 GetTermSubstitutionAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get term substitution
- /// Get term substitution details - ///
- /// - /// 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> GetTermSubstitutionAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.ListTermSubstitutions.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.ListTermSubstitutions.g.cs deleted file mode 100644 index 195d3b6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.ListTermSubstitutions.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ITermSubstitutionsClient - { - /// - /// List term substitutions
- /// List all term substitutions - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListTermSubstitutionsAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List term substitutions
- /// List all term substitutions - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListTermSubstitutionsAsResponseAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.g.cs deleted file mode 100644 index 7816323..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITermSubstitutionsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface ITermSubstitutionsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 7133611..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface ITextToSpeechClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs deleted file mode 100644 index 6d435bf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs +++ /dev/null @@ -1,88 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ITextToSpeechClient - { - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// 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 StreamSynthesizeAsync( - - global::ResembleAI.StreamSynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// 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 StreamSynthesizeAsStreamAsync( - - global::ResembleAI.StreamSynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// 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> StreamSynthesizeAsResponseAsync( - - global::ResembleAI.StreamSynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// Voice UUID to use for synthesis - /// - /// - /// Text or SSML to synthesize (max 2000 characters) - /// - /// - /// Optional project UUID to store the clip - /// - /// - /// Audio precision
- /// Default Value: PCM_32 - /// - /// - /// Audio sample rate in Hz - /// - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - /// - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - /// - /// 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 StreamSynthesizeAsync( - string voiceUuid, - string data, - string? projectUuid = default, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, - bool? useHd = default, - bool? applyCustomPronunciations = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs deleted file mode 100644 index a7cd935..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs +++ /dev/null @@ -1,84 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface ITextToSpeechClient - { - /// - /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. - ///
- /// - /// 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 SynthesizeAsync( - - global::ResembleAI.SynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. - ///
- /// - /// 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> SynthesizeAsResponseAsync( - - global::ResembleAI.SynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. - ///
- /// - /// Voice UUID to use for synthesis - /// - /// - /// Optional project UUID to store the clip - /// - /// - /// Optional title for the generated clip - /// - /// - /// Text or SSML to synthesize (max 3,000 characters) - /// - /// - /// Audio precision for WAV output
- /// Default Value: PCM_32 - /// - /// - /// Audio output format
- /// Default Value: wav - /// - /// - /// Audio sample rate in Hz - /// - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - /// - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - /// - /// 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 SynthesizeAsync( - string voiceUuid, - string data, - string? projectUuid = default, - string? title = default, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? outputFormat = default, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, - bool? useHd = default, - bool? applyCustomPronunciations = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.g.cs deleted file mode 100644 index 98e3e60..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface ITextToSpeechClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 0942fa8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoiceSettingsPresetsClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs deleted file mode 100644 index 7c2bcbd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoiceSettingsPresetsClient - { - /// - /// Create voice settings preset
- /// Create a new voice settings preset (max 5 per user) - ///
- /// - /// 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 CreateVoiceSettingsPresetAsync( - - global::ResembleAI.CreateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create voice settings preset
- /// Create a new voice settings preset (max 5 per user) - ///
- /// - /// 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> CreateVoiceSettingsPresetAsResponseAsync( - - global::ResembleAI.CreateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create voice settings preset
- /// Create a new voice settings preset (max 5 per user) - ///
- /// - /// Preset name (unique, max 30 characters) - /// - /// - /// Speech pace/speed
- /// Default Value: 1 - /// - /// - /// Voice variation
- /// Default Value: 0.8F - /// - /// - /// Voice pitch adjustment
- /// Default Value: 0 - /// - /// - /// Use HD quality
- /// Default Value: false - /// - /// - /// Emotional exaggeration
- /// Default Value: 0.5F - /// - /// - /// Voice style prompt - /// - /// 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 CreateVoiceSettingsPresetAsync( - string name, - double? pace = default, - double? temperature = default, - double? pitch = default, - bool? useHd = default, - double? exaggeration = default, - string? description = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs deleted file mode 100644 index a6eca74..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoiceSettingsPresetsClient - { - /// - /// Delete voice settings preset
- /// Delete a preset - ///
- /// - /// 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 DeleteVoiceSettingsPresetAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete voice settings preset
- /// Delete a preset - ///
- /// - /// 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> DeleteVoiceSettingsPresetAsResponseAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs deleted file mode 100644 index b40c2bc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoiceSettingsPresetsClient - { - /// - /// Get voice settings preset
- /// Get preset details - ///
- /// - /// 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 GetVoiceSettingsPresetAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get voice settings preset
- /// Get preset details - ///
- /// - /// 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> GetVoiceSettingsPresetAsResponseAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs deleted file mode 100644 index fcbdff3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs +++ /dev/null @@ -1,28 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoiceSettingsPresetsClient - { - /// - /// List voice settings presets
- /// List all voice settings presets - ///
- /// 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 ListVoiceSettingsPresetsAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List voice settings presets
- /// List all voice settings presets - ///
- /// 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> ListVoiceSettingsPresetsAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs deleted file mode 100644 index 680a7bb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoiceSettingsPresetsClient - { - /// - /// Update voice settings preset
- /// Update a preset - ///
- /// - /// - /// 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 UpdateVoiceSettingsPresetAsync( - string uuid, - - global::ResembleAI.UpdateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update voice settings preset
- /// Update a preset - ///
- /// - /// - /// 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> UpdateVoiceSettingsPresetAsResponseAsync( - string uuid, - - global::ResembleAI.UpdateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Update voice settings preset
- /// Update a preset - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// 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 UpdateVoiceSettingsPresetAsync( - string uuid, - string? name = default, - double? pace = default, - double? temperature = default, - double? pitch = default, - bool? useHd = default, - double? exaggeration = default, - string? description = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.g.cs deleted file mode 100644 index 2fcc6c4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoiceSettingsPresetsClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IVoiceSettingsPresetsClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.Authorizations.Bearer.g.cs deleted file mode 100644 index afaa2ee..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,16 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoicesClient - { - /// - /// Authorize using bearer authentication. - /// - /// - - public void AuthorizeUsingBearer( - string apiKey); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.BuildVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.BuildVoice.g.cs deleted file mode 100644 index 3feadfe..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.BuildVoice.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoicesClient - { - /// - /// Build voice
- /// Start voice training - ///
- /// - /// - /// 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 BuildVoiceAsync( - string voiceUuid, - - global::ResembleAI.BuildVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Build voice
- /// Start voice training - ///
- /// - /// - /// 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> BuildVoiceAsResponseAsync( - string voiceUuid, - - global::ResembleAI.BuildVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Build voice
- /// Start voice training - ///
- /// - /// - /// Default Value: false - /// - /// 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 BuildVoiceAsync( - string voiceUuid, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.CreateVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.CreateVoice.g.cs deleted file mode 100644 index 1ce015e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.CreateVoice.g.cs +++ /dev/null @@ -1,54 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoicesClient - { - /// - /// Create voice
- /// Create a new voice - ///
- /// - /// 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 CreateVoiceAsync( - - global::ResembleAI.CreateVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create voice
- /// Create a new voice - ///
- /// - /// 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> CreateVoiceAsResponseAsync( - - global::ResembleAI.CreateVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create voice
- /// Create a new voice - ///
- /// - /// - /// - /// - /// Default Value: en-US - /// - /// 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 CreateVoiceAsync( - string name, - string? datasetUrl = default, - string? callbackUri = default, - string? language = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.DeleteVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.DeleteVoice.g.cs deleted file mode 100644 index 813661b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.DeleteVoice.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoicesClient - { - /// - /// Delete voice
- /// Delete a voice - ///
- /// - /// 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 DeleteVoiceAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Delete voice
- /// Delete a voice - ///
- /// - /// 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> DeleteVoiceAsResponseAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.GetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.GetVoice.g.cs deleted file mode 100644 index 86eb28a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.GetVoice.g.cs +++ /dev/null @@ -1,32 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoicesClient - { - /// - /// Get voice
- /// Get voice details - ///
- /// - /// 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 GetVoiceAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Get voice
- /// Get voice details - ///
- /// - /// 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> GetVoiceAsResponseAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.ListVoices.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.ListVoices.g.cs deleted file mode 100644 index 4425128..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.ListVoices.g.cs +++ /dev/null @@ -1,52 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public partial interface IVoicesClient - { - /// - /// List voices
- /// Retrieve voice metadata - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// - /// Default Value: false - /// - /// 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 ListVoicesAsync( - int page, - int? pageSize = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// List voices
- /// Retrieve voice metadata - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// - /// Default Value: false - /// - /// 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> ListVoicesAsResponseAsync( - int page, - int? pageSize = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.g.cs deleted file mode 100644 index dc897c6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.IVoicesClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IVoicesClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Identity.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Identity.JsonSerializerContext.g.cs index ed034b7..5a43fd5 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Identity.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Identity.JsonSerializerContext.g.cs @@ -17,8 +17,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryVisibility), TypeInfoPropertyName = "IdentitySummaryVisibility2")] @@ -56,8 +56,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SearchIdentitiesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryVisibility?), TypeInfoPropertyName = "NullableIdentitySummaryVisibility2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryIdentityType?), TypeInfoPropertyName = "NullableIdentitySummaryIdentityType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType?), TypeInfoPropertyName = "NullableIdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Intelligence.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Intelligence.JsonSerializerContext.g.cs index 8666545..f2bb210 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Intelligence.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Intelligence.JsonSerializerContext.g.cs @@ -17,8 +17,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] @@ -48,8 +48,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RunIntelligenceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType?), TypeInfoPropertyName = "NullableIntelligencePostRequestBodyContentApplicationJsonSchemaMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableIntelligencePostResponsesContentApplicationJsonSchemaItemMediaType2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.g.cs deleted file mode 100644 index 7e561e6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus 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::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullable.g.cs deleted file mode 100644 index 11a72de..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? 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::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? 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::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs deleted file mode 100644 index 7ac07d5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus 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::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs deleted file mode 100644 index 75fd9d5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? 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::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? 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::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.g.cs deleted file mode 100644 index c8d3045..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus 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::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullable.g.cs deleted file mode 100644 index de27691..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? 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::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? 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::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.CustomPronunciationStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.CustomPronunciationStatus.g.cs deleted file mode 100644 index 7b43ad7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.CustomPronunciationStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class CustomPronunciationStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.CustomPronunciationStatus 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::ResembleAI.CustomPronunciationStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.CustomPronunciationStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.CustomPronunciationStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.CustomPronunciationStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.CustomPronunciationStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.CustomPronunciationStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.CustomPronunciationStatusNullable.g.cs deleted file mode 100644 index 1036096..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.CustomPronunciationStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class CustomPronunciationStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.CustomPronunciationStatus? 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::ResembleAI.CustomPronunciationStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.CustomPronunciationStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.CustomPronunciationStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.CustomPronunciationStatus? 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::ResembleAI.CustomPronunciationStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.g.cs deleted file mode 100644 index 4685666..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker 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::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullable.g.cs deleted file mode 100644 index 2eeff53..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? 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::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? 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::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PronunciationsGetParametersStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PronunciationsGetParametersStatus.g.cs deleted file mode 100644 index 3c62a04..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PronunciationsGetParametersStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class PronunciationsGetParametersStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.PronunciationsGetParametersStatus 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::ResembleAI.PronunciationsGetParametersStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.PronunciationsGetParametersStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.PronunciationsGetParametersStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.PronunciationsGetParametersStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.PronunciationsGetParametersStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullable.g.cs deleted file mode 100644 index be91b8b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class PronunciationsGetParametersStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.PronunciationsGetParametersStatus? 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::ResembleAI.PronunciationsGetParametersStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.PronunciationsGetParametersStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.PronunciationsGetParametersStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.PronunciationsGetParametersStatus? 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::ResembleAI.PronunciationsGetParametersStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.g.cs deleted file mode 100644 index 066471a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus 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::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs deleted file mode 100644 index 3ff4aeb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? 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::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? 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::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs deleted file mode 100644 index 4995e46..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus 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::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs deleted file mode 100644 index 63eece3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? 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::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? 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::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecision.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecision.g.cs deleted file mode 100644 index 9202b2a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecision.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision 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::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullable.g.cs deleted file mode 100644 index ae1c2ba..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? 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::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? 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::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs deleted file mode 100644 index 55ce9a3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate 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::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullable.g.cs deleted file mode 100644 index 3b5cba6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? 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::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? 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::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.g.cs deleted file mode 100644 index 0cab86a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullable.g.cs deleted file mode 100644 index 8ca05fe..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.g.cs deleted file mode 100644 index 12a35d2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullable.g.cs deleted file mode 100644 index 30f70f6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs deleted file mode 100644 index 449e658..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullable.g.cs deleted file mode 100644 index 5545adb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace ResembleAI.JsonConverters -{ - /// - public sealed class SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? 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::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs index 289fd77..ee42a67 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs @@ -6,13 +6,376 @@ namespace ResembleAI /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectWatermarkAnalysisStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectWatermarkAnalysisStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectBatchStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackVoteJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackVoteNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackVerdictJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackVerdictNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectFeedbackMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentTierJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentTierNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySummaryVisibilityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySummaryVisibilityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityIdentityTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityIdentityTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityVisibilityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityVisibilityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyRequestOutputFormatJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyRequestOutputFormatNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectItemPredictionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectItemPredictionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectPostParametersPreferJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectPostParametersPreferNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectRequestThinkingJsonConverter), + + typeof(global::ResembleAI.JsonConverters.TextDetectRequestThinkingNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectMusicPostParametersPreferJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectMusicPostParametersPreferNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectMetricsLabelJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectMetricsLabelNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectItemExtraParamsDetectorJsonConverter), + + typeof(global::ResembleAI.JsonConverters.MusicDetectItemExtraParamsDetectorNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalSubmissionInputModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalSubmissionInputModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalSubmissionVerdictJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalSubmissionVerdictNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalScoreItemInputModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalScoreItemInputModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalScoreItemVerdictJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalScoreItemVerdictNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalCustomCategoryStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SignalCustomCategoryStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingPlanPlanTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingPlanPlanTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingPlanBillingIntervalJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingPlanBillingIntervalNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingPlanProductCategoryJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingPlanProductCategoryNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingSubscriptionStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingSubscriptionStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingSubscriptionProductCategoryJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingSubscriptionProductCategoryNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingWalletTransactionTransactionTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.BillingWalletTransactionTransactionTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectWatermarkAnalysisMetricsJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter), + + typeof(global::ResembleAI.JsonConverters.UpdateBillingSubscriptionProductsRequestUnprocessableEntityErrorJsonConverter), + + typeof(global::ResembleAI.JsonConverters.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityErrorJsonConverter), + + typeof(global::ResembleAI.JsonConverters.ChangeBillingPlanRequestUnprocessableEntityErrorJsonConverter), + + typeof(global::ResembleAI.JsonConverters.UpdateBillingAutoReloadRequestUnprocessableEntityErrorJsonConverter), + + typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), + })] + #pragma warning restore CS3016 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType), TypeInfoPropertyName = "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality), TypeInfoPropertyName = "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality2")] @@ -46,8 +409,13 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectImageMetricsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectImageMetrics))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoAttackTypeItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectVideoMetricsChildrenItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -61,7 +429,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DeepfakeDetectionListDetectionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality), TypeInfoPropertyName = "DetectPostRequestBodyContentMultipartFormDataSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "DetectPostResponsesContentApplicationJsonSchemaItemStatus2")] @@ -268,146 +635,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSettingsUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSettingsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SecureUploadsCreateSecureUploadResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioTimestamps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextToSpeechSynthesizeResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextCreateTranscriptResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus), TypeInfoPropertyName = "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ListAudioEnhancementsRequestBadRequestError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestBadRequestError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequestForbiddenError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus), TypeInfoPropertyName = "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GetAudioEnhancementRequestNotFoundError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesListVoicesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesCreateVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesDeleteVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesBuildVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsListRecordingsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsCreateRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsGetRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsDeleteRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsUpdateRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsGetParametersStatus), TypeInfoPropertyName = "PronunciationsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationStatus), TypeInfoPropertyName = "CustomPronunciationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsListPronunciationsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsGetPronunciationResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsListProjectsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsCreateProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsGetProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsUpdateProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsDeleteProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsListClipsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsGetClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsDeleteClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ClipsUpdateClipResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsListDuetVoicesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsCreateDuetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsUpdateDuetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsDeleteDuetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsListDuetVoicePairsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsCreateDuetVoicePairResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker), TypeInfoPropertyName = "DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetsGenerateDuetResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetAccountResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems))] @@ -463,7 +690,30 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError), TypeInfoPropertyName = "UpdateBillingAutoReloadRequestUnprocessableEntityError2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AccountGetBillingUsageResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectBatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDetectFeedbackRequest))] @@ -475,159 +725,14 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateMusicDetectionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateSignalSubmissionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateSecureUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamSynthesizeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateTranscriptRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskTranscriptQuestionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateAudioEnhancementRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BuildVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateRecordingRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateRecordingRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateTermSubstitutionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreatePronunciationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BulkCreatePronunciationsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdatePronunciationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateVoiceSettingsPresetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateVoiceSettingsPresetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateProjectRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateProjectRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateClipRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDuetVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateDuetVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateDuetVoicePairRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.GenerateDuetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?), TypeInfoPropertyName = "NullableDetectGetResponsesContentApplicationJsonSchemaItemsItemsModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectWatermarkAnalysisStatus?), TypeInfoPropertyName = "NullableDetectWatermarkAnalysisStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus?), TypeInfoPropertyName = "NullableWatermarkAudioDetectionMetricsOverallStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems?), TypeInfoPropertyName = "NullableWatermarkAudioDetectionMetricsDetectedModelVersionsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkAudioModelResultModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkAudioModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkAudioModelResultStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsOverallStatus2")] - internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsDetectedModelVersionsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectWatermarkAnalysisMetrics?), TypeInfoPropertyName = "NullableDetectWatermarkAnalysisMetrics2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectC2PaManifestValidationState?), TypeInfoPropertyName = "NullableDetectC2PaManifestValidationState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultStatus?), TypeInfoPropertyName = "NullableDetectIntelligenceResultStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectIntelligenceResultDescriptionOneOf1FraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectIntelligenceResultDescriptionOneOf1LivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectIntelligenceResultDescription?), TypeInfoPropertyName = "NullableDetectIntelligenceResultDescription2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectBatchStatus?), TypeInfoPropertyName = "NullableDetectBatchStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectFeedbackType?), TypeInfoPropertyName = "NullableDetectFeedbackType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectFeedbackVote?), TypeInfoPropertyName = "NullableDetectFeedbackVote2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectFeedbackVerdict?), TypeInfoPropertyName = "NullableDetectFeedbackVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectFeedbackMediaType?), TypeInfoPropertyName = "NullableDetectFeedbackMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType?), TypeInfoPropertyName = "NullableDetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentTier?), TypeInfoPropertyName = "NullableDetectAgentTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectAgentRunSummaryStatus?), TypeInfoPropertyName = "NullableDetectAgentRunSummaryStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType?), TypeInfoPropertyName = "NullableIntelligencePostRequestBodyContentApplicationJsonSchemaMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableIntelligencePostResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType?), TypeInfoPropertyName = "NullableIntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment?), TypeInfoPropertyName = "NullableIntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?), TypeInfoPropertyName = "NullableIntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType?), TypeInfoPropertyName = "NullableIntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment?), TypeInfoPropertyName = "NullableIntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableIntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryVisibility?), TypeInfoPropertyName = "NullableIdentitySummaryVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryIdentityType?), TypeInfoPropertyName = "NullableIdentitySummaryIdentityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType?), TypeInfoPropertyName = "NullableIdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility?), TypeInfoPropertyName = "NullableIdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityCreateIdentityRequest?), TypeInfoPropertyName = "NullableIdentityCreateIdentityRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableIdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityIdentityType?), TypeInfoPropertyName = "NullableIdentityIdentityType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityVisibility?), TypeInfoPropertyName = "NullableIdentityVisibility2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityEmbeddingsItemsModality?), TypeInfoPropertyName = "NullableIdentityEmbeddingsItemsModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality?), TypeInfoPropertyName = "NullableIdentitySearchPostRequestBodyContentApplicationJsonSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality?), TypeInfoPropertyName = "NullableIdentitySearchPostResponsesContentApplicationJsonSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkApplyPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat?), TypeInfoPropertyName = "NullableWatermarkApplyRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemOperationType?), TypeInfoPropertyName = "NullableWatermarkApplyItemOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemStatus?), TypeInfoPropertyName = "NullableWatermarkApplyItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkApplyItemModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkDetectPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemOperationType?), TypeInfoPropertyName = "NullableWatermarkDetectItemOperationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemStatus?), TypeInfoPropertyName = "NullableWatermarkDetectItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkDetectItemModelVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMetrics?), TypeInfoPropertyName = "NullableWatermarkDetectItemMetrics2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus?), TypeInfoPropertyName = "NullableTextDetectItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemPrediction?), TypeInfoPropertyName = "NullableTextDetectItemPrediction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableTextDetectPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequestThinking?), TypeInfoPropertyName = "NullableTextDetectRequestThinking2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectMusicPostParametersPrefer?), TypeInfoPropertyName = "NullableDetectMusicPostParametersPrefer2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.MusicDetectItemStatus?), TypeInfoPropertyName = "NullableMusicDetectItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.MusicDetectItemMediaType?), TypeInfoPropertyName = "NullableMusicDetectItemMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.MusicDetectMetricsLabel?), TypeInfoPropertyName = "NullableMusicDetectMetricsLabel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.MusicDetectItemExtraParamsDetector?), TypeInfoPropertyName = "NullableMusicDetectItemExtraParamsDetector2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionInputModality?), TypeInfoPropertyName = "NullableSignalSubmissionInputModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionVerdict?), TypeInfoPropertyName = "NullableSignalSubmissionVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalScoreItemInputModality?), TypeInfoPropertyName = "NullableSignalScoreItemInputModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalScoreItemVerdict?), TypeInfoPropertyName = "NullableSignalScoreItemVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalCustomCategoryStatus?), TypeInfoPropertyName = "NullableSignalCustomCategoryStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableSpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableSpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?), TypeInfoPropertyName = "NullableAudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PronunciationsGetParametersStatus?), TypeInfoPropertyName = "NullablePronunciationsGetParametersStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CustomPronunciationStatus?), TypeInfoPropertyName = "NullableCustomPronunciationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?), TypeInfoPropertyName = "NullableDuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanPlanType?), TypeInfoPropertyName = "NullableBillingPlanPlanType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanBillingInterval?), TypeInfoPropertyName = "NullableBillingPlanBillingInterval2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingPlanProductCategory?), TypeInfoPropertyName = "NullableBillingPlanProductCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingSubscriptionStatus?), TypeInfoPropertyName = "NullableBillingSubscriptionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingSubscriptionProductCategory?), TypeInfoPropertyName = "NullableBillingSubscriptionProductCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateBillingSubscriptionProductsRequestUnprocessableEntityError?), TypeInfoPropertyName = "NullableUpdateBillingSubscriptionProductsRequestUnprocessableEntityError2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError?), TypeInfoPropertyName = "NullableConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ChangeBillingPlanRequestUnprocessableEntityError?), TypeInfoPropertyName = "NullableChangeBillingPlanRequestUnprocessableEntityError2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BillingWalletTransactionTransactionType?), TypeInfoPropertyName = "NullableBillingWalletTransactionTransactionType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError?), TypeInfoPropertyName = "NullableUpdateBillingAutoReloadRequestUnprocessableEntityError2")] [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))] @@ -652,21 +757,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [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))] @@ -675,1501 +765,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static SourceGenerationContext Default { get; } = new(DefaultOptions); - - private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - internal static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectWatermarkAnalysisMetricsJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectItemMetricsJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.UpdateBillingSubscriptionProductsRequestUnprocessableEntityErrorJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityErrorJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.ChangeBillingPlanRequestUnprocessableEntityErrorJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.UpdateBillingAutoReloadRequestUnprocessableEntityErrorJsonConverter()); - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType) - - || typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?) - - || typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality) - - || typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?) - - || typeToConvert == typeof(global::ResembleAI.DetectWatermarkAnalysisStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectWatermarkAnalysisStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultStatus) - - || typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultStatus) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict) - - || typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?) - - || typeToConvert == typeof(global::ResembleAI.DetectC2PaManifestValidationState) - - || typeToConvert == typeof(global::ResembleAI.DetectC2PaManifestValidationState?) - - || typeToConvert == typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality) - - || typeToConvert == typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment) - - || typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType?) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType) - - || typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType?) - - || typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment) - - || typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment?) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality?) - - || typeToConvert == typeof(global::ResembleAI.DetectBatchStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectBatchStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackType) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackType?) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackVote) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackVote?) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackVerdict) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackVerdict?) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackMediaType) - - || typeToConvert == typeof(global::ResembleAI.DetectFeedbackMediaType?) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType) - - || typeToConvert == typeof(global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType?) - - || typeToConvert == typeof(global::ResembleAI.DetectAgentTier) - - || typeToConvert == typeof(global::ResembleAI.DetectAgentTier?) - - || typeToConvert == typeof(global::ResembleAI.DetectAgentRunSummaryStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectAgentRunSummaryStatus?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType) - - || typeToConvert == typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType) - - || typeToConvert == typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment?) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType) - - || typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType?) - - || typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.IdentitySummaryVisibility) - - || typeToConvert == typeof(global::ResembleAI.IdentitySummaryVisibility?) - - || typeToConvert == typeof(global::ResembleAI.IdentitySummaryIdentityType) - - || typeToConvert == typeof(global::ResembleAI.IdentitySummaryIdentityType?) - - || typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType) - - || typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType?) - - || typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility) - - || typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility?) - - || typeToConvert == typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality) - - || typeToConvert == typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality?) - - || typeToConvert == typeof(global::ResembleAI.IdentityIdentityType) - - || typeToConvert == typeof(global::ResembleAI.IdentityIdentityType?) - - || typeToConvert == typeof(global::ResembleAI.IdentityVisibility) - - || typeToConvert == typeof(global::ResembleAI.IdentityVisibility?) - - || typeToConvert == typeof(global::ResembleAI.IdentityEmbeddingsItemsModality) - - || typeToConvert == typeof(global::ResembleAI.IdentityEmbeddingsItemsModality?) - - || typeToConvert == typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality) - - || typeToConvert == typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality?) - - || typeToConvert == typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality) - - || typeToConvert == typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemMediaType) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemMediaType?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemOperationType) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemOperationType?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemStatus) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemModelVersion) - - || typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemModelVersion?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemMediaType) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemMediaType?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemOperationType) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemOperationType?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemStatus) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemModelVersion) - - || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemModelVersion?) - - || typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus) - - || typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction) - - || typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction?) - - || typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer) - - || typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer?) - - || typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking) - - || typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking?) - - || typeToConvert == typeof(global::ResembleAI.DetectMusicPostParametersPrefer) - - || typeToConvert == typeof(global::ResembleAI.DetectMusicPostParametersPrefer?) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectItemStatus) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectItemMediaType) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectItemMediaType?) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectMetricsLabel) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectMetricsLabel?) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectItemExtraParamsDetector) - - || typeToConvert == typeof(global::ResembleAI.MusicDetectItemExtraParamsDetector?) - - || typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality) - - || typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality?) - - || typeToConvert == typeof(global::ResembleAI.SignalSubmissionVerdict) - - || typeToConvert == typeof(global::ResembleAI.SignalSubmissionVerdict?) - - || typeToConvert == typeof(global::ResembleAI.SignalScoreItemInputModality) - - || typeToConvert == typeof(global::ResembleAI.SignalScoreItemInputModality?) - - || typeToConvert == typeof(global::ResembleAI.SignalScoreItemVerdict) - - || typeToConvert == typeof(global::ResembleAI.SignalScoreItemVerdict?) - - || typeToConvert == typeof(global::ResembleAI.SignalCustomCategoryStatus) - - || typeToConvert == typeof(global::ResembleAI.SignalCustomCategoryStatus?) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus) - - || typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?) - - || typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus) - - || typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus?) - - || typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus) - - || typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus?) - - || typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker) - - || typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?) - - || typeToConvert == typeof(global::ResembleAI.BillingPlanPlanType) - - || typeToConvert == typeof(global::ResembleAI.BillingPlanPlanType?) - - || typeToConvert == typeof(global::ResembleAI.BillingPlanBillingInterval) - - || typeToConvert == typeof(global::ResembleAI.BillingPlanBillingInterval?) - - || typeToConvert == typeof(global::ResembleAI.BillingPlanProductCategory) - - || typeToConvert == typeof(global::ResembleAI.BillingPlanProductCategory?) - - || typeToConvert == typeof(global::ResembleAI.BillingSubscriptionStatus) - - || typeToConvert == typeof(global::ResembleAI.BillingSubscriptionStatus?) - - || typeToConvert == typeof(global::ResembleAI.BillingSubscriptionProductCategory) - - || typeToConvert == typeof(global::ResembleAI.BillingSubscriptionProductCategory?) - - || typeToConvert == typeof(global::ResembleAI.BillingWalletTransactionTransactionType) - - || typeToConvert == typeof(global::ResembleAI.BillingWalletTransactionTransactionType?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType)) - { - return new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?)) - { - return new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus)) - { - return new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality)) - { - return new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality?)) - { - return new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectWatermarkAnalysisStatus)) - { - return new global::ResembleAI.JsonConverters.DetectWatermarkAnalysisStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectWatermarkAnalysisStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectWatermarkAnalysisStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsOverallStatus?)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsOverallStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioDetectionMetricsDetectedModelVersionsItems?)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultModelVersion?)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioModelResultModelVersionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultStatus)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkAudioModelResultStatus?)) - { - return new global::ResembleAI.JsonConverters.WatermarkAudioModelResultStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsOverallStatus?)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsOverallStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsDetectedModelVersionsItems?)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsDetectedModelVersionsItemsNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion?)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionModelResultModelVersionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultStatus)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionModelResultStatus?)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionModelResultStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?)) - { - return new global::ResembleAI.JsonConverters.WatermarkVisionDetectionMetricsVerdictNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectC2PaManifestValidationState)) - { - return new global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectC2PaManifestValidationState?)) - { - return new global::ResembleAI.JsonConverters.DetectC2PaManifestValidationStateNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality)) - { - return new global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?)) - { - return new global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?)) - { - return new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType)) - { - return new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType?)) - { - return new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultStatus)) - { - return new global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectIntelligenceResultStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType)) - { - return new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType?)) - { - return new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1FraudTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment)) - { - return new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment?)) - { - return new global::ResembleAI.JsonConverters.DetectIntelligenceResultDescriptionOneOf1LivenessAssessmentNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality)) - { - return new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality?)) - { - return new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectBatchStatus)) - { - return new global::ResembleAI.JsonConverters.DetectBatchStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectBatchStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackType)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackType?)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackVote)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackVoteJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackVote?)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackVoteNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackVerdict)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackVerdictJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackVerdict?)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackVerdictNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackMediaType)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectFeedbackMediaType?)) - { - return new global::ResembleAI.JsonConverters.DetectFeedbackMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType)) - { - return new global::ResembleAI.JsonConverters.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType?)) - { - return new global::ResembleAI.JsonConverters.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectAgentTier)) - { - return new global::ResembleAI.JsonConverters.DetectAgentTierJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectAgentTier?)) - { - return new global::ResembleAI.JsonConverters.DetectAgentTierNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectAgentRunSummaryStatus)) - { - return new global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectAgentRunSummaryStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectAgentRunSummaryStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType)) - { - return new global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType?)) - { - return new global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType)) - { - return new global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType?)) - { - return new global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType)) - { - return new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType?)) - { - return new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment)) - { - return new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment?)) - { - return new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType)) - { - return new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType?)) - { - return new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType)) - { - return new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType?)) - { - return new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment)) - { - return new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment?)) - { - return new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType)) - { - return new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType?)) - { - return new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySummaryVisibility)) - { - return new global::ResembleAI.JsonConverters.IdentitySummaryVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySummaryVisibility?)) - { - return new global::ResembleAI.JsonConverters.IdentitySummaryVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySummaryIdentityType)) - { - return new global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySummaryIdentityType?)) - { - return new global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType)) - { - return new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType?)) - { - return new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility)) - { - return new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility?)) - { - return new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality)) - { - return new global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality?)) - { - return new global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityIdentityType)) - { - return new global::ResembleAI.JsonConverters.IdentityIdentityTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityIdentityType?)) - { - return new global::ResembleAI.JsonConverters.IdentityIdentityTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityVisibility)) - { - return new global::ResembleAI.JsonConverters.IdentityVisibilityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityVisibility?)) - { - return new global::ResembleAI.JsonConverters.IdentityVisibilityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityEmbeddingsItemsModality)) - { - return new global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentityEmbeddingsItemsModality?)) - { - return new global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality)) - { - return new global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality?)) - { - return new global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality)) - { - return new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality?)) - { - return new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer?)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyRequestOutputFormatJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat?)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyRequestOutputFormatNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemMediaType)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemMediaType?)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemOperationType)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemOperationType?)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemOperationTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemStatus)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemStatus?)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemModelVersion)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkApplyItemModelVersion?)) - { - return new global::ResembleAI.JsonConverters.WatermarkApplyItemModelVersionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer?)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemMediaType)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemMediaType?)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemOperationType)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemOperationType?)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemOperationTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemStatus)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemStatus?)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemModelVersion)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemModelVersion?)) - { - return new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus)) - { - return new global::ResembleAI.JsonConverters.TextDetectItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus?)) - { - return new global::ResembleAI.JsonConverters.TextDetectItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction)) - { - return new global::ResembleAI.JsonConverters.TextDetectItemPredictionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction?)) - { - return new global::ResembleAI.JsonConverters.TextDetectItemPredictionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer)) - { - return new global::ResembleAI.JsonConverters.TextDetectPostParametersPreferJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer?)) - { - return new global::ResembleAI.JsonConverters.TextDetectPostParametersPreferNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking)) - { - return new global::ResembleAI.JsonConverters.TextDetectRequestThinkingJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking?)) - { - return new global::ResembleAI.JsonConverters.TextDetectRequestThinkingNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectMusicPostParametersPrefer)) - { - return new global::ResembleAI.JsonConverters.DetectMusicPostParametersPreferJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DetectMusicPostParametersPrefer?)) - { - return new global::ResembleAI.JsonConverters.DetectMusicPostParametersPreferNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectItemStatus)) - { - return new global::ResembleAI.JsonConverters.MusicDetectItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectItemStatus?)) - { - return new global::ResembleAI.JsonConverters.MusicDetectItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectItemMediaType)) - { - return new global::ResembleAI.JsonConverters.MusicDetectItemMediaTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectItemMediaType?)) - { - return new global::ResembleAI.JsonConverters.MusicDetectItemMediaTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectMetricsLabel)) - { - return new global::ResembleAI.JsonConverters.MusicDetectMetricsLabelJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectMetricsLabel?)) - { - return new global::ResembleAI.JsonConverters.MusicDetectMetricsLabelNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectItemExtraParamsDetector)) - { - return new global::ResembleAI.JsonConverters.MusicDetectItemExtraParamsDetectorJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.MusicDetectItemExtraParamsDetector?)) - { - return new global::ResembleAI.JsonConverters.MusicDetectItemExtraParamsDetectorNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality)) - { - return new global::ResembleAI.JsonConverters.SignalSubmissionInputModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality?)) - { - return new global::ResembleAI.JsonConverters.SignalSubmissionInputModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalSubmissionVerdict)) - { - return new global::ResembleAI.JsonConverters.SignalSubmissionVerdictJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalSubmissionVerdict?)) - { - return new global::ResembleAI.JsonConverters.SignalSubmissionVerdictNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalScoreItemInputModality)) - { - return new global::ResembleAI.JsonConverters.SignalScoreItemInputModalityJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalScoreItemInputModality?)) - { - return new global::ResembleAI.JsonConverters.SignalScoreItemInputModalityNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalScoreItemVerdict)) - { - return new global::ResembleAI.JsonConverters.SignalScoreItemVerdictJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalScoreItemVerdict?)) - { - return new global::ResembleAI.JsonConverters.SignalScoreItemVerdictNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalCustomCategoryStatus)) - { - return new global::ResembleAI.JsonConverters.SignalCustomCategoryStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SignalCustomCategoryStatus?)) - { - return new global::ResembleAI.JsonConverters.SignalCustomCategoryStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus?)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus?)) - { - return new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus)) - { - return new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.PronunciationsGetParametersStatus?)) - { - return new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus)) - { - return new global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.CustomPronunciationStatus?)) - { - return new global::ResembleAI.JsonConverters.CustomPronunciationStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker)) - { - return new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker?)) - { - return new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingPlanPlanType)) - { - return new global::ResembleAI.JsonConverters.BillingPlanPlanTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingPlanPlanType?)) - { - return new global::ResembleAI.JsonConverters.BillingPlanPlanTypeNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingPlanBillingInterval)) - { - return new global::ResembleAI.JsonConverters.BillingPlanBillingIntervalJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingPlanBillingInterval?)) - { - return new global::ResembleAI.JsonConverters.BillingPlanBillingIntervalNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingPlanProductCategory)) - { - return new global::ResembleAI.JsonConverters.BillingPlanProductCategoryJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingPlanProductCategory?)) - { - return new global::ResembleAI.JsonConverters.BillingPlanProductCategoryNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingSubscriptionStatus)) - { - return new global::ResembleAI.JsonConverters.BillingSubscriptionStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingSubscriptionStatus?)) - { - return new global::ResembleAI.JsonConverters.BillingSubscriptionStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingSubscriptionProductCategory)) - { - return new global::ResembleAI.JsonConverters.BillingSubscriptionProductCategoryJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingSubscriptionProductCategory?)) - { - return new global::ResembleAI.JsonConverters.BillingSubscriptionProductCategoryNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingWalletTransactionTransactionType)) - { - return new global::ResembleAI.JsonConverters.BillingWalletTransactionTransactionTypeJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.BillingWalletTransactionTransactionType?)) - { - return new global::ResembleAI.JsonConverters.BillingWalletTransactionTransactionTypeNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - - 1 => new SourceGenerationContextChunk1(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs index a814c76..4ab1612 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs @@ -165,1811 +165,1267 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems? Type33 { get; set; } + public global::ResembleAI.DetectVideoAttackTypeItems? Type33 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems? Type34 { get; set; } + public global::System.Collections.Generic.IList? Type34 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type35 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems? Type35 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetricsChildrenItems? Type36 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems? Type36 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type37 { get; set; } + public global::System.Collections.Generic.IList? Type37 { get; set; } /// /// /// - public global::ResembleAI.DetectVideoMetrics? Type38 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItems? Type38 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type39 { get; set; } + public int? Type39 { get; set; } /// /// /// - public global::ResembleAI.DetectC2PaManifestValidationState? Type40 { get; set; } + public global::System.Collections.Generic.IList? Type40 { get; set; } /// /// /// - public global::ResembleAI.DetectC2paManifest? Type41 { get; set; } + public global::ResembleAI.DetectVideoMetricsChildrenItems? Type41 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing? Type42 { get; set; } + public global::System.Collections.Generic.IList? Type42 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence? Type43 { get; set; } + public global::ResembleAI.DetectVideoMetrics? Type43 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams? Type44 { get; set; } + public global::System.Collections.Generic.IList? Type44 { get; set; } /// /// /// - public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems? Type45 { get; set; } + public global::ResembleAI.DetectC2PaManifestValidationState? Type45 { get; set; } /// /// /// - public global::System.DateTime? Type46 { get; set; } + public global::ResembleAI.DetectC2paManifest? Type46 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionListDetectionsResponse200? Type47 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing? Type47 { get; set; } /// /// /// - public int? Type48 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence? Type48 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type49 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams? Type49 { get; set; } /// /// /// - public global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? Type50 { get; set; } + public global::ResembleAI.DetectGetResponsesContentApplicationJsonSchemaItemsItems? Type50 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus? Type51 { get; set; } + public global::System.DateTime? Type51 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality? Type52 { get; set; } + public global::ResembleAI.DeepfakeDetectionListDetectionsResponse200? Type52 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus? Type53 { get; set; } + public global::System.Collections.Generic.IList? Type53 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType? Type54 { get; set; } + public global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality? Type54 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud? Type55 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus? Type55 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment? Type56 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality? Type56 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness? Type57 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus? Type57 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered? Type58 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType? Type58 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1? Type59 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud? Type59 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription? Type60 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment? Type60 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligence? Type61 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness? Type61 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItem? Type62 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered? Type62 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionCreateDetectionResponse200? Type63 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1? Type63 { get; set; } /// /// /// - public global::ResembleAI.Error? Type64 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription? Type64 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type65 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligence? Type65 { get; set; } /// /// /// - public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaDetails? Type66 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItem? Type66 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectionRequestPaymentRequiredError? Type67 { get; set; } + public global::ResembleAI.DeepfakeDetectionCreateDetectionResponse200? Type67 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type68 { get; set; } + public global::ResembleAI.Error? Type68 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type69 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type69 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing? Type70 { get; set; } + public global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaDetails? Type70 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultStatus? Type71 { get; set; } + public global::ResembleAI.CreateDetectionRequestPaymentRequiredError? Type71 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType? Type72 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type72 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Fraud? Type73 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type73 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment? Type74 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing? Type74 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Liveness? Type75 { get; set; } + public global::ResembleAI.DetectIntelligenceResultStatus? Type75 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1DigitallyAltered? Type76 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1FraudType? Type76 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescription1? Type77 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Fraud? Type77 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResultDescription? Type78 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1LivenessAssessment? Type78 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceResult? Type79 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1Liveness? Type79 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type80 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescriptionOneOf1DigitallyAltered? Type80 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence? Type81 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescription1? Type81 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality? Type82 { get; set; } + public global::ResembleAI.DetectIntelligenceResultDescription? Type82 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItem? Type83 { get; set; } + public global::ResembleAI.DetectIntelligenceResult? Type83 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionGetDetectionResponse200? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionDeleteDetectionResponse200? Type85 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence? Type85 { get; set; } /// /// /// - public global::ResembleAI.DetectBatchStatus? Type86 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality? Type86 { get; set; } /// /// /// - public global::ResembleAI.DetectBatch? Type87 { get; set; } + public global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItem? Type87 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionCreateDetectBatchResponse202? Type88 { get; set; } + public global::ResembleAI.DeepfakeDetectionGetDetectionResponse200? Type88 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionGetDetectBatchResponse200? Type89 { get; set; } + public global::ResembleAI.DeepfakeDetectionDeleteDetectionResponse200? Type89 { get; set; } /// /// /// - public global::ResembleAI.DetectFeedbackType? Type90 { get; set; } + public global::ResembleAI.DetectBatchStatus? Type90 { get; set; } /// /// /// - public global::ResembleAI.DetectFeedbackVote? Type91 { get; set; } + public global::ResembleAI.DetectBatch? Type91 { get; set; } /// /// /// - public global::ResembleAI.DetectFeedbackVerdict? Type92 { get; set; } + public global::ResembleAI.DeepfakeDetectionCreateDetectBatchResponse202? Type92 { get; set; } /// /// /// - public global::ResembleAI.DetectFeedbackMediaType? Type93 { get; set; } + public global::ResembleAI.DeepfakeDetectionGetDetectBatchResponse200? Type93 { get; set; } /// /// /// - public global::ResembleAI.DetectFeedback? Type94 { get; set; } + public global::ResembleAI.DetectFeedbackType? Type94 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionGetDetectFeedbackResponse200? Type95 { get; set; } + public global::ResembleAI.DetectFeedbackVote? Type95 { get; set; } /// /// /// - public global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType? Type96 { get; set; } + public global::ResembleAI.DetectFeedbackVerdict? Type96 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionCreateDetectFeedbackResponse200? Type97 { get; set; } + public global::ResembleAI.DetectFeedbackMediaType? Type97 { get; set; } /// /// /// - public global::ResembleAI.DeepfakeDetectionDeleteDetectFeedbackResponse200? Type98 { get; set; } + public global::ResembleAI.DetectFeedback? Type98 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentTier? Type99 { get; set; } + public global::ResembleAI.DeepfakeDetectionGetDetectFeedbackResponse200? Type99 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentCapabilities? Type100 { get; set; } + public global::ResembleAI.DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType? Type100 { get; set; } /// /// /// - public global::ResembleAI.DetectAgent? Type101 { get; set; } + public global::ResembleAI.DeepfakeDetectionCreateDetectFeedbackResponse200? Type101 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentsListDetectAgentsResponse200? Type102 { get; set; } + public global::ResembleAI.DeepfakeDetectionDeleteDetectFeedbackResponse200? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::ResembleAI.DetectAgentTier? Type103 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentRunSummaryStatus? Type104 { get; set; } + public global::ResembleAI.DetectAgentCapabilities? Type104 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentRunResultVerdict? Type105 { get; set; } + public global::ResembleAI.DetectAgent? Type105 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentRunResult? Type106 { get; set; } + public global::ResembleAI.DetectAgentsListDetectAgentsResponse200? Type106 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentRunSummaryInputs? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentRunSummary? Type108 { get; set; } + public global::ResembleAI.DetectAgentRunSummaryStatus? Type108 { get; set; } /// /// /// - public global::System.Guid? Type109 { get; set; } + public global::ResembleAI.DetectAgentRunResultVerdict? Type109 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200? Type110 { get; set; } + public global::ResembleAI.DetectAgentRunResult? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::ResembleAI.DetectAgentRunSummaryInputs? Type111 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentRun? Type112 { get; set; } + public global::ResembleAI.DetectAgentRunSummary? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::System.Guid? Type113 { get; set; } /// /// /// - public global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200? Type114 { get; set; } + public global::ResembleAI.DetectAgentsListDetectAgentInvestigationRunsResponse200? Type114 { get; set; } /// /// /// - public global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType? Type115 { get; set; } + public global::System.Collections.Generic.IList? Type115 { get; set; } /// /// /// - public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType? Type116 { get; set; } + public global::ResembleAI.DetectAgentRun? Type116 { get; set; } /// /// /// - public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItem? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } /// /// /// - public global::ResembleAI.IntelligenceRunIntelligenceResponse200? Type118 { get; set; } + public global::ResembleAI.DetectAgentsGetDetectAgentInvestigationRunResponse200? Type118 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType? Type119 { get; set; } + public global::ResembleAI.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType? Type119 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud? Type120 { get; set; } + public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType? Type120 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment? Type121 { get; set; } + public global::ResembleAI.IntelligencePostResponsesContentApplicationJsonSchemaItem? Type121 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness? Type122 { get; set; } + public global::ResembleAI.IntelligenceRunIntelligenceResponse200? Type122 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered? Type123 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType? Type123 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription? Type124 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud? Type124 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType? Type125 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment? Type125 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems? Type126 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness? Type126 { get; set; } /// /// /// - public global::ResembleAI.IntelligenceListIntelligencesResponse200? Type127 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered? Type127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type128 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription? Type128 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType? Type129 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType? Type129 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud? Type130 { get; set; } + public global::ResembleAI.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems? Type130 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment? Type131 { get; set; } + public global::ResembleAI.IntelligenceListIntelligencesResponse200? Type131 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered? Type133 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType? Type133 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription? Type134 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud? Type134 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type135 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment? Type135 { get; set; } /// /// /// - public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem? Type136 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness? Type136 { get; set; } /// /// /// - public global::ResembleAI.IntelligenceGetIntelligenceResponse200? Type137 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered? Type137 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus? Type138 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription? Type138 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem? Type139 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType? Type139 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceAskDetectIntelligenceQuestionResponse202? Type140 { get; set; } + public global::ResembleAI.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem? Type140 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type141 { get; set; } + public global::ResembleAI.IntelligenceGetIntelligenceResponse200? Type141 { get; set; } /// /// /// - public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type142 { get; set; } + public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus? Type142 { get; set; } /// /// /// - public global::ResembleAI.DetectIntelligenceGetDetectIntelligenceQuestionResponse200? Type143 { get; set; } + public global::ResembleAI.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem? Type143 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults? Type144 { get; set; } + public global::ResembleAI.DetectIntelligenceAskDetectIntelligenceQuestionResponse202? Type144 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems? Type145 { get; set; } + public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type145 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingListAudioSourceTracingsResponse200? Type146 { get; set; } + public global::ResembleAI.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type146 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type147 { get; set; } + public global::ResembleAI.DetectIntelligenceGetDetectIntelligenceQuestionResponse200? Type147 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults? Type148 { get; set; } + public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults? Type148 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem? Type149 { get; set; } + public global::ResembleAI.AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems? Type149 { get; set; } /// /// /// - public global::ResembleAI.AudioSourceTracingGetAudioSourceTracingResponse200? Type150 { get; set; } + public global::ResembleAI.AudioSourceTracingListAudioSourceTracingsResponse200? Type150 { get; set; } /// /// /// - public global::ResembleAI.IdentitySummaryVisibility? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::ResembleAI.IdentitySummaryIdentityType? Type152 { get; set; } + public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults? Type152 { get; set; } /// /// /// - public global::ResembleAI.IdentitySummary? Type153 { get; set; } + public global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem? Type153 { get; set; } /// /// /// - public global::ResembleAI.IdentityListIdentitiesResponse200? Type154 { get; set; } + public global::ResembleAI.AudioSourceTracingGetAudioSourceTracingResponse200? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::ResembleAI.IdentitySummaryVisibility? Type155 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityRequest0? Type156 { get; set; } + public global::ResembleAI.IdentitySummaryIdentityType? Type156 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? Type157 { get; set; } + public global::ResembleAI.IdentitySummary? Type157 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? Type158 { get; set; } + public global::ResembleAI.IdentityListIdentitiesResponse200? Type158 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityRequest1? Type160 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest0? Type160 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityRequest? Type161 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? Type161 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityResponse200? Type162 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? Type162 { get; set; } /// /// /// - public global::ResembleAI.IdentityDeleteIdentityResponse200? Type163 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? Type163 { get; set; } /// /// /// - public global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? Type164 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest1? Type164 { get; set; } /// /// /// - public global::ResembleAI.IdentityIdentityType? Type165 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest? Type165 { get; set; } /// /// /// - public global::ResembleAI.IdentityVisibility? Type166 { get; set; } + public global::ResembleAI.IdentityCreateIdentityResponse200? Type166 { get; set; } /// /// /// - public global::ResembleAI.IdentityAttachment? Type167 { get; set; } + public global::ResembleAI.IdentityDeleteIdentityResponse200? Type167 { get; set; } /// /// /// - public global::ResembleAI.IdentityEmbeddingsItemsModality? Type168 { get; set; } + public global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? Type168 { get; set; } /// /// /// - public global::ResembleAI.IdentityEmbeddingsItems? Type169 { get; set; } + public global::ResembleAI.IdentityIdentityType? Type169 { get; set; } /// /// /// - public global::ResembleAI.IdentityProjectsItems? Type170 { get; set; } + public global::ResembleAI.IdentityVisibility? Type170 { get; set; } /// /// /// - public global::ResembleAI.Identity? Type171 { get; set; } + public global::ResembleAI.IdentityAttachment? Type171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type172 { get; set; } + public global::ResembleAI.IdentityEmbeddingsItemsModality? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type173 { get; set; } + public global::ResembleAI.IdentityEmbeddingsItems? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::ResembleAI.IdentityProjectsItems? Type174 { get; set; } /// /// /// - public global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204? Type175 { get; set; } + public global::ResembleAI.Identity? Type175 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type177 { get; set; } + public global::System.Collections.Generic.IList? Type177 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type179 { get; set; } + public global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type180 { get; set; } + public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type180 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type181 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type181 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyRequestOutputFormat? Type182 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type182 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyRequest? Type183 { get; set; } + public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type183 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemMediaType? Type184 { get; set; } + public global::System.Collections.Generic.Dictionary? Type184 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemOperationType? Type185 { get; set; } + public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type185 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemStatus? Type186 { get; set; } + public global::ResembleAI.WatermarkApplyRequestOutputFormat? Type186 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItemModelVersion? Type187 { get; set; } + public global::ResembleAI.WatermarkApplyRequest? Type187 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyMetrics? Type188 { get; set; } + public global::ResembleAI.WatermarkApplyItemMediaType? Type188 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyItem? Type189 { get; set; } + public global::ResembleAI.WatermarkApplyItemOperationType? Type189 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyResponse? Type190 { get; set; } + public global::ResembleAI.WatermarkApplyItemStatus? Type190 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type191 { get; set; } + public global::ResembleAI.WatermarkApplyItemModelVersion? Type191 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectRequest? Type192 { get; set; } + public global::ResembleAI.WatermarkApplyMetrics? Type192 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemMediaType? Type193 { get; set; } + public global::ResembleAI.WatermarkApplyItem? Type193 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemOperationType? Type194 { get; set; } + public global::ResembleAI.WatermarkApplyResponse? Type194 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemStatus? Type195 { get; set; } + public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type195 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemModelVersion? Type196 { get; set; } + public global::ResembleAI.WatermarkDetectRequest? Type196 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItemMetrics? Type197 { get; set; } + public global::ResembleAI.WatermarkDetectItemMediaType? Type197 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectItem? Type198 { get; set; } + public global::ResembleAI.WatermarkDetectItemOperationType? Type198 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectResponse? Type199 { get; set; } + public global::ResembleAI.WatermarkDetectItemStatus? Type199 { get; set; } /// /// /// - public global::ResembleAI.TextDetectItemStatus? Type200 { get; set; } + public global::ResembleAI.WatermarkDetectItemModelVersion? Type200 { get; set; } /// /// /// - public global::ResembleAI.TextDetectItemPrediction? Type201 { get; set; } + public global::ResembleAI.WatermarkDetectItemMetrics? Type201 { get; set; } /// /// /// - public global::ResembleAI.TextDetectItem? Type202 { get; set; } + public global::ResembleAI.WatermarkDetectItem? Type202 { get; set; } /// /// /// - public global::ResembleAI.TextDetectListResponse? Type203 { get; set; } + public global::ResembleAI.WatermarkDetectResponse? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::ResembleAI.TextDetectItemStatus? Type204 { get; set; } /// /// /// - public global::ResembleAI.TextDetectPostParametersPrefer? Type205 { get; set; } + public global::ResembleAI.TextDetectItemPrediction? Type205 { get; set; } /// /// /// - public global::ResembleAI.TextDetectRequestThinking? Type206 { get; set; } + public global::ResembleAI.TextDetectItem? Type206 { get; set; } /// /// /// - public global::ResembleAI.TextDetectRequest? Type207 { get; set; } + public global::ResembleAI.TextDetectListResponse? Type207 { get; set; } /// /// /// - public global::ResembleAI.TextDetectResponse? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::ResembleAI.DetectMusicPostParametersPrefer? Type209 { get; set; } + public global::ResembleAI.TextDetectPostParametersPrefer? Type209 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectItemStatus? Type210 { get; set; } + public global::ResembleAI.TextDetectRequestThinking? Type210 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectItemMediaType? Type211 { get; set; } + public global::ResembleAI.TextDetectRequest? Type211 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectMetricsLabel? Type212 { get; set; } + public global::ResembleAI.TextDetectResponse? Type212 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectMetrics? Type213 { get; set; } + public global::ResembleAI.DetectMusicPostParametersPrefer? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::ResembleAI.MusicDetectItemStatus? Type214 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectItemExtraParamsDetector? Type215 { get; set; } + public global::ResembleAI.MusicDetectItemMediaType? Type215 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectItemExtraParams? Type216 { get; set; } + public global::ResembleAI.MusicDetectMetricsLabel? Type216 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectItem? Type217 { get; set; } + public global::ResembleAI.MusicDetectMetrics? Type217 { get; set; } /// /// /// - public global::ResembleAI.MusicDetectResponse? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmissionInputModality? Type219 { get; set; } + public global::ResembleAI.MusicDetectItemExtraParamsDetector? Type219 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmissionVerdict? Type220 { get; set; } + public global::ResembleAI.MusicDetectItemExtraParams? Type220 { get; set; } /// /// /// - public global::ResembleAI.SignalCategoryScore? Type221 { get; set; } + public global::ResembleAI.MusicDetectItem? Type221 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreItemInputModality? Type222 { get; set; } + public global::ResembleAI.MusicDetectResponse? Type222 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreItemVerdict? Type223 { get; set; } + public global::ResembleAI.SignalSubmissionInputModality? Type223 { get; set; } /// /// /// - public global::ResembleAI.SignalTopMatch? Type224 { get; set; } + public global::ResembleAI.SignalSubmissionVerdict? Type224 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreItem? Type225 { get; set; } + public global::ResembleAI.SignalCategoryScore? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::ResembleAI.SignalScoreItemInputModality? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::ResembleAI.SignalScoreItemVerdict? Type227 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmission? Type228 { get; set; } + public global::ResembleAI.SignalTopMatch? Type228 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmissionListResponse? Type229 { get; set; } + public global::ResembleAI.SignalScoreItem? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::ResembleAI.SignalError? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public long? Type232 { get; set; } + public global::ResembleAI.SignalSubmission? Type232 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreResponse? Type233 { get; set; } + public global::ResembleAI.SignalSubmissionListResponse? Type233 { get; set; } /// /// /// - public global::ResembleAI.SignalSuccessResponse? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::ResembleAI.SignalSettings? Type235 { get; set; } + public global::ResembleAI.SignalError? Type235 { get; set; } /// /// /// - public global::ResembleAI.SignalBuiltInCategory? Type236 { get; set; } + public long? Type236 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryStatus? Type237 { get; set; } + public global::ResembleAI.SignalScoreResponse? Type237 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryOverlapsItems? Type238 { get; set; } + public global::ResembleAI.SignalSuccessResponse? Type238 { get; set; } /// /// /// - public global::ResembleAI.SignalScenario? Type239 { get; set; } + public global::ResembleAI.SignalSettings? Type239 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategory? Type240 { get; set; } + public global::ResembleAI.SignalBuiltInCategory? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::ResembleAI.SignalCustomCategoryStatus? Type241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type242 { get; set; } + public global::ResembleAI.SignalCustomCategoryOverlapsItems? Type242 { get; set; } /// /// /// - public global::ResembleAI.SignalCalibrationWarningsItems? Type243 { get; set; } + public global::ResembleAI.SignalScenario? Type243 { get; set; } /// /// /// - public global::ResembleAI.SignalCalibration? Type244 { get; set; } + public global::ResembleAI.SignalCustomCategory? Type244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryListResponse? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::ResembleAI.SignalCalibrationWarningsItems? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::ResembleAI.SignalCalibration? Type248 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryCreateRequest? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryResponse? Type250 { get; set; } + public global::ResembleAI.SignalCustomCategoryListResponse? Type250 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryUpdateRequest? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::ResembleAI.SignalSettingsUpdateRequest? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// /// - public global::ResembleAI.SignalSettingsResponse? Type253 { get; set; } + public global::ResembleAI.SignalCustomCategoryCreateRequest? Type253 { get; set; } /// /// /// - public global::ResembleAI.SecureUploadsCreateSecureUploadResponse200? Type254 { get; set; } + public global::ResembleAI.SignalCustomCategoryResponse? Type254 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? Type255 { get; set; } + public global::ResembleAI.SignalCustomCategoryUpdateRequest? Type255 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? Type256 { get; set; } + public global::ResembleAI.SignalSettingsUpdateRequest? Type256 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? Type257 { get; set; } + public global::ResembleAI.SignalSettingsResponse? Type257 { get; set; } /// /// /// - public global::ResembleAI.AudioTimestamps? Type258 { get; set; } + public global::ResembleAI.SecureUploadsCreateSecureUploadResponse200? Type258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type259 { get; set; } + public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type259 { get; set; } /// /// /// - public global::ResembleAI.TextToSpeechSynthesizeResponse200? Type260 { get; set; } + public global::ResembleAI.AccountGetAccountResponse200? Type260 { get; set; } /// /// /// - public byte[]? Type261 { get; set; } + public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type261 { get; set; } /// /// /// - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? Type262 { get; set; } + public global::ResembleAI.AccountGetTeamsResponse200? Type262 { get; set; } /// /// /// - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? Type264 { get; set; } + public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type264 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? Type265 { get; set; } + public global::ResembleAI.AccountGetTeamResponse200? Type265 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextListTranscriptsResponse200? Type266 { get; set; } + public global::ResembleAI.BillingPlanPlanType? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::ResembleAI.BillingPlanBillingInterval? Type267 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? Type268 { get; set; } + public global::ResembleAI.BillingPlanFamily? Type268 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? Type269 { get; set; } + public global::ResembleAI.BillingPlanProductCategory? Type269 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextCreateTranscriptResponse200? Type270 { get; set; } + public global::ResembleAI.BillingProductRateTier? Type270 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type271 { get; set; } + public global::ResembleAI.BillingProductFamily? Type271 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? Type272 { get; set; } + public global::ResembleAI.BillingPlanProduct? Type272 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::ResembleAI.BillingPlan? Type274 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetTranscriptResponse200? Type275 { get; set; } + public global::System.Collections.Generic.IList? Type275 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? Type276 { get; set; } + public global::ResembleAI.BillingPlansResponse? Type276 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? Type278 { get; set; } + public global::ResembleAI.BillingError? Type278 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? Type279 { get; set; } + public global::ResembleAI.BillingPlanResponse? Type279 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? Type280 { get; set; } + public global::ResembleAI.BillingSubscriptionStatus? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::ResembleAI.BillingSubscriptionProductCategory? Type281 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type282 { get; set; } + public global::ResembleAI.BillingSubscriptionProduct? Type282 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? Type283 { get; set; } + public global::ResembleAI.BillingSubscriptionPlanProduct? Type283 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type284 { get; set; } + public global::ResembleAI.BillingSubscriptionItem? Type284 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? Type285 { get; set; } + public global::ResembleAI.BillingSubscription? Type285 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::ResembleAI.BillingSubscriptionResponse? Type287 { get; set; } /// /// /// - public global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? Type288 { get; set; } + public global::ResembleAI.BillingForbiddenError? Type288 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? Type289 { get; set; } + public global::ResembleAI.BillingProductQuantityChange? Type289 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? Type290 { get; set; } + public global::ResembleAI.BillingUpdateProductsRequest? Type290 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? Type291 { get; set; } + public global::System.Collections.Generic.IList? Type291 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? Type292 { get; set; } + public global::ResembleAI.BillingPaymentActionRequired? Type292 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? Type293 { get; set; } + public global::ResembleAI.BillingValidationErrors? Type293 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? Type294 { get; set; } + public global::ResembleAI.UpdateBillingSubscriptionProductsRequestUnprocessableEntityError? Type294 { get; set; } /// /// /// - public global::ResembleAI.GetAudioEnhancementRequestNotFoundError? Type295 { get; set; } + public global::ResembleAI.BillingConfirmPaymentRequest? Type295 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type296 { get; set; } + public global::ResembleAI.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError? Type296 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type297 { get; set; } + public global::ResembleAI.BillingChangePlanRequest? Type297 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type298 { get; set; } + public global::System.Collections.Generic.Dictionary? Type298 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type299 { get; set; } + public global::ResembleAI.ChangeBillingPlanRequestUnprocessableEntityError? Type299 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type300 { get; set; } + public global::ResembleAI.BillingWallet? Type300 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type301 { get; set; } + public global::ResembleAI.BillingWalletResponse? Type301 { get; set; } /// /// /// - public global::ResembleAI.VoicesListVoicesResponse200? Type302 { get; set; } + public global::ResembleAI.BillingWalletTransactionTransactionType? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::ResembleAI.BillingWalletTransaction? Type303 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type304 { get; set; } + public global::ResembleAI.BillingPagination? Type304 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type305 { get; set; } + public global::ResembleAI.BillingTransactionsResponse? Type305 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type306 { get; set; } + public global::System.Collections.Generic.IList? Type306 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type307 { get; set; } + public global::ResembleAI.BillingAutoReloadSetting? Type307 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type308 { get; set; } + public global::ResembleAI.BillingAutoReloadResponse? Type308 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type309 { get; set; } + public global::ResembleAI.BillingUpdateAutoReloadRequest? Type309 { get; set; } /// /// /// - public global::ResembleAI.VoicesCreateVoiceResponse200? Type310 { get; set; } + public global::ResembleAI.BillingWalletUpdateBillingAutoReloadResponse200? Type310 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type311 { get; set; } + public global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError? Type311 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type312 { get; set; } + public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type312 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type313 { get; set; } + public global::ResembleAI.AccountGetBillingUsageResponse200? Type313 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type314 { get; set; } + public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type314 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type315 { get; set; } + public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type315 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type316 { get; set; } + public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type316 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetVoiceResponse200? Type317 { get; set; } + public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type317 { get; set; } /// /// /// - public global::ResembleAI.VoicesDeleteVoiceResponse200? Type318 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type318 { get; set; } /// /// /// - public global::ResembleAI.VoicesBuildVoiceResponse200? Type319 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type319 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type320 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type320 { get; set; } /// /// /// - public global::ResembleAI.RecordingsListRecordingsResponse200? Type321 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type321 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type322 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type322 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type323 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type323 { get; set; } /// /// /// - public global::ResembleAI.RecordingsCreateRecordingResponse200? Type324 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type324 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type325 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type325 { get; set; } /// /// /// - public global::ResembleAI.RecordingsGetRecordingResponse200? Type326 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type326 { get; set; } /// /// /// - public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type327 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type327 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type328 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type328 { get; set; } /// /// /// - public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type329 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type329 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type330 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type330 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type331 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type331 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type332 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type332 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type333 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type333 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type334 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type334 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type335 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type335 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type336 { get; set; } + public global::ResembleAI.CreateDetectionRequest? Type336 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type337 { get; set; } + public byte[]? Type337 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsGetParametersStatus? Type338 { get; set; } + public global::ResembleAI.CreateDetectBatchRequest? Type338 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationStatus? Type339 { get; set; } + public global::System.Collections.Generic.IList? Type339 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciation? Type340 { get; set; } + public global::ResembleAI.CreateDetectFeedbackRequest? Type340 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type341 { get; set; } + public global::ResembleAI.RunDetectAgentInvestigationRequest? Type341 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type342 { get; set; } + public global::ResembleAI.RunIntelligenceRequest? Type342 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type343 { get; set; } + public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type343 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type344 { get; set; } + public global::ResembleAI.CreateIdentityAttachmentRequest? Type344 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type345 { get; set; } + public global::ResembleAI.SearchIdentitiesRequest? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::ResembleAI.CreateMusicDetectionRequest? Type346 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type347 { get; set; } + public global::ResembleAI.CreateSignalSubmissionRequest? Type347 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type348 { get; set; } - /// - /// - /// - public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type349 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type350 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type351 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type352 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type353 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type354 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type355 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type356 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type357 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type358 { get; set; } - /// - /// - /// - public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type359 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type360 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsListProjectsResponse200? Type361 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type362 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type363 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsCreateProjectResponse200? Type364 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type365 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsGetProjectResponse200? Type366 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type367 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsUpdateProjectResponse200? Type368 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsDeleteProjectResponse200? Type369 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type370 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsListClipsResponse200? Type371 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type372 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type373 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsGetClipResponse200? Type374 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsDeleteClipResponse200? Type375 { get; set; } - /// - /// - /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type376 { get; set; } - /// - /// - /// - public global::ResembleAI.ClipsUpdateClipResponse200? Type377 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type378 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsListDuetVoicesResponse200? Type379 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type380 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type381 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type382 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type383 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type384 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type385 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type386 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type387 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type388 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type389 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type390 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type391 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type392 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type393 { get; set; } - /// - /// - /// - public global::ResembleAI.DuetsGenerateDuetResponse200? Type394 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type395 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetAccountResponse200? Type396 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type397 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetTeamsResponse200? Type398 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type399 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type400 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetTeamResponse200? Type401 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlanPlanType? Type402 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlanBillingInterval? Type403 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlanFamily? Type404 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlanProductCategory? Type405 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingProductRateTier? Type406 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingProductFamily? Type407 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlanProduct? Type408 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type409 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlan? Type410 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type411 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlansResponse? Type412 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type413 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingError? Type414 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPlanResponse? Type415 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscriptionStatus? Type416 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscriptionProductCategory? Type417 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscriptionProduct? Type418 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscriptionPlanProduct? Type419 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscriptionItem? Type420 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscription? Type421 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type422 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingSubscriptionResponse? Type423 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingForbiddenError? Type424 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingProductQuantityChange? Type425 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingUpdateProductsRequest? Type426 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type427 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPaymentActionRequired? Type428 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingValidationErrors? Type429 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateBillingSubscriptionProductsRequestUnprocessableEntityError? Type430 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingConfirmPaymentRequest? Type431 { get; set; } - /// - /// - /// - public global::ResembleAI.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError? Type432 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingChangePlanRequest? Type433 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type434 { get; set; } - /// - /// - /// - public global::ResembleAI.ChangeBillingPlanRequestUnprocessableEntityError? Type435 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingWallet? Type436 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingWalletResponse? Type437 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingWalletTransactionTransactionType? Type438 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingWalletTransaction? Type439 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingPagination? Type440 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingTransactionsResponse? Type441 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type442 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingAutoReloadSetting? Type443 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingAutoReloadResponse? Type444 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingUpdateAutoReloadRequest? Type445 { get; set; } - /// - /// - /// - public global::ResembleAI.BillingWalletUpdateBillingAutoReloadResponse200? Type446 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError? Type447 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type448 { get; set; } - /// - /// - /// - public global::ResembleAI.AccountGetBillingUsageResponse200? Type449 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDetectionRequest? Type450 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDetectBatchRequest? Type451 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type452 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDetectFeedbackRequest? Type453 { get; set; } - /// - /// - /// - public global::ResembleAI.RunDetectAgentInvestigationRequest? Type454 { get; set; } - /// - /// - /// - public global::ResembleAI.RunIntelligenceRequest? Type455 { get; set; } - /// - /// - /// - public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type456 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateIdentityAttachmentRequest? Type457 { get; set; } - /// - /// - /// - public global::ResembleAI.SearchIdentitiesRequest? Type458 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateMusicDetectionRequest? Type459 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateSignalSubmissionRequest? Type460 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateSecureUploadRequest? Type461 { get; set; } - /// - /// - /// - public global::ResembleAI.SynthesizeRequest? Type462 { get; set; } - /// - /// - /// - public global::ResembleAI.StreamSynthesizeRequest? Type463 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateTranscriptRequest? Type464 { get; set; } - /// - /// - /// - public global::ResembleAI.AskTranscriptQuestionRequest? Type465 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateAudioEnhancementRequest? Type466 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateVoiceRequest? Type467 { get; set; } - /// - /// - /// - public global::ResembleAI.BuildVoiceRequest? Type468 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateRecordingRequest? Type469 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateRecordingRequest? Type470 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateTermSubstitutionRequest? Type471 { get; set; } - /// - /// - /// - public global::ResembleAI.CreatePronunciationRequest? Type472 { get; set; } - /// - /// - /// - public global::ResembleAI.BulkCreatePronunciationsRequest? Type473 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdatePronunciationRequest? Type474 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type475 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type476 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateProjectRequest? Type477 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateProjectRequest? Type478 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateClipRequest? Type479 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDuetVoiceRequest? Type480 { get; set; } - /// - /// - /// - public global::ResembleAI.UpdateDuetVoiceRequest? Type481 { get; set; } - /// - /// - /// - public global::ResembleAI.CreateDuetVoicePairRequest? Type482 { get; set; } - /// - /// - /// - public global::ResembleAI.GenerateDuetRequest? Type483 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type484 { get; set; } + public global::ResembleAI.CreateSecureUploadRequest? Type348 { get; set; } /// /// @@ -1998,198 +1454,142 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary>? ListType10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType13 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType16 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType17 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType18 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType19 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AskTranscriptQuestionRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AskTranscriptQuestionRequest.Json.g.cs deleted file mode 100644 index 18f8c0d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AskTranscriptQuestionRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AskTranscriptQuestionRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AskTranscriptQuestionRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AskTranscriptQuestionRequest), - jsonSerializerContext) as global::ResembleAI.AskTranscriptQuestionRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AskTranscriptQuestionRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.AskTranscriptQuestionRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.AskTranscriptQuestionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AskTranscriptQuestionRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AskTranscriptQuestionRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AskTranscriptQuestionRequest.g.cs deleted file mode 100644 index 98a6e6b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AskTranscriptQuestionRequest.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AskTranscriptQuestionRequest - { - /// - /// Question to ask about the transcript - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Query { 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. - /// - /// - /// Question to ask about the transcript - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AskTranscriptQuestionRequest( - string query) - { - this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); - } - - /// - /// Initializes a new instance of the class. - /// - public AskTranscriptQuestionRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementCreateAudioEnhancementResponse202.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementCreateAudioEnhancementResponse202.Json.g.cs deleted file mode 100644 index 6d502a6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementCreateAudioEnhancementResponse202.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioEnhancementCreateAudioEnhancementResponse202 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202), - jsonSerializerContext) as global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementCreateAudioEnhancementResponse202.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementCreateAudioEnhancementResponse202.g.cs deleted file mode 100644 index f633864..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementCreateAudioEnhancementResponse202.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AudioEnhancementCreateAudioEnhancementResponse202 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter))] - public global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? Status { 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 AudioEnhancementCreateAudioEnhancementResponse202( - bool? success, - string? uuid, - global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? status) - { - this.Success = success; - this.Uuid = uuid; - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public AudioEnhancementCreateAudioEnhancementResponse202() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementGetAudioEnhancementResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementGetAudioEnhancementResponse200.Json.g.cs deleted file mode 100644 index dccf2e7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementGetAudioEnhancementResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioEnhancementGetAudioEnhancementResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200), - jsonSerializerContext) as global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementGetAudioEnhancementResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementGetAudioEnhancementResponse200.g.cs deleted file mode 100644 index 3b55a2e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementGetAudioEnhancementResponse200.g.cs +++ /dev/null @@ -1,85 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AudioEnhancementGetAudioEnhancementResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter))] - public global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? Status { get; set; } - - /// - /// Download URL. Only present when status is completed. This is a temporary signed URL. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enhanced_audio_url")] - public string? EnhancedAudioUrl { get; set; } - - /// - /// Human-readable error. Only present when status is failed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error_message")] - public string? ErrorMessage { 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. - /// - /// - /// - /// - /// - /// Download URL. Only present when status is completed. This is a temporary signed URL. - /// - /// - /// Human-readable error. Only present when status is failed. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AudioEnhancementGetAudioEnhancementResponse200( - bool? success, - string? uuid, - global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? status, - string? enhancedAudioUrl, - string? errorMessage) - { - this.Success = success; - this.Uuid = uuid; - this.Status = status; - this.EnhancedAudioUrl = enhancedAudioUrl; - this.ErrorMessage = errorMessage; - } - - /// - /// Initializes a new instance of the class. - /// - public AudioEnhancementGetAudioEnhancementResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementListAudioEnhancementsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementListAudioEnhancementsResponse200.Json.g.cs deleted file mode 100644 index c27fc37..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementListAudioEnhancementsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioEnhancementListAudioEnhancementsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200), - jsonSerializerContext) as global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementListAudioEnhancementsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementListAudioEnhancementsResponse200.g.cs deleted file mode 100644 index 5480932..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementListAudioEnhancementsResponse200.g.cs +++ /dev/null @@ -1,89 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AudioEnhancementListAudioEnhancementsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page")] - public int? Page { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("num_pages")] - public int? NumPages { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page_size")] - public int? PageSize { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] - public int? TotalCount { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 AudioEnhancementListAudioEnhancementsResponse200( - bool? success, - int? page, - int? numPages, - int? pageSize, - int? totalCount, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Page = page; - this.NumPages = numPages; - this.PageSize = pageSize; - this.TotalCount = totalCount; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public AudioEnhancementListAudioEnhancementsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.g.cs deleted file mode 100644 index 8402e18..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus - { - /// - /// - /// - Completed, - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus value) - { - return value switch - { - AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Completed => "completed", - AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Failed => "failed", - AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Pending => "pending", - AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Processing => "processing", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? ToEnum(string value) - { - return value switch - { - "completed" => AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Completed, - "failed" => AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Failed, - "pending" => AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Pending, - "processing" => AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus.Processing, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 8a7c0de..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 1797cc0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,114 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter))] - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error_message")] - public string? ErrorMessage { get; set; } - - /// - /// Whether background noise removal was applied. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("remove_noise")] - public bool? RemoveNoise { get; set; } - - /// - /// Whether loudness normalization was applied. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("normalize")] - public bool? Normalize { get; set; } - - /// - /// Whether studio-quality enhancement was applied. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("studio_sound")] - public bool? StudioSound { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("original_audio_url")] - public string? OriginalAudioUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enhanced_audio_url")] - public string? EnhancedAudioUrl { 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. - /// - /// - /// - /// - /// - /// Whether background noise removal was applied. - /// - /// - /// Whether loudness normalization was applied. - /// - /// - /// Whether studio-quality enhancement was applied. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems( - string? uuid, - global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? status, - string? errorMessage, - bool? removeNoise, - bool? normalize, - bool? studioSound, - string? originalAudioUrl, - string? enhancedAudioUrl) - { - this.Uuid = uuid; - this.Status = status; - this.ErrorMessage = errorMessage; - this.RemoveNoise = removeNoise; - this.Normalize = normalize; - this.StudioSound = studioSound; - this.OriginalAudioUrl = originalAudioUrl; - this.EnhancedAudioUrl = enhancedAudioUrl; - } - - /// - /// Initializes a new instance of the class. - /// - public AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs deleted file mode 100644 index 83ce1f0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus - { - /// - /// - /// - Completed, - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus value) - { - return value switch - { - AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Completed => "completed", - AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Failed => "failed", - AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Pending => "pending", - AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Processing => "processing", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? ToEnum(string value) - { - return value switch - { - "completed" => AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Completed, - "failed" => AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Failed, - "pending" => AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Pending, - "processing" => AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus.Processing, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.g.cs deleted file mode 100644 index b2585b3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus - { - /// - /// - /// - Pending, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus value) - { - return value switch - { - AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.Pending => "pending", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? ToEnum(string value) - { - return value switch - { - "pending" => AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus.Pending, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioTimestamps.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioTimestamps.Json.g.cs deleted file mode 100644 index b31afc0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioTimestamps.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class AudioTimestamps - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.AudioTimestamps? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.AudioTimestamps), - jsonSerializerContext) as global::ResembleAI.AudioTimestamps; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.AudioTimestamps? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.AudioTimestamps? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.AudioTimestamps), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.AudioTimestamps; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioTimestamps.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioTimestamps.g.cs deleted file mode 100644 index 720495a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.AudioTimestamps.g.cs +++ /dev/null @@ -1,79 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class AudioTimestamps - { - /// - /// Grapheme characters - /// - [global::System.Text.Json.Serialization.JsonPropertyName("graph_chars")] - public global::System.Collections.Generic.IList? GraphChars { get; set; } - - /// - /// Grapheme timestamps [start, end] in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("graph_times")] - public global::System.Collections.Generic.IList>? GraphTimes { get; set; } - - /// - /// Phoneme characters - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phon_chars")] - public global::System.Collections.Generic.IList? PhonChars { get; set; } - - /// - /// Phoneme timestamps [start, end] in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("phon_times")] - public global::System.Collections.Generic.IList>? PhonTimes { 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. - /// - /// - /// Grapheme characters - /// - /// - /// Grapheme timestamps [start, end] in seconds - /// - /// - /// Phoneme characters - /// - /// - /// Phoneme timestamps [start, end] in seconds - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public AudioTimestamps( - global::System.Collections.Generic.IList? graphChars, - global::System.Collections.Generic.IList>? graphTimes, - global::System.Collections.Generic.IList? phonChars, - global::System.Collections.Generic.IList>? phonTimes) - { - this.GraphChars = graphChars; - this.GraphTimes = graphTimes; - this.PhonChars = phonChars; - this.PhonTimes = phonTimes; - } - - /// - /// Initializes a new instance of the class. - /// - public AudioTimestamps() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.BuildVoiceRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.BuildVoiceRequest.Json.g.cs deleted file mode 100644 index 13e4719..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.BuildVoiceRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class BuildVoiceRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.BuildVoiceRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.BuildVoiceRequest), - jsonSerializerContext) as global::ResembleAI.BuildVoiceRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.BuildVoiceRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.BuildVoiceRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.BuildVoiceRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.BuildVoiceRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.BuildVoiceRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.BuildVoiceRequest.g.cs deleted file mode 100644 index 6e3a7a8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.BuildVoiceRequest.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class BuildVoiceRequest - { - /// - /// Default Value: false - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fill")] - public bool? Fill { 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. - /// - /// - /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BuildVoiceRequest( - bool? fill) - { - this.Fill = fill; - } - - /// - /// Initializes a new instance of the class. - /// - public BuildVoiceRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.BulkCreatePronunciationsRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.BulkCreatePronunciationsRequest.Json.g.cs deleted file mode 100644 index 1882ec2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.BulkCreatePronunciationsRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class BulkCreatePronunciationsRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.BulkCreatePronunciationsRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.BulkCreatePronunciationsRequest), - jsonSerializerContext) as global::ResembleAI.BulkCreatePronunciationsRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.BulkCreatePronunciationsRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.BulkCreatePronunciationsRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.BulkCreatePronunciationsRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.BulkCreatePronunciationsRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.BulkCreatePronunciationsRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.BulkCreatePronunciationsRequest.g.cs deleted file mode 100644 index b21f79f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.BulkCreatePronunciationsRequest.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class BulkCreatePronunciationsRequest - { - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("zip")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] Zip { get; set; } - - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("zipname")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Zipname { 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. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// - /// - /// ZIP file containing audio files. Max 50 files, max 100MB total. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BulkCreatePronunciationsRequest( - byte[] zip, - string zipname) - { - this.Zip = zip ?? throw new global::System.ArgumentNullException(nameof(zip)); - this.Zipname = zipname ?? throw new global::System.ArgumentNullException(nameof(zipname)); - } - - /// - /// Initializes a new instance of the class. - /// - public BulkCreatePronunciationsRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsDeleteClipResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsDeleteClipResponse200.Json.g.cs deleted file mode 100644 index 256e124..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsDeleteClipResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ClipsDeleteClipResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ClipsDeleteClipResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ClipsDeleteClipResponse200), - jsonSerializerContext) as global::ResembleAI.ClipsDeleteClipResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ClipsDeleteClipResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ClipsDeleteClipResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ClipsDeleteClipResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ClipsDeleteClipResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsDeleteClipResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsDeleteClipResponse200.g.cs deleted file mode 100644 index 54fe46b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsDeleteClipResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ClipsDeleteClipResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 ClipsDeleteClipResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public ClipsDeleteClipResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsGetClipResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsGetClipResponse200.Json.g.cs deleted file mode 100644 index 55f4532..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsGetClipResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ClipsGetClipResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ClipsGetClipResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ClipsGetClipResponse200), - jsonSerializerContext) as global::ResembleAI.ClipsGetClipResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ClipsGetClipResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ClipsGetClipResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ClipsGetClipResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ClipsGetClipResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsGetClipResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsGetClipResponse200.g.cs deleted file mode 100644 index a08b73c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsGetClipResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ClipsGetClipResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Item { 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 ClipsGetClipResponse200( - bool? success, - global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public ClipsGetClipResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsListClipsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsListClipsResponse200.Json.g.cs deleted file mode 100644 index 4027016..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsListClipsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ClipsListClipsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ClipsListClipsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ClipsListClipsResponse200), - jsonSerializerContext) as global::ResembleAI.ClipsListClipsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ClipsListClipsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ClipsListClipsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ClipsListClipsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ClipsListClipsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsListClipsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsListClipsResponse200.g.cs deleted file mode 100644 index 8572df3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsListClipsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ClipsListClipsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 ClipsListClipsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public ClipsListClipsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsUpdateClipResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsUpdateClipResponse200.g.cs deleted file mode 100644 index 26a4783..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsUpdateClipResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ClipsUpdateClipResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Item { 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 ClipsUpdateClipResponse200( - bool? success, - global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public ClipsUpdateClipResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequest.Json.g.cs deleted file mode 100644 index c62084a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateAudioEnhancementRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateAudioEnhancementRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateAudioEnhancementRequest), - jsonSerializerContext) as global::ResembleAI.CreateAudioEnhancementRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateAudioEnhancementRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateAudioEnhancementRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateAudioEnhancementRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAudioEnhancementRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequest.g.cs deleted file mode 100644 index 83a7cca..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequest.g.cs +++ /dev/null @@ -1,98 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateAudioEnhancementRequest - { - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_file")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] AudioFile { get; set; } - - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_filename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioFilename { get; set; } - - /// - /// Remove background noise.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("remove_noise")] - public bool? RemoveNoise { get; set; } - - /// - /// Normalize audio levels.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("normalize")] - public bool? Normalize { get; set; } - - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("studio_sound")] - public bool? StudioSound { 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. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB. - /// - /// - /// Remove background noise.
- /// Default Value: true - /// - /// - /// Normalize audio levels.
- /// Default Value: true - /// - /// - /// Apply studio-quality enhancement.
- /// Default Value: true - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioEnhancementRequest( - byte[] audioFile, - string audioFilename, - bool? removeNoise, - bool? normalize, - bool? studioSound) - { - this.AudioFile = audioFile ?? throw new global::System.ArgumentNullException(nameof(audioFile)); - this.AudioFilename = audioFilename ?? throw new global::System.ArgumentNullException(nameof(audioFilename)); - this.RemoveNoise = removeNoise; - this.Normalize = normalize; - this.StudioSound = studioSound; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioEnhancementRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestBadRequestError.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestBadRequestError.Json.g.cs deleted file mode 100644 index b423201..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestBadRequestError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateAudioEnhancementRequestBadRequestError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateAudioEnhancementRequestBadRequestError), - jsonSerializerContext) as global::ResembleAI.CreateAudioEnhancementRequestBadRequestError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateAudioEnhancementRequestBadRequestError), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAudioEnhancementRequestBadRequestError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestBadRequestError.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestBadRequestError.g.cs deleted file mode 100644 index cef9e32..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestBadRequestError.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateAudioEnhancementRequestBadRequestError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public 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. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioEnhancementRequestBadRequestError( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioEnhancementRequestBadRequestError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestForbiddenError.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestForbiddenError.Json.g.cs deleted file mode 100644 index ccc81d4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestForbiddenError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateAudioEnhancementRequestForbiddenError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateAudioEnhancementRequestForbiddenError), - jsonSerializerContext) as global::ResembleAI.CreateAudioEnhancementRequestForbiddenError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateAudioEnhancementRequestForbiddenError), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateAudioEnhancementRequestForbiddenError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestForbiddenError.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestForbiddenError.g.cs deleted file mode 100644 index 05b4994..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateAudioEnhancementRequestForbiddenError.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateAudioEnhancementRequestForbiddenError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public 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. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioEnhancementRequestForbiddenError( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioEnhancementRequestForbiddenError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoicePairRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoicePairRequest.Json.g.cs deleted file mode 100644 index e0820d6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoicePairRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateDuetVoicePairRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateDuetVoicePairRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateDuetVoicePairRequest), - jsonSerializerContext) as global::ResembleAI.CreateDuetVoicePairRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateDuetVoicePairRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateDuetVoicePairRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateDuetVoicePairRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateDuetVoicePairRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoicePairRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoicePairRequest.g.cs deleted file mode 100644 index d149e32..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoicePairRequest.g.cs +++ /dev/null @@ -1,70 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateDuetVoicePairRequest - { - /// - /// ID of first voice - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice_1_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Voice1Id { get; set; } - - /// - /// ID of second voice - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice_2_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Voice2Id { get; set; } - - /// - /// Optional pair name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { 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. - /// - /// - /// ID of first voice - /// - /// - /// ID of second voice - /// - /// - /// Optional pair name - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateDuetVoicePairRequest( - int voice1Id, - int voice2Id, - string? name) - { - this.Voice1Id = voice1Id; - this.Voice2Id = voice2Id; - this.Name = name; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateDuetVoicePairRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoiceRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoiceRequest.Json.g.cs deleted file mode 100644 index e69e108..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoiceRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateDuetVoiceRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateDuetVoiceRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateDuetVoiceRequest), - jsonSerializerContext) as global::ResembleAI.CreateDuetVoiceRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateDuetVoiceRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateDuetVoiceRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateDuetVoiceRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateDuetVoiceRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoiceRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoiceRequest.g.cs deleted file mode 100644 index 1d8d42e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateDuetVoiceRequest.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateDuetVoiceRequest - { - /// - /// Voice name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Optional style prompt - /// - [global::System.Text.Json.Serialization.JsonPropertyName("style_prompt")] - public string? StylePrompt { get; set; } - - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] Audio { get; set; } - - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioname")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audioname { 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. - /// - /// - /// Voice name - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB) - /// - /// - /// Optional style prompt - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateDuetVoiceRequest( - string name, - byte[] audio, - string audioname, - string? stylePrompt) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.StylePrompt = stylePrompt; - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Audioname = audioname ?? throw new global::System.ArgumentNullException(nameof(audioname)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateDuetVoiceRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateProjectRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateProjectRequest.Json.g.cs deleted file mode 100644 index 154dd56..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateProjectRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateProjectRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateProjectRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateProjectRequest), - jsonSerializerContext) as global::ResembleAI.CreateProjectRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateProjectRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateProjectRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateProjectRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateProjectRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePronunciationRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePronunciationRequest.Json.g.cs deleted file mode 100644 index e34ab2f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePronunciationRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreatePronunciationRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreatePronunciationRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreatePronunciationRequest), - jsonSerializerContext) as global::ResembleAI.CreatePronunciationRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreatePronunciationRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreatePronunciationRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreatePronunciationRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreatePronunciationRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePronunciationRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePronunciationRequest.g.cs deleted file mode 100644 index 012e97c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreatePronunciationRequest.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreatePronunciationRequest - { - /// - /// The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("word")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Word { get; set; } - - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] Audio { get; set; } - - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioname")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audioname { 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 word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// - /// - /// Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreatePronunciationRequest( - string word, - byte[] audio, - string audioname) - { - this.Word = word ?? throw new global::System.ArgumentNullException(nameof(word)); - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Audioname = audioname ?? throw new global::System.ArgumentNullException(nameof(audioname)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreatePronunciationRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateRecordingRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateRecordingRequest.Json.g.cs deleted file mode 100644 index 2922e4b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateRecordingRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateRecordingRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateRecordingRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateRecordingRequest), - jsonSerializerContext) as global::ResembleAI.CreateRecordingRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateRecordingRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateRecordingRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateRecordingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateRecordingRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateRecordingRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateRecordingRequest.g.cs deleted file mode 100644 index 9378af3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateRecordingRequest.g.cs +++ /dev/null @@ -1,118 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateRecordingRequest - { - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] File { get; set; } - - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filename")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Filename { get; set; } - - /// - /// Display name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Transcript of the clip - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { get; set; } - - /// - /// Emotion label - /// - [global::System.Text.Json.Serialization.JsonPropertyName("emotion")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Emotion { get; set; } - - /// - /// Include in training - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_active")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool IsActive { get; set; } - - /// - /// Include for Resemble Fill - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fill")] - public bool? Fill { 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. - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateRecordingRequest( - byte[] file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill) - { - this.File = file ?? throw new global::System.ArgumentNullException(nameof(file)); - this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - this.Emotion = emotion ?? throw new global::System.ArgumentNullException(nameof(emotion)); - this.IsActive = isActive; - this.Fill = fill; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateRecordingRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTermSubstitutionRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTermSubstitutionRequest.Json.g.cs deleted file mode 100644 index eb6f42e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTermSubstitutionRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateTermSubstitutionRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateTermSubstitutionRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateTermSubstitutionRequest), - jsonSerializerContext) as global::ResembleAI.CreateTermSubstitutionRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateTermSubstitutionRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateTermSubstitutionRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateTermSubstitutionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateTermSubstitutionRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTermSubstitutionRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTermSubstitutionRequest.g.cs deleted file mode 100644 index 06ee325..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTermSubstitutionRequest.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateTermSubstitutionRequest - { - /// - /// Original text to substitute - /// - [global::System.Text.Json.Serialization.JsonPropertyName("original_text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string OriginalText { get; set; } - - /// - /// Replacement pronunciation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("replacement_text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ReplacementText { 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. - /// - /// - /// Original text to substitute - /// - /// - /// Replacement pronunciation - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateTermSubstitutionRequest( - string originalText, - string replacementText) - { - this.OriginalText = originalText ?? throw new global::System.ArgumentNullException(nameof(originalText)); - this.ReplacementText = replacementText ?? throw new global::System.ArgumentNullException(nameof(replacementText)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateTermSubstitutionRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTranscriptRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTranscriptRequest.Json.g.cs deleted file mode 100644 index 0efbc93..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTranscriptRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateTranscriptRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateTranscriptRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateTranscriptRequest), - jsonSerializerContext) as global::ResembleAI.CreateTranscriptRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateTranscriptRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateTranscriptRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateTranscriptRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateTranscriptRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTranscriptRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTranscriptRequest.g.cs deleted file mode 100644 index 0a1661c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateTranscriptRequest.g.cs +++ /dev/null @@ -1,92 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateTranscriptRequest - { - /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file")] - public byte[]? File { get; set; } - - /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filename")] - public string? Filename { get; set; } - - /// - /// Optional intelligence question to evaluate after transcription - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("callback_url")] - public string? CallbackUrl { get; set; } - - /// - /// Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("zero_retention_mode")] - public bool? ZeroRetentionMode { 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. - /// - /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - /// - /// Optional intelligence question to evaluate after transcription - /// - /// - /// Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true. - /// - /// - /// Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan.
- /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateTranscriptRequest( - byte[]? file, - string? filename, - string? query, - string? callbackUrl, - bool? zeroRetentionMode) - { - this.File = file; - this.Filename = filename; - this.Query = query; - this.CallbackUrl = callbackUrl; - this.ZeroRetentionMode = zeroRetentionMode; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateTranscriptRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceRequest.Json.g.cs deleted file mode 100644 index c254706..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateVoiceRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateVoiceRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateVoiceRequest), - jsonSerializerContext) as global::ResembleAI.CreateVoiceRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateVoiceRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateVoiceRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateVoiceRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateVoiceRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceRequest.g.cs deleted file mode 100644 index 2ba1568..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceRequest.g.cs +++ /dev/null @@ -1,74 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateVoiceRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("dataset_url")] - public string? DatasetUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("callback_uri")] - public string? CallbackUri { get; set; } - - /// - /// Default Value: en-US - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language")] - public string? Language { 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. - /// - /// - /// - /// - /// - /// Default Value: en-US - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateVoiceRequest( - string name, - string? datasetUrl, - string? callbackUri, - string? language) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.DatasetUrl = datasetUrl; - this.CallbackUri = callbackUri; - this.Language = language; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateVoiceRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceSettingsPresetRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceSettingsPresetRequest.Json.g.cs deleted file mode 100644 index 18b4619..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceSettingsPresetRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CreateVoiceSettingsPresetRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CreateVoiceSettingsPresetRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CreateVoiceSettingsPresetRequest), - jsonSerializerContext) as global::ResembleAI.CreateVoiceSettingsPresetRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CreateVoiceSettingsPresetRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CreateVoiceSettingsPresetRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CreateVoiceSettingsPresetRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateVoiceSettingsPresetRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceSettingsPresetRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceSettingsPresetRequest.g.cs deleted file mode 100644 index eb1a8df..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateVoiceSettingsPresetRequest.g.cs +++ /dev/null @@ -1,123 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CreateVoiceSettingsPresetRequest - { - /// - /// Preset name (unique, max 30 characters) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Speech pace/speed
- /// Default Value: 1 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pace")] - public double? Pace { get; set; } - - /// - /// Voice variation
- /// Default Value: 0.8F - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// Voice pitch adjustment
- /// Default Value: 0 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pitch")] - public double? Pitch { get; set; } - - /// - /// Use HD quality
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("useHd")] - public bool? UseHd { get; set; } - - /// - /// Emotional exaggeration
- /// Default Value: 0.5F - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("exaggeration")] - public double? Exaggeration { get; set; } - - /// - /// Voice style prompt - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { 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. - /// - /// - /// Preset name (unique, max 30 characters) - /// - /// - /// Speech pace/speed
- /// Default Value: 1 - /// - /// - /// Voice variation
- /// Default Value: 0.8F - /// - /// - /// Voice pitch adjustment
- /// Default Value: 0 - /// - /// - /// Use HD quality
- /// Default Value: false - /// - /// - /// Emotional exaggeration
- /// Default Value: 0.5F - /// - /// - /// Voice style prompt - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateVoiceSettingsPresetRequest( - string name, - double? pace, - double? temperature, - double? pitch, - bool? useHd, - double? exaggeration, - string? description) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Pace = pace; - this.Temperature = temperature; - this.Pitch = pitch; - this.UseHd = useHd; - this.Exaggeration = exaggeration; - this.Description = description; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateVoiceSettingsPresetRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciation.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciation.Json.g.cs deleted file mode 100644 index 4a6f3ec..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciation.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciation - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciation? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciation), - jsonSerializerContext) as global::ResembleAI.CustomPronunciation; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciation? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciation? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciation), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciation; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciation.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciation.g.cs deleted file mode 100644 index 62250a7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciation.g.cs +++ /dev/null @@ -1,109 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciation - { - /// - /// Unique identifier for the pronunciation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// The word or phrase this pronunciation applies to - /// - [global::System.Text.Json.Serialization.JsonPropertyName("word")] - public string? Word { get; set; } - - /// - /// Processing status. Only "ready" pronunciations are applied during synthesis. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter))] - public global::ResembleAI.CustomPronunciationStatus? Status { get; set; } - - /// - /// Whether this pronunciation is active and will be applied during synthesis - /// - [global::System.Text.Json.Serialization.JsonPropertyName("active")] - public bool? Active { get; set; } - - /// - /// URL to the uploaded reference audio - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] - public string? AudioUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Unique identifier for the pronunciation - /// - /// - /// The word or phrase this pronunciation applies to - /// - /// - /// Processing status. Only "ready" pronunciations are applied during synthesis. - /// - /// - /// Whether this pronunciation is active and will be applied during synthesis - /// - /// - /// URL to the uploaded reference audio - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomPronunciation( - global::System.Guid? uuid, - string? word, - global::ResembleAI.CustomPronunciationStatus? status, - bool? active, - string? audioUrl, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.Word = word; - this.Status = status; - this.Active = active; - this.AudioUrl = audioUrl; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciation() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationStatus.g.cs deleted file mode 100644 index 0277795..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationStatus.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Processing status. Only "ready" pronunciations are applied during synthesis. - /// - public enum CustomPronunciationStatus - { - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Ready, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CustomPronunciationStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CustomPronunciationStatus value) - { - return value switch - { - CustomPronunciationStatus.Failed => "failed", - CustomPronunciationStatus.Pending => "pending", - CustomPronunciationStatus.Ready => "ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CustomPronunciationStatus? ToEnum(string value) - { - return value switch - { - "failed" => CustomPronunciationStatus.Failed, - "pending" => CustomPronunciationStatus.Pending, - "ready" => CustomPronunciationStatus.Ready, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsBulkCreatePronunciationsResponse201.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsBulkCreatePronunciationsResponse201.Json.g.cs deleted file mode 100644 index 30f84ff..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsBulkCreatePronunciationsResponse201.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsBulkCreatePronunciationsResponse201 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201), - jsonSerializerContext) as global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsBulkCreatePronunciationsResponse201.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsBulkCreatePronunciationsResponse201.g.cs deleted file mode 100644 index a5fcbf7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsBulkCreatePronunciationsResponse201.g.cs +++ /dev/null @@ -1,84 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciationsBulkCreatePronunciationsResponse201 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Number of pronunciations successfully created - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_created")] - public int? TotalCreated { get; set; } - - /// - /// Number of files that failed validation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_errors")] - public int? TotalErrors { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - public global::System.Collections.Generic.IList? Errors { 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. - /// - /// - /// - /// Number of pronunciations successfully created - /// - /// - /// Number of files that failed validation - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomPronunciationsBulkCreatePronunciationsResponse201( - bool? success, - int? totalCreated, - int? totalErrors, - global::System.Collections.Generic.IList? items, - global::System.Collections.Generic.IList? errors) - { - this.Success = success; - this.TotalCreated = totalCreated; - this.TotalErrors = totalErrors; - this.Items = items; - this.Errors = errors; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciationsBulkCreatePronunciationsResponse201() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsCreatePronunciationResponse201.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsCreatePronunciationResponse201.Json.g.cs deleted file mode 100644 index 91727d2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsCreatePronunciationResponse201.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsCreatePronunciationResponse201 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201), - jsonSerializerContext) as global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsCreatePronunciationResponse201.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsCreatePronunciationResponse201.g.cs deleted file mode 100644 index f520dd4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsCreatePronunciationResponse201.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciationsCreatePronunciationResponse201 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.CustomPronunciation? Item { 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 CustomPronunciationsCreatePronunciationResponse201( - bool? success, - global::ResembleAI.CustomPronunciation? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciationsCreatePronunciationResponse201() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsDeletePronunciationResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsDeletePronunciationResponse200.Json.g.cs deleted file mode 100644 index a6df02d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsDeletePronunciationResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsDeletePronunciationResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200), - jsonSerializerContext) as global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsDeletePronunciationResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsDeletePronunciationResponse200.g.cs deleted file mode 100644 index 26c2fb6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsDeletePronunciationResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciationsDeletePronunciationResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 CustomPronunciationsDeletePronunciationResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciationsDeletePronunciationResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsGetPronunciationResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsGetPronunciationResponse200.Json.g.cs deleted file mode 100644 index 146c6d8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsGetPronunciationResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsGetPronunciationResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciationsGetPronunciationResponse200), - jsonSerializerContext) as global::ResembleAI.CustomPronunciationsGetPronunciationResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciationsGetPronunciationResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciationsGetPronunciationResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsGetPronunciationResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsGetPronunciationResponse200.g.cs deleted file mode 100644 index 5779481..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsGetPronunciationResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciationsGetPronunciationResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.CustomPronunciation? Item { 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 CustomPronunciationsGetPronunciationResponse200( - bool? success, - global::ResembleAI.CustomPronunciation? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciationsGetPronunciationResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsListPronunciationsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsListPronunciationsResponse200.Json.g.cs deleted file mode 100644 index 0a99e34..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsListPronunciationsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsListPronunciationsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciationsListPronunciationsResponse200), - jsonSerializerContext) as global::ResembleAI.CustomPronunciationsListPronunciationsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciationsListPronunciationsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciationsListPronunciationsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsListPronunciationsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsListPronunciationsResponse200.g.cs deleted file mode 100644 index 0bff5a3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsListPronunciationsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciationsListPronunciationsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 CustomPronunciationsListPronunciationsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciationsListPronunciationsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsUpdatePronunciationResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsUpdatePronunciationResponse200.Json.g.cs deleted file mode 100644 index ca9729b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsUpdatePronunciationResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class CustomPronunciationsUpdatePronunciationResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200), - jsonSerializerContext) as global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsUpdatePronunciationResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsUpdatePronunciationResponse200.g.cs deleted file mode 100644 index d4ffc65..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CustomPronunciationsUpdatePronunciationResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class CustomPronunciationsUpdatePronunciationResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.CustomPronunciation? Item { 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 CustomPronunciationsUpdatePronunciationResponse200( - bool? success, - global::ResembleAI.CustomPronunciation? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public CustomPronunciationsUpdatePronunciationResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsUpdateClipResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoAttackTypeItems.Json.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsUpdateClipResponse200.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoAttackTypeItems.Json.g.cs index 26214b5..b1aa2a3 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ClipsUpdateClipResponse200.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoAttackTypeItems.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class ClipsUpdateClipResponse200 + public sealed partial class DetectVideoAttackTypeItems { /// /// 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::ResembleAI.ClipsUpdateClipResponse200? FromJson( + public static global::ResembleAI.DetectVideoAttackTypeItems? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.ClipsUpdateClipResponse200), - jsonSerializerContext) as global::ResembleAI.ClipsUpdateClipResponse200; + typeof(global::ResembleAI.DetectVideoAttackTypeItems), + jsonSerializerContext) as global::ResembleAI.DetectVideoAttackTypeItems; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.ClipsUpdateClipResponse200? FromJson( + public static global::ResembleAI.DetectVideoAttackTypeItems? 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::ResembleAI.ClipsUpdateClipResponse200? FromJson( + public static global::ResembleAI.DetectVideoAttackTypeItems? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.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::ResembleAI.ClipsUpdateClipResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ClipsUpdateClipResponse200; + typeof(global::ResembleAI.DetectVideoAttackTypeItems), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectVideoAttackTypeItems; } /// /// 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::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateProjectRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoAttackTypeItems.g.cs similarity index 53% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateProjectRequest.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoAttackTypeItems.g.cs index d83bbea..444f017 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateProjectRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoAttackTypeItems.g.cs @@ -6,35 +6,28 @@ namespace ResembleAI /// /// /// - public sealed partial class CreateProjectRequest + public sealed partial class DetectVideoAttackTypeItems { /// - /// + /// Attack type code /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] + [global::System.Text.Json.Serialization.JsonPropertyName("code")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Description { get; set; } + public required string Code { get; set; } /// - /// + /// Human-readable attack type name /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_collaborative")] + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool IsCollaborative { get; set; } + public required string Name { get; set; } /// - /// + /// Probability of this attack type, given that the result is fake /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_archived")] + [global::System.Text.Json.Serialization.JsonPropertyName("prob")] [global::System.Text.Json.Serialization.JsonRequired] - public required bool IsArchived { get; set; } + public required double Prob { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,31 +36,34 @@ public sealed partial class CreateProjectRequest 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. /// - /// - /// - /// - /// + /// + /// Attack type code + /// + /// + /// Human-readable attack type name + /// + /// + /// Probability of this attack type, given that the result is fake + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateProjectRequest( + public DetectVideoAttackTypeItems( + string code, string name, - string description, - bool isCollaborative, - bool isArchived) + double prob) { + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description ?? throw new global::System.ArgumentNullException(nameof(description)); - this.IsCollaborative = isCollaborative; - this.IsArchived = isArchived; + this.Prob = prob; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateProjectRequest() + public DetectVideoAttackTypeItems() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetrics.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetrics.g.cs index ffdccf5..522f933 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetrics.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetrics.g.cs @@ -36,7 +36,7 @@ public sealed partial class DetectVideoMetrics public string? Treeview { get; set; } /// - /// Hierarchical detection results across frames + /// Video-level detection result (one `VideoResult`) /// [global::System.Text.Json.Serialization.JsonPropertyName("children")] [global::System.Text.Json.Serialization.JsonRequired] @@ -61,7 +61,7 @@ public sealed partial class DetectVideoMetrics /// Overall certainty score /// /// - /// Hierarchical detection results across frames + /// Video-level detection result (one `VideoResult`) /// /// /// Optional tree visualization data diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItems.g.cs index 19aff35..db387b4 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItems.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItems.g.cs @@ -44,7 +44,13 @@ public sealed partial class DetectVideoMetricsChildrenItems public required string Certainty__ { get; set; } /// - /// Frame-level detection results + /// How the video, or one chunk of it, was most likely made. Present only on results scored fake (score of 0.5 or higher) and omitted on real results. A probability distribution over every attack type, sorted from most to least likely; the `prob` values sum to 1 and the first entry is the most likely attack. Codes: S0, S1, S2 (generated), V1, V2, V3 (video-to-video), L1-L6 (local edits), F1-F6 (face), X0 (method unknown). Group codes (S0, V3, F6, X0) are never returned as the first entry. New codes may be added in future releases; if you receive a code you don't recognize, show its `name` instead of treating it as an error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("attack")] + public global::System.Collections.Generic.IList? Attack { get; set; } + + /// + /// Chunk-level detection results, one per analyzed window of the video /// [global::System.Text.Json.Serialization.JsonPropertyName("children")] [global::System.Text.Json.Serialization.JsonRequired] @@ -65,7 +71,10 @@ public sealed partial class DetectVideoMetricsChildrenItems /// /// /// - /// Frame-level detection results + /// Chunk-level detection results, one per analyzed window of the video + /// + /// + /// How the video, or one chunk of it, was most likely made. Present only on results scored fake (score of 0.5 or higher) and omitted on real results. A probability distribution over every attack type, sorted from most to least likely; the `prob` values sum to 1 and the first entry is the most likely attack. Codes: S0, S1, S2 (generated), V1, V2, V3 (video-to-video), L1-L6 (local edits), F1-F6 (face), X0 (method unknown). Group codes (S0, V3, F6, X0) are never returned as the first entry. New codes may be added in future releases; if you receive a code you don't recognize, show its `name` instead of treating it as an error. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -76,13 +85,15 @@ public DetectVideoMetricsChildrenItems( double score, double certainty, string certainty__, - global::System.Collections.Generic.IList children) + global::System.Collections.Generic.IList children, + global::System.Collections.Generic.IList? attack) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Conclusion = conclusion ?? throw new global::System.ArgumentNullException(nameof(conclusion)); this.Score = score; this.Certainty = certainty; this.Certainty__ = certainty__ ?? throw new global::System.ArgumentNullException(nameof(certainty__)); + this.Attack = attack; this.Children = children ?? throw new global::System.ArgumentNullException(nameof(children)); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItems.g.cs index 6c91247..d0a1554 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItems.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItems.g.cs @@ -44,14 +44,34 @@ public sealed partial class DetectVideoMetricsChildrenItemsChildrenItems public required string Certainty__ { get; set; } /// - /// Timestamp in seconds + /// Zero-based position of the chunk in the video /// - [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] + [global::System.Text.Json.Serialization.JsonPropertyName("chunk_index")] [global::System.Text.Json.Serialization.JsonRequired] - public required double Timestamp { get; set; } + public required int ChunkIndex { get; set; } /// - /// Segment-level detection results + /// Chunk start in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_time")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double StartTime { get; set; } + + /// + /// Chunk end in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double EndTime { get; set; } + + /// + /// How the video, or one chunk of it, was most likely made. Present only on results scored fake (score of 0.5 or higher) and omitted on real results. A probability distribution over every attack type, sorted from most to least likely; the `prob` values sum to 1 and the first entry is the most likely attack. Codes: S0, S1, S2 (generated), V1, V2, V3 (video-to-video), L1-L6 (local edits), F1-F6 (face), X0 (method unknown). Group codes (S0, V3, F6, X0) are never returned as the first entry. New codes may be added in future releases; if you receive a code you don't recognize, show its `name` instead of treating it as an error. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("attack")] + public global::System.Collections.Generic.IList? Attack { get; set; } + + /// + /// Frame-level detection results /// [global::System.Text.Json.Serialization.JsonPropertyName("children")] [global::System.Text.Json.Serialization.JsonRequired] @@ -71,11 +91,20 @@ public sealed partial class DetectVideoMetricsChildrenItemsChildrenItems /// /// /// - /// - /// Timestamp in seconds + /// + /// Zero-based position of the chunk in the video + /// + /// + /// Chunk start in seconds + /// + /// + /// Chunk end in seconds /// /// - /// Segment-level detection results + /// Frame-level detection results + /// + /// + /// How the video, or one chunk of it, was most likely made. Present only on results scored fake (score of 0.5 or higher) and omitted on real results. A probability distribution over every attack type, sorted from most to least likely; the `prob` values sum to 1 and the first entry is the most likely attack. Codes: S0, S1, S2 (generated), V1, V2, V3 (video-to-video), L1-L6 (local edits), F1-F6 (face), X0 (method unknown). Group codes (S0, V3, F6, X0) are never returned as the first entry. New codes may be added in future releases; if you receive a code you don't recognize, show its `name` instead of treating it as an error. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -86,15 +115,21 @@ public DetectVideoMetricsChildrenItemsChildrenItems( double score, double certainty, string certainty__, - double timestamp, - global::System.Collections.Generic.IList children) + int chunkIndex, + double startTime, + double endTime, + global::System.Collections.Generic.IList children, + global::System.Collections.Generic.IList? attack) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Conclusion = conclusion ?? throw new global::System.ArgumentNullException(nameof(conclusion)); this.Score = score; this.Certainty = certainty; this.Certainty__ = certainty__ ?? throw new global::System.ArgumentNullException(nameof(certainty__)); - this.Timestamp = timestamp; + this.ChunkIndex = chunkIndex; + this.StartTime = startTime; + this.EndTime = endTime; + this.Attack = attack; this.Children = children ?? throw new global::System.ArgumentNullException(nameof(children)); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems.g.cs index fd42345..e79267a 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems.g.cs @@ -43,6 +43,19 @@ public sealed partial class DetectVideoMetricsChildrenItemsChildrenItemsChildren [global::System.Text.Json.Serialization.JsonRequired] public required string Certainty__ { get; set; } + /// + /// Timestamp in seconds + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timestamp")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Timestamp { get; set; } + + /// + /// Region-level detection results + /// + [global::System.Text.Json.Serialization.JsonPropertyName("children")] + public global::System.Collections.Generic.IList? Children { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -57,6 +70,12 @@ public sealed partial class DetectVideoMetricsChildrenItemsChildrenItemsChildren /// /// /// + /// + /// Timestamp in seconds + /// + /// + /// Region-level detection results + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -65,13 +84,17 @@ public DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems( string conclusion, double score, double certainty, - string certainty__) + string certainty__, + double timestamp, + global::System.Collections.Generic.IList? children) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Conclusion = conclusion ?? throw new global::System.ArgumentNullException(nameof(conclusion)); this.Score = score; this.Certainty = certainty; this.Certainty__ = certainty__ ?? throw new global::System.ArgumentNullException(nameof(certainty__)); + this.Timestamp = timestamp; + this.Children = children; } /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems.Json.g.cs similarity index 80% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems.Json.g.cs index 49e72a8..56ee9e2 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems + public sealed partial class DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems { /// /// 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::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? FromJson( + public static global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems), - jsonSerializerContext) as global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems; + typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems), + jsonSerializerContext) as global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? FromJson( + public static global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems? 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::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? FromJson( + public static global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.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::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems; + typeof(global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems; } /// /// 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::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems.g.cs new file mode 100644 index 0000000..19a801b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems.g.cs @@ -0,0 +1,85 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("conclusion")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Conclusion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Score { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("certainty")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Certainty { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("certainty (%)")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Certainty__ { 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 DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems( + string type, + string conclusion, + double score, + double certainty, + string certainty__) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Conclusion = conclusion ?? throw new global::System.ArgumentNullException(nameof(conclusion)); + this.Score = score; + this.Certainty = certainty; + this.Certainty__ = certainty__ ?? throw new global::System.ArgumentNullException(nameof(certainty__)); + } + + /// + /// Initializes a new instance of the class. + /// + public DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems.Json.g.cs deleted file mode 100644 index 3a75e45..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetPostRequestBodyContentApplicationJsonSchemaScriptItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems), - jsonSerializerContext) as global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems.g.cs deleted file mode 100644 index 61ab33c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems.g.cs +++ /dev/null @@ -1,60 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetPostRequestBodyContentApplicationJsonSchemaScriptItems - { - /// - /// Speaker index (0 or 1) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker Speaker { get; set; } - - /// - /// Text for this speaker - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Text { 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. - /// - /// - /// Speaker index (0 or 1) - /// - /// - /// Text for this speaker - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public DuetPostRequestBodyContentApplicationJsonSchemaScriptItems( - global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker speaker, - string text) - { - this.Speaker = speaker; - this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); - } - - /// - /// Initializes a new instance of the class. - /// - public DuetPostRequestBodyContentApplicationJsonSchemaScriptItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.g.cs deleted file mode 100644 index 476c571..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Speaker index (0 or 1) - /// - public enum DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker - { - /// - /// - /// - x0, - /// - /// - /// - x1, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker value) - { - return value switch - { - DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.x0 => "0", - DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.x1 => "1", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? ToEnum(string value) - { - return value switch - { - "0" => DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.x0, - "1" => DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker.x1, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index af9602f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 894ce7e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetPostResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public string? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { 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 DuetPostResponsesContentApplicationJsonSchemaItem( - string? uuid, - string? status) - { - this.Uuid = uuid; - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetPostResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index b808a5f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index ea22d80..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 94dda94..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index aab9d12..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 1e732c5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 33cfe37..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 17f39d4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index f173f22..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.DuetVoicesPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index a409afe..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetVoicesPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 44b992e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetVoicesPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetVoicesPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoicePairResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoicePairResponse200.Json.g.cs deleted file mode 100644 index 9953921..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoicePairResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsCreateDuetVoicePairResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsCreateDuetVoicePairResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsCreateDuetVoicePairResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsCreateDuetVoicePairResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsCreateDuetVoicePairResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsCreateDuetVoicePairResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsCreateDuetVoicePairResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsCreateDuetVoicePairResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoicePairResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoicePairResponse200.g.cs deleted file mode 100644 index 9c7f5fd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoicePairResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsCreateDuetVoicePairResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Item { 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 DuetsCreateDuetVoicePairResponse200( - bool? success, - global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsCreateDuetVoicePairResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoiceResponse200.Json.g.cs deleted file mode 100644 index 78caa2b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsCreateDuetVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsCreateDuetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsCreateDuetVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsCreateDuetVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsCreateDuetVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsCreateDuetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsCreateDuetVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsCreateDuetVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoiceResponse200.g.cs deleted file mode 100644 index 2dd0d38..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsCreateDuetVoiceResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsCreateDuetVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Item { 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 DuetsCreateDuetVoiceResponse200( - bool? success, - global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsCreateDuetVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsDeleteDuetVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsDeleteDuetVoiceResponse200.Json.g.cs deleted file mode 100644 index 24dd79a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsDeleteDuetVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsDeleteDuetVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsDeleteDuetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsDeleteDuetVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsDeleteDuetVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsDeleteDuetVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsDeleteDuetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsDeleteDuetVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsDeleteDuetVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsDeleteDuetVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsDeleteDuetVoiceResponse200.g.cs deleted file mode 100644 index d28c83f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsDeleteDuetVoiceResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsDeleteDuetVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 DuetsDeleteDuetVoiceResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsDeleteDuetVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsGenerateDuetResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsGenerateDuetResponse200.Json.g.cs deleted file mode 100644 index 9743b32..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsGenerateDuetResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsGenerateDuetResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsGenerateDuetResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsGenerateDuetResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsGenerateDuetResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsGenerateDuetResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsGenerateDuetResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsGenerateDuetResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsGenerateDuetResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsGenerateDuetResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsGenerateDuetResponse200.g.cs deleted file mode 100644 index 3c97af7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsGenerateDuetResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsGenerateDuetResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Item { 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 DuetsGenerateDuetResponse200( - bool? success, - global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsGenerateDuetResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicePairsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicePairsResponse200.Json.g.cs deleted file mode 100644 index 4b6240d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicePairsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsListDuetVoicePairsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsListDuetVoicePairsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsListDuetVoicePairsResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsListDuetVoicePairsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsListDuetVoicePairsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsListDuetVoicePairsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsListDuetVoicePairsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsListDuetVoicePairsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicePairsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicePairsResponse200.g.cs deleted file mode 100644 index a516801..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicePairsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsListDuetVoicePairsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 DuetsListDuetVoicePairsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsListDuetVoicePairsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicesResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicesResponse200.Json.g.cs deleted file mode 100644 index 104550e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicesResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsListDuetVoicesResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsListDuetVoicesResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsListDuetVoicesResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsListDuetVoicesResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsListDuetVoicesResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsListDuetVoicesResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsListDuetVoicesResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsListDuetVoicesResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicesResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicesResponse200.g.cs deleted file mode 100644 index fcfc652..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsListDuetVoicesResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsListDuetVoicesResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 DuetsListDuetVoicesResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsListDuetVoicesResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsUpdateDuetVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsUpdateDuetVoiceResponse200.Json.g.cs deleted file mode 100644 index db8a34c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsUpdateDuetVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class DuetsUpdateDuetVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.DuetsUpdateDuetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.DuetsUpdateDuetVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.DuetsUpdateDuetVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.DuetsUpdateDuetVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.DuetsUpdateDuetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.DuetsUpdateDuetVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.DuetsUpdateDuetVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsUpdateDuetVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsUpdateDuetVoiceResponse200.g.cs deleted file mode 100644 index d2f65e2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.DuetsUpdateDuetVoiceResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class DuetsUpdateDuetVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Item { 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 DuetsUpdateDuetVoiceResponse200( - bool? success, - global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public DuetsUpdateDuetVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.GenerateDuetRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.GenerateDuetRequest.Json.g.cs deleted file mode 100644 index 64d06e1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.GenerateDuetRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class GenerateDuetRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.GenerateDuetRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.GenerateDuetRequest), - jsonSerializerContext) as global::ResembleAI.GenerateDuetRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.GenerateDuetRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.GenerateDuetRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.GenerateDuetRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.GenerateDuetRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.GenerateDuetRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.GenerateDuetRequest.g.cs deleted file mode 100644 index d322ea7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.GenerateDuetRequest.g.cs +++ /dev/null @@ -1,79 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class GenerateDuetRequest - { - /// - /// Voice pair ID to use - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice_pair_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int VoicePairId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("script")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Script { get; set; } - - /// - /// Optional title for the duet - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Webhook URL for completion notification - /// - [global::System.Text.Json.Serialization.JsonPropertyName("callback_uri")] - public string? CallbackUri { 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. - /// - /// - /// Voice pair ID to use - /// - /// - /// - /// Optional title for the duet - /// - /// - /// Webhook URL for completion notification - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GenerateDuetRequest( - int voicePairId, - global::System.Collections.Generic.IList script, - string? title, - string? callbackUri) - { - this.VoicePairId = voicePairId; - this.Script = script ?? throw new global::System.ArgumentNullException(nameof(script)); - this.Title = title; - this.CallbackUri = callbackUri; - } - - /// - /// Initializes a new instance of the class. - /// - public GenerateDuetRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.GetAudioEnhancementRequestNotFoundError.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.GetAudioEnhancementRequestNotFoundError.Json.g.cs deleted file mode 100644 index 84e5d1e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.GetAudioEnhancementRequestNotFoundError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class GetAudioEnhancementRequestNotFoundError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.GetAudioEnhancementRequestNotFoundError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.GetAudioEnhancementRequestNotFoundError), - jsonSerializerContext) as global::ResembleAI.GetAudioEnhancementRequestNotFoundError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.GetAudioEnhancementRequestNotFoundError? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.GetAudioEnhancementRequestNotFoundError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.GetAudioEnhancementRequestNotFoundError), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.GetAudioEnhancementRequestNotFoundError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.GetAudioEnhancementRequestNotFoundError.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.GetAudioEnhancementRequestNotFoundError.g.cs deleted file mode 100644 index 5cd2940..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.GetAudioEnhancementRequestNotFoundError.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class GetAudioEnhancementRequestNotFoundError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public 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. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetAudioEnhancementRequestNotFoundError( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public GetAudioEnhancementRequestNotFoundError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ListAudioEnhancementsRequestBadRequestError.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ListAudioEnhancementsRequestBadRequestError.Json.g.cs deleted file mode 100644 index f93f6d0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ListAudioEnhancementsRequestBadRequestError.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ListAudioEnhancementsRequestBadRequestError - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ListAudioEnhancementsRequestBadRequestError), - jsonSerializerContext) as global::ResembleAI.ListAudioEnhancementsRequestBadRequestError; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ListAudioEnhancementsRequestBadRequestError), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ListAudioEnhancementsRequestBadRequestError; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ListAudioEnhancementsRequestBadRequestError.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ListAudioEnhancementsRequestBadRequestError.g.cs deleted file mode 100644 index f4df179..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ListAudioEnhancementsRequestBadRequestError.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ListAudioEnhancementsRequestBadRequestError - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public 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. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ListAudioEnhancementsRequestBadRequestError( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public ListAudioEnhancementsRequestBadRequestError() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsCreateProjectResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsCreateProjectResponse200.Json.g.cs deleted file mode 100644 index 04eee44..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsCreateProjectResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsCreateProjectResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsCreateProjectResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsCreateProjectResponse200), - jsonSerializerContext) as global::ResembleAI.ProjectsCreateProjectResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsCreateProjectResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsCreateProjectResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsCreateProjectResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsCreateProjectResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsCreateProjectResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsCreateProjectResponse200.g.cs deleted file mode 100644 index af05dfd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsCreateProjectResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsCreateProjectResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Item { 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 ProjectsCreateProjectResponse200( - bool? success, - global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public ProjectsCreateProjectResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsDeleteProjectResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsDeleteProjectResponse200.Json.g.cs deleted file mode 100644 index f46299e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsDeleteProjectResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsDeleteProjectResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsDeleteProjectResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsDeleteProjectResponse200), - jsonSerializerContext) as global::ResembleAI.ProjectsDeleteProjectResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsDeleteProjectResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsDeleteProjectResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsDeleteProjectResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsDeleteProjectResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsDeleteProjectResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsDeleteProjectResponse200.g.cs deleted file mode 100644 index 0746e40..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsDeleteProjectResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsDeleteProjectResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 ProjectsDeleteProjectResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public ProjectsDeleteProjectResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsGetProjectResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsGetProjectResponse200.Json.g.cs deleted file mode 100644 index 5eff054..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsGetProjectResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsGetProjectResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsGetProjectResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsGetProjectResponse200), - jsonSerializerContext) as global::ResembleAI.ProjectsGetProjectResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsGetProjectResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsGetProjectResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsGetProjectResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsGetProjectResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsGetProjectResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsGetProjectResponse200.g.cs deleted file mode 100644 index e4e8e7a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsGetProjectResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsGetProjectResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Item { 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 ProjectsGetProjectResponse200( - bool? success, - global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public ProjectsGetProjectResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsListProjectsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsListProjectsResponse200.Json.g.cs deleted file mode 100644 index 09b8e59..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsListProjectsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsListProjectsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsListProjectsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsListProjectsResponse200), - jsonSerializerContext) as global::ResembleAI.ProjectsListProjectsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsListProjectsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsListProjectsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsListProjectsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsListProjectsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsListProjectsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsListProjectsResponse200.g.cs deleted file mode 100644 index d3e031b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsListProjectsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsListProjectsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 ProjectsListProjectsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public ProjectsListProjectsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 5c3a444..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 299d34c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 3d9858e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index f16171d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 78a48b9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 401ae97..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.ProjectsUpdateProjectResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsUpdateProjectResponse200.Json.g.cs deleted file mode 100644 index 84a2e9d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsUpdateProjectResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsUpdateProjectResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsUpdateProjectResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.ProjectsUpdateProjectResponse200), - jsonSerializerContext) as global::ResembleAI.ProjectsUpdateProjectResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.ProjectsUpdateProjectResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.ProjectsUpdateProjectResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.ProjectsUpdateProjectResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.ProjectsUpdateProjectResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsUpdateProjectResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsUpdateProjectResponse200.g.cs deleted file mode 100644 index 173023a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.ProjectsUpdateProjectResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class ProjectsUpdateProjectResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Item { 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 ProjectsUpdateProjectResponse200( - bool? success, - global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public ProjectsUpdateProjectResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems.g.cs deleted file mode 100644 index 94666ac..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.PronunciationsGetParametersStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsGetParametersStatus.g.cs deleted file mode 100644 index a733d1e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.PronunciationsGetParametersStatus.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum PronunciationsGetParametersStatus - { - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Ready, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PronunciationsGetParametersStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PronunciationsGetParametersStatus value) - { - return value switch - { - PronunciationsGetParametersStatus.Failed => "failed", - PronunciationsGetParametersStatus.Pending => "pending", - PronunciationsGetParametersStatus.Ready => "ready", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PronunciationsGetParametersStatus? ToEnum(string value) - { - return value switch - { - "failed" => PronunciationsGetParametersStatus.Failed, - "pending" => PronunciationsGetParametersStatus.Pending, - "ready" => PronunciationsGetParametersStatus.Ready, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsCreateRecordingResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsCreateRecordingResponse200.Json.g.cs deleted file mode 100644 index e58ab47..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsCreateRecordingResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsCreateRecordingResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsCreateRecordingResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.RecordingsCreateRecordingResponse200), - jsonSerializerContext) as global::ResembleAI.RecordingsCreateRecordingResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsCreateRecordingResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.RecordingsCreateRecordingResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.RecordingsCreateRecordingResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RecordingsCreateRecordingResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsCreateRecordingResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsCreateRecordingResponse200.g.cs deleted file mode 100644 index 76f7870..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsCreateRecordingResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class RecordingsCreateRecordingResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Item { 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 RecordingsCreateRecordingResponse200( - bool? success, - global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public RecordingsCreateRecordingResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsDeleteRecordingResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsDeleteRecordingResponse200.Json.g.cs deleted file mode 100644 index 781f531..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsDeleteRecordingResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsDeleteRecordingResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsDeleteRecordingResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.RecordingsDeleteRecordingResponse200), - jsonSerializerContext) as global::ResembleAI.RecordingsDeleteRecordingResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsDeleteRecordingResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.RecordingsDeleteRecordingResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.RecordingsDeleteRecordingResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RecordingsDeleteRecordingResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsDeleteRecordingResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsDeleteRecordingResponse200.g.cs deleted file mode 100644 index edfed36..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsDeleteRecordingResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class RecordingsDeleteRecordingResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 RecordingsDeleteRecordingResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public RecordingsDeleteRecordingResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsGetRecordingResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsGetRecordingResponse200.Json.g.cs deleted file mode 100644 index 537093d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsGetRecordingResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsGetRecordingResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsGetRecordingResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.RecordingsGetRecordingResponse200), - jsonSerializerContext) as global::ResembleAI.RecordingsGetRecordingResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsGetRecordingResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.RecordingsGetRecordingResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.RecordingsGetRecordingResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RecordingsGetRecordingResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsGetRecordingResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsGetRecordingResponse200.g.cs deleted file mode 100644 index 049574e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsGetRecordingResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class RecordingsGetRecordingResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Item { 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 RecordingsGetRecordingResponse200( - bool? success, - global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public RecordingsGetRecordingResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsListRecordingsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsListRecordingsResponse200.Json.g.cs deleted file mode 100644 index 4377773..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsListRecordingsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsListRecordingsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsListRecordingsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.RecordingsListRecordingsResponse200), - jsonSerializerContext) as global::ResembleAI.RecordingsListRecordingsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsListRecordingsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.RecordingsListRecordingsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.RecordingsListRecordingsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RecordingsListRecordingsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsListRecordingsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsListRecordingsResponse200.g.cs deleted file mode 100644 index bb7e8f4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsListRecordingsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class RecordingsListRecordingsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 RecordingsListRecordingsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public RecordingsListRecordingsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsUpdateRecordingResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsUpdateRecordingResponse200.Json.g.cs deleted file mode 100644 index e771205..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsUpdateRecordingResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsUpdateRecordingResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsUpdateRecordingResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.RecordingsUpdateRecordingResponse200), - jsonSerializerContext) as global::ResembleAI.RecordingsUpdateRecordingResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.RecordingsUpdateRecordingResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.RecordingsUpdateRecordingResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.RecordingsUpdateRecordingResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.RecordingsUpdateRecordingResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsUpdateRecordingResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsUpdateRecordingResponse200.g.cs deleted file mode 100644 index 365c865..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.RecordingsUpdateRecordingResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class RecordingsUpdateRecordingResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Item { 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 RecordingsUpdateRecordingResponse200( - bool? success, - global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public RecordingsUpdateRecordingResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextAskTranscriptQuestionResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextAskTranscriptQuestionResponse200.Json.g.cs deleted file mode 100644 index 901727c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextAskTranscriptQuestionResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextAskTranscriptQuestionResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200), - jsonSerializerContext) as global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextAskTranscriptQuestionResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextAskTranscriptQuestionResponse200.g.cs deleted file mode 100644 index 7d0f782..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextAskTranscriptQuestionResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextAskTranscriptQuestionResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? Item { 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 SpeechToTextAskTranscriptQuestionResponse200( - bool? success, - global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextAskTranscriptQuestionResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextCreateTranscriptResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextCreateTranscriptResponse200.Json.g.cs deleted file mode 100644 index c268885..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextCreateTranscriptResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextCreateTranscriptResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextCreateTranscriptResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextCreateTranscriptResponse200), - jsonSerializerContext) as global::ResembleAI.SpeechToTextCreateTranscriptResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextCreateTranscriptResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextCreateTranscriptResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextCreateTranscriptResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextCreateTranscriptResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextCreateTranscriptResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextCreateTranscriptResponse200.g.cs deleted file mode 100644 index 9ff7e19..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextCreateTranscriptResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextCreateTranscriptResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? Item { 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 SpeechToTextCreateTranscriptResponse200( - bool? success, - global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextCreateTranscriptResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 000b9bd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 4c7c16a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("duration_seconds")] - public double? DurationSeconds { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems( - global::System.Guid? uuid, - string? status, - double? durationSeconds, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.Status = status; - this.DurationSeconds = durationSeconds; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta.Json.g.cs deleted file mode 100644 index 487a52b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextGetResponsesContentApplicationJsonSchemaMeta - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta), - jsonSerializerContext) as global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta.g.cs deleted file mode 100644 index aac4a0b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextGetResponsesContentApplicationJsonSchemaMeta - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page")] - public int? Page { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("per_page")] - public int? PerPage { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_pages")] - public int? TotalPages { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_items")] - public int? TotalItems { 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 SpeechToTextGetResponsesContentApplicationJsonSchemaMeta( - int? page, - int? perPage, - int? totalPages, - int? totalItems) - { - this.Page = page; - this.PerPage = perPage; - this.TotalPages = totalPages; - this.TotalItems = totalItems; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextGetResponsesContentApplicationJsonSchemaMeta() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptQuestionResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptQuestionResponse200.Json.g.cs deleted file mode 100644 index 5d27e2e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptQuestionResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextGetTranscriptQuestionResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200), - jsonSerializerContext) as global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptQuestionResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptQuestionResponse200.g.cs deleted file mode 100644 index b50e9af..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptQuestionResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextGetTranscriptQuestionResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Item { 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 SpeechToTextGetTranscriptQuestionResponse200( - bool? success, - global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextGetTranscriptQuestionResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptResponse200.Json.g.cs deleted file mode 100644 index 3d8a21e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextGetTranscriptResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetTranscriptResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextGetTranscriptResponse200), - jsonSerializerContext) as global::ResembleAI.SpeechToTextGetTranscriptResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextGetTranscriptResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextGetTranscriptResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextGetTranscriptResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextGetTranscriptResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptResponse200.g.cs deleted file mode 100644 index 66f820e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextGetTranscriptResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextGetTranscriptResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? Item { 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 SpeechToTextGetTranscriptResponse200( - bool? success, - global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextGetTranscriptResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptQuestionsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptQuestionsResponse200.Json.g.cs deleted file mode 100644 index 22aadc6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptQuestionsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextListTranscriptQuestionsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200), - jsonSerializerContext) as global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptQuestionsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptQuestionsResponse200.g.cs deleted file mode 100644 index ea9cc91..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptQuestionsResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextListTranscriptQuestionsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? Meta { 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 SpeechToTextListTranscriptQuestionsResponse200( - bool? success, - global::System.Collections.Generic.IList? items, - global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? meta) - { - this.Success = success; - this.Items = items; - this.Meta = meta; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextListTranscriptQuestionsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptsResponse200.Json.g.cs deleted file mode 100644 index 3e7acc1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextListTranscriptsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextListTranscriptsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextListTranscriptsResponse200), - jsonSerializerContext) as global::ResembleAI.SpeechToTextListTranscriptsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextListTranscriptsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextListTranscriptsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextListTranscriptsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextListTranscriptsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptsResponse200.g.cs deleted file mode 100644 index 9afb443..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextListTranscriptsResponse200.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextListTranscriptsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? Meta { 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 SpeechToTextListTranscriptsResponse200( - bool? success, - global::System.Collections.Generic.IList? items, - global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? meta) - { - this.Success = success; - this.Items = items; - this.Meta = meta; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextListTranscriptsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index d6f28d0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 22495a2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,83 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextPostResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter))] - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? Status { get; set; } - - /// - /// Whether the transcript was created with zero retention - /// - [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] - public bool? PrivacyMode { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// Whether the transcript was created with zero retention - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeechToTextPostResponsesContentApplicationJsonSchemaItem( - global::System.Guid? uuid, - global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? status, - bool? privacyMode, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.Status = status; - this.PrivacyMode = privacyMode; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextPostResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.g.cs deleted file mode 100644 index 53878a1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus - { - /// - /// - /// - Completed, - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus value) - { - return value switch - { - SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Completed => "completed", - SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Failed => "failed", - SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Pending => "pending", - SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Processing => "processing", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? ToEnum(string value) - { - return value switch - { - "completed" => SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Completed, - "failed" => SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Failed, - "pending" => SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Pending, - "processing" => SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus.Processing, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 13815d0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index eb7b8f0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcript_uuid")] - public global::System.Guid? TranscriptUuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { 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 SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem( - global::System.Guid? uuid, - global::System.Guid? transcriptUuid, - string? query, - string? status, - global::System.DateTime? createdAt) - { - this.Uuid = uuid; - this.TranscriptUuid = transcriptUuid; - this.Query = query; - this.Status = status; - this.CreatedAt = createdAt; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 89553ad..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index c6418ca..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,163 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter))] - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? Status { get; set; } - - /// - /// Absent for zero-retention transcripts after the content purge - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - public global::System.Collections.Generic.IList? Words { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("duration_seconds")] - public double? DurationSeconds { get; set; } - - /// - /// Absent once the media has been deleted (zero retention) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_url")] - public string? FileUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("answer")] - public string? Answer { get; set; } - - /// - /// Whether the transcript was created with zero retention - /// - [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] - public bool? PrivacyMode { get; set; } - - /// - /// When the uploaded media was permanently deleted (zero retention) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_deleted_at")] - public global::System.DateTime? FileDeletedAt { get; set; } - - /// - /// When the transcript content was permanently purged (zero retention) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content_deleted_at")] - public global::System.DateTime? ContentDeletedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// Absent for zero-retention transcripts after the content purge - /// - /// - /// - /// - /// Absent once the media has been deleted (zero retention) - /// - /// - /// - /// - /// Whether the transcript was created with zero retention - /// - /// - /// When the uploaded media was permanently deleted (zero retention) - /// - /// - /// When the transcript content was permanently purged (zero retention) - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem( - global::System.Guid? uuid, - global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? status, - string? text, - global::System.Collections.Generic.IList? words, - double? durationSeconds, - string? fileUrl, - string? query, - string? answer, - bool? privacyMode, - global::System.DateTime? fileDeletedAt, - global::System.DateTime? contentDeletedAt, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.Status = status; - this.Text = text; - this.Words = words; - this.DurationSeconds = durationSeconds; - this.FileUrl = fileUrl; - this.Query = query; - this.Answer = answer; - this.PrivacyMode = privacyMode; - this.FileDeletedAt = fileDeletedAt; - this.ContentDeletedAt = contentDeletedAt; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs deleted file mode 100644 index 4e834cd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public enum SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus - { - /// - /// - /// - Completed, - /// - /// - /// - Failed, - /// - /// - /// - Pending, - /// - /// - /// - Processing, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus value) - { - return value switch - { - SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Completed => "completed", - SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Failed => "failed", - SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Pending => "pending", - SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Processing => "processing", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? ToEnum(string value) - { - return value switch - { - "completed" => SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Completed, - "failed" => SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Failed, - "pending" => SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Pending, - "processing" => SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus.Processing, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems.Json.g.cs deleted file mode 100644 index d0f2199..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems), - jsonSerializerContext) as global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems.g.cs deleted file mode 100644 index d5df59e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("start_time")] - public double? StartTime { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] - public double? EndTime { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker_id")] - public string? SpeakerId { 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 SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems( - string? text, - double? startTime, - double? endTime, - string? speakerId) - { - this.Text = text; - this.StartTime = startTime; - this.EndTime = endTime; - this.SpeakerId = speakerId; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 9a8c1cf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index a219253..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("answer")] - public string? Answer { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { 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 SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems( - global::System.Guid? uuid, - string? query, - string? answer, - string? status, - global::System.DateTime? createdAt) - { - this.Uuid = uuid; - this.Query = query; - this.Answer = answer; - this.Status = status; - this.CreatedAt = createdAt; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta.Json.g.cs deleted file mode 100644 index a6590c3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta), - jsonSerializerContext) as global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta.g.cs deleted file mode 100644 index 39663ee..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index dccd552..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index bd5364b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,98 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] - public global::System.Guid? Uuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("transcript_uuid")] - public global::System.Guid? TranscriptUuid { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("answer")] - public string? Answer { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - public string? Status { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] - public global::System.DateTime? CreatedAt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] - public global::System.DateTime? UpdatedAt { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem( - global::System.Guid? uuid, - global::System.Guid? transcriptUuid, - string? query, - string? answer, - string? status, - global::System.DateTime? createdAt, - global::System.DateTime? updatedAt) - { - this.Uuid = uuid; - this.TranscriptUuid = transcriptUuid; - this.Query = query; - this.Answer = answer; - this.Status = status; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - } - - /// - /// Initializes a new instance of the class. - /// - public SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamPostRequestBodyContentApplicationJsonSchemaPrecision.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamPostRequestBodyContentApplicationJsonSchemaPrecision.g.cs deleted file mode 100644 index 1bcb1c3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamPostRequestBodyContentApplicationJsonSchemaPrecision.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Audio precision
- /// Default Value: PCM_32 - ///
- public enum StreamPostRequestBodyContentApplicationJsonSchemaPrecision - { - /// - /// - /// - Mulaw, - /// - /// - /// - Pcm16, - /// - /// - /// - Pcm24, - /// - /// - /// - Pcm32, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class StreamPostRequestBodyContentApplicationJsonSchemaPrecisionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this StreamPostRequestBodyContentApplicationJsonSchemaPrecision value) - { - return value switch - { - StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Mulaw => "MULAW", - StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Pcm16 => "PCM_16", - StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Pcm24 => "PCM_24", - StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Pcm32 => "PCM_32", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static StreamPostRequestBodyContentApplicationJsonSchemaPrecision? ToEnum(string value) - { - return value switch - { - "MULAW" => StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Mulaw, - "PCM_16" => StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Pcm16, - "PCM_24" => StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Pcm24, - "PCM_32" => StreamPostRequestBodyContentApplicationJsonSchemaPrecision.Pcm32, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs deleted file mode 100644 index 1f1dbc5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Audio sample rate in Hz - /// - public enum StreamPostRequestBodyContentApplicationJsonSchemaSampleRate - { - /// - /// - /// - x16000, - /// - /// - /// - x22050, - /// - /// - /// - x32000, - /// - /// - /// - x44100, - /// - /// - /// - x48000, - /// - /// - /// - x8000, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class StreamPostRequestBodyContentApplicationJsonSchemaSampleRateExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this StreamPostRequestBodyContentApplicationJsonSchemaSampleRate value) - { - return value switch - { - StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x16000 => "16000", - StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x22050 => "22050", - StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x32000 => "32000", - StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x44100 => "44100", - StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x48000 => "48000", - StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x8000 => "8000", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? ToEnum(string value) - { - return value switch - { - "16000" => StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x16000, - "22050" => StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x22050, - "32000" => StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x32000, - "44100" => StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x44100, - "48000" => StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x48000, - "8000" => StreamPostRequestBodyContentApplicationJsonSchemaSampleRate.x8000, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.Json.g.cs deleted file mode 100644 index 1924694..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class StreamSynthesizeRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.StreamSynthesizeRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.StreamSynthesizeRequest), - jsonSerializerContext) as global::ResembleAI.StreamSynthesizeRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.StreamSynthesizeRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.StreamSynthesizeRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.StreamSynthesizeRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.StreamSynthesizeRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs deleted file mode 100644 index e984ad6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs +++ /dev/null @@ -1,122 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class StreamSynthesizeRequest - { - /// - /// Voice UUID to use for synthesis - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice_uuid")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string VoiceUuid { get; set; } - - /// - /// Text or SSML to synthesize (max 2000 characters) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Data { get; set; } - - /// - /// Optional project UUID to store the clip - /// - [global::System.Text.Json.Serialization.JsonPropertyName("project_uuid")] - public string? ProjectUuid { get; set; } - - /// - /// Audio precision
- /// Default Value: PCM_32 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("precision")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter))] - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? Precision { get; set; } - - /// - /// Audio sample rate in Hz - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sample_rate")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter))] - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? SampleRate { get; set; } - - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("use_hd")] - public bool? UseHd { get; set; } - - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("apply_custom_pronunciations")] - public bool? ApplyCustomPronunciations { 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. - /// - /// - /// Voice UUID to use for synthesis - /// - /// - /// Text or SSML to synthesize (max 2000 characters) - /// - /// - /// Optional project UUID to store the clip - /// - /// - /// Audio precision
- /// Default Value: PCM_32 - /// - /// - /// Audio sample rate in Hz - /// - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - /// - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public StreamSynthesizeRequest( - string voiceUuid, - string data, - string? projectUuid, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? precision, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate, - bool? useHd, - bool? applyCustomPronunciations) - { - this.VoiceUuid = voiceUuid ?? throw new global::System.ArgumentNullException(nameof(voiceUuid)); - this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); - this.ProjectUuid = projectUuid; - this.Precision = precision; - this.SampleRate = sampleRate; - this.UseHd = useHd; - this.ApplyCustomPronunciations = applyCustomPronunciations; - } - - /// - /// Initializes a new instance of the class. - /// - public StreamSynthesizeRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.g.cs deleted file mode 100644 index e8b0298..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.g.cs +++ /dev/null @@ -1,52 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Audio output format
- /// Default Value: wav - ///
- public enum SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat - { - /// - /// - /// - Mp3, - /// - /// - /// - Wav, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat value) - { - return value switch - { - SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.Mp3 => "mp3", - SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.Wav => "wav", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? ToEnum(string value) - { - return value switch - { - "mp3" => SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.Mp3, - "wav" => SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat.Wav, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.g.cs deleted file mode 100644 index 53964e5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Audio precision for WAV output
- /// Default Value: PCM_32 - ///
- public enum SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision - { - /// - /// - /// - Mulaw, - /// - /// - /// - Pcm16, - /// - /// - /// - Pcm24, - /// - /// - /// - Pcm32, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision value) - { - return value switch - { - SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Mulaw => "MULAW", - SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Pcm16 => "PCM_16", - SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Pcm24 => "PCM_24", - SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Pcm32 => "PCM_32", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? ToEnum(string value) - { - return value switch - { - "MULAW" => SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Mulaw, - "PCM_16" => SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Pcm16, - "PCM_24" => SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Pcm24, - "PCM_32" => SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision.Pcm32, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs deleted file mode 100644 index b13952e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// Audio sample rate in Hz - /// - public enum SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate - { - /// - /// - /// - x16000, - /// - /// - /// - x22050, - /// - /// - /// - x32000, - /// - /// - /// - x44100, - /// - /// - /// - x48000, - /// - /// - /// - x8000, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate value) - { - return value switch - { - SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x16000 => "16000", - SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x22050 => "22050", - SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x32000 => "32000", - SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x44100 => "44100", - SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x48000 => "48000", - SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x8000 => "8000", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? ToEnum(string value) - { - return value switch - { - "16000" => SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x16000, - "22050" => SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x22050, - "32000" => SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x32000, - "44100" => SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x44100, - "48000" => SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x48000, - "8000" => SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate.x8000, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.Json.g.cs deleted file mode 100644 index 97cebfb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SynthesizeRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.SynthesizeRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.SynthesizeRequest), - jsonSerializerContext) as global::ResembleAI.SynthesizeRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.SynthesizeRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.SynthesizeRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.SynthesizeRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.SynthesizeRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs deleted file mode 100644 index 5db82d9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs +++ /dev/null @@ -1,147 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class SynthesizeRequest - { - /// - /// Voice UUID to use for synthesis - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice_uuid")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string VoiceUuid { get; set; } - - /// - /// Optional project UUID to store the clip - /// - [global::System.Text.Json.Serialization.JsonPropertyName("project_uuid")] - public string? ProjectUuid { get; set; } - - /// - /// Optional title for the generated clip - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Text or SSML to synthesize (max 3,000 characters) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Data { get; set; } - - /// - /// Audio precision for WAV output
- /// Default Value: PCM_32 - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("precision")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter))] - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? Precision { get; set; } - - /// - /// Audio output format
- /// Default Value: wav - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter))] - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? OutputFormat { get; set; } - - /// - /// Audio sample rate in Hz - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sample_rate")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter))] - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? SampleRate { get; set; } - - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("use_hd")] - public bool? UseHd { get; set; } - - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("apply_custom_pronunciations")] - public bool? ApplyCustomPronunciations { 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. - /// - /// - /// Voice UUID to use for synthesis - /// - /// - /// Text or SSML to synthesize (max 3,000 characters) - /// - /// - /// Optional project UUID to store the clip - /// - /// - /// Optional title for the generated clip - /// - /// - /// Audio precision for WAV output
- /// Default Value: PCM_32 - /// - /// - /// Audio output format
- /// Default Value: wav - /// - /// - /// Audio sample rate in Hz - /// - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - /// - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SynthesizeRequest( - string voiceUuid, - string data, - string? projectUuid, - string? title, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? precision, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? outputFormat, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate, - bool? useHd, - bool? applyCustomPronunciations) - { - this.VoiceUuid = voiceUuid ?? throw new global::System.ArgumentNullException(nameof(voiceUuid)); - this.ProjectUuid = projectUuid; - this.Title = title; - this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); - this.Precision = precision; - this.OutputFormat = outputFormat; - this.SampleRate = sampleRate; - this.UseHd = useHd; - this.ApplyCustomPronunciations = applyCustomPronunciations; - } - - /// - /// Initializes a new instance of the class. - /// - public SynthesizeRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsCreateTermSubstitutionResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsCreateTermSubstitutionResponse200.Json.g.cs deleted file mode 100644 index 39576a1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsCreateTermSubstitutionResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsCreateTermSubstitutionResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsCreateTermSubstitutionResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsCreateTermSubstitutionResponse200.g.cs deleted file mode 100644 index 5721d02..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsCreateTermSubstitutionResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsCreateTermSubstitutionResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Item { 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 TermSubstitutionsCreateTermSubstitutionResponse200( - bool? success, - global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public TermSubstitutionsCreateTermSubstitutionResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsDeleteTermSubstitutionResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsDeleteTermSubstitutionResponse200.Json.g.cs deleted file mode 100644 index 1d42d0c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsDeleteTermSubstitutionResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsDeleteTermSubstitutionResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsDeleteTermSubstitutionResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsDeleteTermSubstitutionResponse200.g.cs deleted file mode 100644 index cbdad8a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsDeleteTermSubstitutionResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsDeleteTermSubstitutionResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 TermSubstitutionsDeleteTermSubstitutionResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public TermSubstitutionsDeleteTermSubstitutionResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index 4142083..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index e7fedf8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetTermSubstitutionResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetTermSubstitutionResponse200.Json.g.cs deleted file mode 100644 index 34bf1c8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetTermSubstitutionResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsGetTermSubstitutionResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetTermSubstitutionResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetTermSubstitutionResponse200.g.cs deleted file mode 100644 index bd60ec5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsGetTermSubstitutionResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsGetTermSubstitutionResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Item { 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 TermSubstitutionsGetTermSubstitutionResponse200( - bool? success, - global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public TermSubstitutionsGetTermSubstitutionResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index b33bc6b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 06ceaad..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsListTermSubstitutionsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsListTermSubstitutionsResponse200.Json.g.cs deleted file mode 100644 index a64010d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsListTermSubstitutionsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsListTermSubstitutionsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsListTermSubstitutionsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsListTermSubstitutionsResponse200.g.cs deleted file mode 100644 index 4096431..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsListTermSubstitutionsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsListTermSubstitutionsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 TermSubstitutionsListTermSubstitutionsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public TermSubstitutionsListTermSubstitutionsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 2dceaab..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 87ea43b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.TextToSpeechSynthesizeResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextToSpeechSynthesizeResponse200.Json.g.cs deleted file mode 100644 index 7207028..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextToSpeechSynthesizeResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TextToSpeechSynthesizeResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.TextToSpeechSynthesizeResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.TextToSpeechSynthesizeResponse200), - jsonSerializerContext) as global::ResembleAI.TextToSpeechSynthesizeResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.TextToSpeechSynthesizeResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.TextToSpeechSynthesizeResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.TextToSpeechSynthesizeResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TextToSpeechSynthesizeResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextToSpeechSynthesizeResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextToSpeechSynthesizeResponse200.g.cs deleted file mode 100644 index b70c0c2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextToSpeechSynthesizeResponse200.g.cs +++ /dev/null @@ -1,122 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class TextToSpeechSynthesizeResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// Base64-encoded audio bytes - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_content")] - public byte[]? AudioContent { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_timestamps")] - public global::ResembleAI.AudioTimestamps? AudioTimestamps { get; set; } - - /// - /// Audio duration in seconds - /// - [global::System.Text.Json.Serialization.JsonPropertyName("duration")] - public double? Duration { get; set; } - - /// - /// Raw synthesis time - /// - [global::System.Text.Json.Serialization.JsonPropertyName("synth_duration")] - public double? SynthDuration { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output_format")] - public string? OutputFormat { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sample_rate")] - public int? SampleRate { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("issues")] - public global::System.Collections.Generic.IList? Issues { 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. - /// - /// - /// - /// Base64-encoded audio bytes - /// - /// - /// - /// Audio duration in seconds - /// - /// - /// Raw synthesis time - /// - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TextToSpeechSynthesizeResponse200( - bool? success, - byte[]? audioContent, - global::ResembleAI.AudioTimestamps? audioTimestamps, - double? duration, - double? synthDuration, - string? outputFormat, - int? sampleRate, - string? title, - global::System.Collections.Generic.IList? issues) - { - this.Success = success; - this.AudioContent = audioContent; - this.AudioTimestamps = audioTimestamps; - this.Duration = duration; - this.SynthDuration = synthDuration; - this.OutputFormat = outputFormat; - this.SampleRate = sampleRate; - this.Title = title; - this.Issues = issues; - } - - /// - /// Initializes a new instance of the class. - /// - public TextToSpeechSynthesizeResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateClipRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateClipRequest.Json.g.cs deleted file mode 100644 index 1bbbb4e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateClipRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateClipRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateClipRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateClipRequest), - jsonSerializerContext) as global::ResembleAI.UpdateClipRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateClipRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.UpdateClipRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.UpdateClipRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateClipRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateClipRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateClipRequest.g.cs deleted file mode 100644 index 83c9351..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateClipRequest.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateClipRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("body")] - public string? Body { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_archived")] - public bool? IsArchived { 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 UpdateClipRequest( - string? title, - string? body, - bool? isArchived) - { - this.Title = title; - this.Body = body; - this.IsArchived = isArchived; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateClipRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateDuetVoiceRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateDuetVoiceRequest.Json.g.cs deleted file mode 100644 index 4520700..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateDuetVoiceRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateDuetVoiceRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateDuetVoiceRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateDuetVoiceRequest), - jsonSerializerContext) as global::ResembleAI.UpdateDuetVoiceRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateDuetVoiceRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.UpdateDuetVoiceRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.UpdateDuetVoiceRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateDuetVoiceRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateDuetVoiceRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateDuetVoiceRequest.g.cs deleted file mode 100644 index e25c07b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateDuetVoiceRequest.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateDuetVoiceRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("style_prompt")] - public string? StylePrompt { 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 UpdateDuetVoiceRequest( - string? name, - string? stylePrompt) - { - this.Name = name; - this.StylePrompt = stylePrompt; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateDuetVoiceRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateProjectRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateProjectRequest.Json.g.cs deleted file mode 100644 index 6e9866b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateProjectRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateProjectRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateProjectRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateProjectRequest), - jsonSerializerContext) as global::ResembleAI.UpdateProjectRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateProjectRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.UpdateProjectRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.UpdateProjectRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateProjectRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateProjectRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateProjectRequest.g.cs deleted file mode 100644 index 3971671..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateProjectRequest.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateProjectRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_collaborative")] - public bool? IsCollaborative { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_archived")] - public bool? IsArchived { 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 UpdateProjectRequest( - string? name, - string? description, - bool? isCollaborative, - bool? isArchived) - { - this.Name = name; - this.Description = description; - this.IsCollaborative = isCollaborative; - this.IsArchived = isArchived; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateProjectRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdatePronunciationRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdatePronunciationRequest.Json.g.cs deleted file mode 100644 index 21a3c39..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdatePronunciationRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdatePronunciationRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdatePronunciationRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdatePronunciationRequest), - jsonSerializerContext) as global::ResembleAI.UpdatePronunciationRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdatePronunciationRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.UpdatePronunciationRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.UpdatePronunciationRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdatePronunciationRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdatePronunciationRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdatePronunciationRequest.g.cs deleted file mode 100644 index 7144e53..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdatePronunciationRequest.g.cs +++ /dev/null @@ -1,47 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdatePronunciationRequest - { - /// - /// Set to false to disable, true to re-enable - /// - [global::System.Text.Json.Serialization.JsonPropertyName("active")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Active { 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. - /// - /// - /// Set to false to disable, true to re-enable - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UpdatePronunciationRequest( - bool active) - { - this.Active = active; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdatePronunciationRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateRecordingRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateRecordingRequest.Json.g.cs deleted file mode 100644 index 1e7f881..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateRecordingRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateRecordingRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateRecordingRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateRecordingRequest), - jsonSerializerContext) as global::ResembleAI.UpdateRecordingRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateRecordingRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.UpdateRecordingRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.UpdateRecordingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateRecordingRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateRecordingRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateRecordingRequest.g.cs deleted file mode 100644 index f1fc45e..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateRecordingRequest.g.cs +++ /dev/null @@ -1,71 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateRecordingRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("emotion")] - public string? Emotion { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_active")] - public bool? IsActive { 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 UpdateRecordingRequest( - string? name, - string? text, - string? emotion, - bool? isActive) - { - this.Name = name; - this.Text = text; - this.Emotion = emotion; - this.IsActive = isActive; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateRecordingRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateVoiceSettingsPresetRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateVoiceSettingsPresetRequest.Json.g.cs deleted file mode 100644 index 3b844e5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateVoiceSettingsPresetRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class UpdateVoiceSettingsPresetRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.UpdateVoiceSettingsPresetRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.UpdateVoiceSettingsPresetRequest), - jsonSerializerContext) as global::ResembleAI.UpdateVoiceSettingsPresetRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.UpdateVoiceSettingsPresetRequest? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.UpdateVoiceSettingsPresetRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.UpdateVoiceSettingsPresetRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.UpdateVoiceSettingsPresetRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateVoiceSettingsPresetRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateVoiceSettingsPresetRequest.g.cs deleted file mode 100644 index 2601dd8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.UpdateVoiceSettingsPresetRequest.g.cs +++ /dev/null @@ -1,98 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class UpdateVoiceSettingsPresetRequest - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pace")] - public double? Pace { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public double? Temperature { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pitch")] - public double? Pitch { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("useHd")] - public bool? UseHd { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exaggeration")] - public double? Exaggeration { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { 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 UpdateVoiceSettingsPresetRequest( - string? name, - double? pace, - double? temperature, - double? pitch, - bool? useHd, - double? exaggeration, - string? description) - { - this.Name = name; - this.Pace = pace; - this.Temperature = temperature; - this.Pitch = pitch; - this.UseHd = useHd; - this.Exaggeration = exaggeration; - this.Description = description; - } - - /// - /// Initializes a new instance of the class. - /// - public UpdateVoiceSettingsPresetRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.Json.g.cs deleted file mode 100644 index ba68059..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.g.cs deleted file mode 100644 index 5835055..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Data { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public 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. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201( - bool? success, - global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? data, - string? message) - { - this.Success = success; - this.Data = data; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.Json.g.cs deleted file mode 100644 index cf6f8bd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.g.cs deleted file mode 100644 index d8927b4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index b41f3ce..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index a90a991..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.Json.g.cs deleted file mode 100644 index e2289c1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsGetVoiceSettingsPresetResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.g.cs deleted file mode 100644 index 1ec8e80..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsGetVoiceSettingsPresetResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Data { 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 VoiceSettingsPresetsGetVoiceSettingsPresetResponse200( - bool? success, - global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? data) - { - this.Success = success; - this.Data = data; - } - - /// - /// Initializes a new instance of the class. - /// - public VoiceSettingsPresetsGetVoiceSettingsPresetResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.Json.g.cs deleted file mode 100644 index f8110d2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsListVoiceSettingsPresetsResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.g.cs deleted file mode 100644 index 1ef822d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsListVoiceSettingsPresetsResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 VoiceSettingsPresetsListVoiceSettingsPresetsResponse200( - bool? success, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public VoiceSettingsPresetsListVoiceSettingsPresetsResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData.Json.g.cs deleted file mode 100644 index 1411efe..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData.g.cs deleted file mode 100644 index 40f7d95..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.Json.g.cs deleted file mode 100644 index f8d2d92..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.g.cs deleted file mode 100644 index b37a6e3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Data { 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 VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200( - bool? success, - global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? data) - { - this.Success = success; - this.Data = data; - } - - /// - /// Initializes a new instance of the class. - /// - public VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData.Json.g.cs deleted file mode 100644 index 517daab..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData.g.cs deleted file mode 100644 index 606f17f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData.Json.g.cs deleted file mode 100644 index 4e3cc56..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData), - jsonSerializerContext) as global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData.g.cs deleted file mode 100644 index 5bc93a1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoicesBuildVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesBuildVoiceResponse200.Json.g.cs deleted file mode 100644 index 1aac785..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesBuildVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesBuildVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesBuildVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesBuildVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.VoicesBuildVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesBuildVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesBuildVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesBuildVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesBuildVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesBuildVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesBuildVoiceResponse200.g.cs deleted file mode 100644 index 9bb6ad3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesBuildVoiceResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesBuildVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public 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. - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public VoicesBuildVoiceResponse200( - bool? success, - string? message) - { - this.Success = success; - this.Message = message; - } - - /// - /// Initializes a new instance of the class. - /// - public VoicesBuildVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesCreateVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesCreateVoiceResponse200.Json.g.cs deleted file mode 100644 index 15c41b4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesCreateVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesCreateVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesCreateVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesCreateVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.VoicesCreateVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesCreateVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesCreateVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesCreateVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesCreateVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesCreateVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesCreateVoiceResponse200.g.cs deleted file mode 100644 index 8d9aa46..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesCreateVoiceResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesCreateVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Item { 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 VoicesCreateVoiceResponse200( - bool? success, - global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public VoicesCreateVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesDeleteVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesDeleteVoiceResponse200.Json.g.cs deleted file mode 100644 index ecbeffa..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesDeleteVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesDeleteVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesDeleteVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesDeleteVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.VoicesDeleteVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesDeleteVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesDeleteVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesDeleteVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesDeleteVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesDeleteVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesDeleteVoiceResponse200.g.cs deleted file mode 100644 index 8f40feb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesDeleteVoiceResponse200.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesDeleteVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { 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 VoicesDeleteVoiceResponse200( - bool? success) - { - this.Success = success; - } - - /// - /// Initializes a new instance of the class. - /// - public VoicesDeleteVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesGetVoiceResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesGetVoiceResponse200.Json.g.cs deleted file mode 100644 index c38e8cb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesGetVoiceResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesGetVoiceResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesGetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesGetVoiceResponse200), - jsonSerializerContext) as global::ResembleAI.VoicesGetVoiceResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesGetVoiceResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesGetVoiceResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesGetVoiceResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesGetVoiceResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesGetVoiceResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesGetVoiceResponse200.g.cs deleted file mode 100644 index 96de99a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesGetVoiceResponse200.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesGetVoiceResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Item { 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 VoicesGetVoiceResponse200( - bool? success, - global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? item) - { - this.Success = success; - this.Item = item; - } - - /// - /// Initializes a new instance of the class. - /// - public VoicesGetVoiceResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesListVoicesResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesListVoicesResponse200.Json.g.cs deleted file mode 100644 index 6ba85ea..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesListVoicesResponse200.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesListVoicesResponse200 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesListVoicesResponse200? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesListVoicesResponse200), - jsonSerializerContext) as global::ResembleAI.VoicesListVoicesResponse200; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesListVoicesResponse200? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesListVoicesResponse200? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesListVoicesResponse200), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesListVoicesResponse200; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesListVoicesResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesListVoicesResponse200.g.cs deleted file mode 100644 index 7f2dded..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesListVoicesResponse200.g.cs +++ /dev/null @@ -1,80 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesListVoicesResponse200 - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("success")] - public bool? Success { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page")] - public int? Page { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("num_pages")] - public int? NumPages { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("page_size")] - public int? PageSize { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { 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 VoicesListVoicesResponse200( - bool? success, - int? page, - int? numPages, - int? pageSize, - global::System.Collections.Generic.IList? items) - { - this.Success = success; - this.Page = page; - this.NumPages = numPages; - this.PageSize = pageSize; - this.Items = items; - } - - /// - /// Initializes a new instance of the class. - /// - public VoicesListVoicesResponse200() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs deleted file mode 100644 index ae5731c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index 40345a9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 61111d3..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 2336706..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 0602cce..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 5872c4c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs deleted file mode 100644 index 640b757..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::ResembleAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem.g.cs deleted file mode 100644 index 3315888..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem - { - - /// - /// Additional properties that are not explicitly defined 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/ResembleAI/Generated/ResembleAI.Projects.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Projects.JsonSerializerContext.g.cs deleted file mode 100644 index 399da0a..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Projects.JsonSerializerContext.g.cs +++ /dev/null @@ -1,143 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsListProjectsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsCreateProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsGetProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsUpdateProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ProjectsDeleteProjectResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateProjectRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateProjectRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class ProjectsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class ProjectsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static ProjectsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private ProjectsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new ProjectsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index b5824e5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.Constructors.Bearer.g.cs deleted file mode 100644 index 68612e8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class ProjectsClient - { - /// - - public ProjectsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.CreateProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.CreateProject.g.cs deleted file mode 100644 index dfe45f8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.CreateProject.g.cs +++ /dev/null @@ -1,479 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ProjectsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateProjectServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateProjectSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateProjectSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateProjectSecurityRequirement0, - }; - partial void PrepareCreateProjectArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateProjectRequest request); - partial void PrepareCreateProjectRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateProjectRequest request); - partial void ProcessCreateProjectResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateProjectResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create project
- /// Create a new project - ///
- /// - /// 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 CreateProjectAsync( - - global::ResembleAI.CreateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateProjectAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create project
- /// Create a new project - ///
- /// - /// 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> CreateProjectAsResponseAsync( - - global::ResembleAI.CreateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateProjectArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateProjectSecurityRequirements, - operationName: "CreateProjectAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/projects", - baseUri: ResolveBaseUri( - servers: s_CreateProjectServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateProjectRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateProject", - methodName: "CreateProjectAsync", - pathTemplate: "\"/projects\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateProject", - methodName: "CreateProjectAsync", - pathTemplate: "\"/projects\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateProject", - methodName: "CreateProjectAsync", - pathTemplate: "\"/projects\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateProjectResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateProject", - methodName: "CreateProjectAsync", - pathTemplate: "\"/projects\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateProject", - methodName: "CreateProjectAsync", - pathTemplate: "\"/projects\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateProjectResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ProjectsCreateProjectResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ProjectsCreateProjectResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create project
- /// Create a new project - ///
- /// - /// - /// - /// - /// 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 CreateProjectAsync( - string name, - string description, - bool isCollaborative, - bool isArchived, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateProjectRequest - { - Name = name, - Description = description, - IsCollaborative = isCollaborative, - IsArchived = isArchived, - }; - - return await CreateProjectAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.DeleteProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.DeleteProject.g.cs deleted file mode 100644 index 9856bd0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.DeleteProject.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ProjectsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteProjectServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteProjectSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteProjectSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteProjectSecurityRequirement0, - }; - partial void PrepareDeleteProjectArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid); - partial void PrepareDeleteProjectRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid); - partial void ProcessDeleteProjectResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteProjectResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete project
- /// Delete a project - ///
- /// - /// 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 DeleteProjectAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteProjectAsResponseAsync( - projectUuid: projectUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete project
- /// Delete a project - ///
- /// - /// 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> DeleteProjectAsResponseAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteProjectArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteProjectSecurityRequirements, - operationName: "DeleteProjectAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteProjectServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteProjectRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteProject", - methodName: "DeleteProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteProject", - methodName: "DeleteProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteProject", - methodName: "DeleteProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteProjectResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteProject", - methodName: "DeleteProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteProject", - methodName: "DeleteProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteProjectResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ProjectsDeleteProjectResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ProjectsDeleteProjectResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.ProjectsClient.GetProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.GetProject.g.cs deleted file mode 100644 index 2f46bcf..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.GetProject.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ProjectsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetProjectServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetProjectSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetProjectSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetProjectSecurityRequirement0, - }; - partial void PrepareGetProjectArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid); - partial void PrepareGetProjectRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid); - partial void ProcessGetProjectResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetProjectResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get project
- /// Get project details - ///
- /// - /// 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 GetProjectAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetProjectAsResponseAsync( - projectUuid: projectUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get project
- /// Get project details - ///
- /// - /// 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> GetProjectAsResponseAsync( - string projectUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetProjectArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetProjectSecurityRequirements, - operationName: "GetProjectAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}", - baseUri: ResolveBaseUri( - servers: s_GetProjectServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetProjectRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetProject", - methodName: "GetProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetProject", - methodName: "GetProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetProject", - methodName: "GetProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetProjectResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetProject", - methodName: "GetProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetProject", - methodName: "GetProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetProjectResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ProjectsGetProjectResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ProjectsGetProjectResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.ProjectsClient.ListProjects.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.ListProjects.g.cs deleted file mode 100644 index 00036a2..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.ListProjects.g.cs +++ /dev/null @@ -1,457 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ProjectsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListProjectsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListProjectsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListProjectsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListProjectsSecurityRequirement0, - }; - partial void PrepareListProjectsArguments( - global::System.Net.Http.HttpClient httpClient, - ref int page, - ref int? pageSize); - partial void PrepareListProjectsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int page, - int? pageSize); - partial void ProcessListProjectsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListProjectsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List projects
- /// List all projects - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListProjectsAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListProjectsAsResponseAsync( - page: page, - pageSize: pageSize, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List projects
- /// List all projects - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListProjectsAsResponseAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListProjectsArguments( - httpClient: HttpClient, - page: ref page, - pageSize: ref pageSize); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListProjectsSecurityRequirements, - operationName: "ListProjectsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/projects", - baseUri: ResolveBaseUri( - servers: s_ListProjectsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("page_size", pageSize?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListProjectsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - page: page, - pageSize: pageSize); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListProjects", - methodName: "ListProjectsAsync", - pathTemplate: "\"/projects\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListProjects", - methodName: "ListProjectsAsync", - pathTemplate: "\"/projects\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListProjects", - methodName: "ListProjectsAsync", - pathTemplate: "\"/projects\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListProjectsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListProjects", - methodName: "ListProjectsAsync", - pathTemplate: "\"/projects\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListProjects", - methodName: "ListProjectsAsync", - pathTemplate: "\"/projects\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListProjectsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ProjectsListProjectsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ProjectsListProjectsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.ProjectsClient.UpdateProject.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.UpdateProject.g.cs deleted file mode 100644 index 94b2c35..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.UpdateProject.g.cs +++ /dev/null @@ -1,491 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class ProjectsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateProjectServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateProjectSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateProjectSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateProjectSecurityRequirement0, - }; - partial void PrepareUpdateProjectArguments( - global::System.Net.Http.HttpClient httpClient, - ref string projectUuid, - global::ResembleAI.UpdateProjectRequest request); - partial void PrepareUpdateProjectRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string projectUuid, - global::ResembleAI.UpdateProjectRequest request); - partial void ProcessUpdateProjectResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateProjectResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update project
- /// Update a project - ///
- /// - /// - /// 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 UpdateProjectAsync( - string projectUuid, - - global::ResembleAI.UpdateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateProjectAsResponseAsync( - projectUuid: projectUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update project
- /// Update a project - ///
- /// - /// - /// 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> UpdateProjectAsResponseAsync( - string projectUuid, - - global::ResembleAI.UpdateProjectRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateProjectArguments( - httpClient: HttpClient, - projectUuid: ref projectUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateProjectSecurityRequirements, - operationName: "UpdateProjectAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/projects/{projectUuid}", - baseUri: ResolveBaseUri( - servers: s_UpdateProjectServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Put, - 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); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateProjectRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - projectUuid: projectUuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateProject", - methodName: "UpdateProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateProject", - methodName: "UpdateProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateProject", - methodName: "UpdateProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessUpdateProjectResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateProject", - methodName: "UpdateProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateProject", - methodName: "UpdateProjectAsync", - pathTemplate: "$\"/projects/{projectUuid}\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessUpdateProjectResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.ProjectsUpdateProjectResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.ProjectsUpdateProjectResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update project
- /// Update a project - ///
- /// - /// - /// - /// - /// - /// 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 UpdateProjectAsync( - string projectUuid, - string? name = default, - string? description = default, - bool? isCollaborative = default, - bool? isArchived = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateProjectRequest - { - Name = name, - Description = description, - IsCollaborative = isCollaborative, - IsArchived = isArchived, - }; - - return await UpdateProjectAsync( - projectUuid: projectUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.g.cs deleted file mode 100644 index fdf959f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ProjectsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class ProjectsClient : global::ResembleAI.IProjectsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.ProjectsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the ProjectsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public ProjectsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the ProjectsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public ProjectsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the ProjectsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public ProjectsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Recordings.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Recordings.JsonSerializerContext.g.cs deleted file mode 100644 index 38de943..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Recordings.JsonSerializerContext.g.cs +++ /dev/null @@ -1,142 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsListRecordingsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsCreateRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsGetRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsDeleteRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RecordingsUpdateRecordingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateRecordingRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateRecordingRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class RecordingsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class RecordingsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static RecordingsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private RecordingsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new RecordingsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 133ead7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.Constructors.Bearer.g.cs deleted file mode 100644 index 7d4b452..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class RecordingsClient - { - /// - - public RecordingsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.CreateRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.CreateRecording.g.cs deleted file mode 100644 index 66705bb..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.CreateRecording.g.cs +++ /dev/null @@ -1,1510 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class RecordingsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateRecordingServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateRecordingSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateRecordingSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateRecordingSecurityRequirement0, - }; - partial void PrepareCreateRecordingArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid, - global::ResembleAI.CreateRecordingRequest request); - partial void PrepareCreateRecordingRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid, - global::ResembleAI.CreateRecordingRequest request); - partial void ProcessCreateRecordingResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateRecordingResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// 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 CreateRecordingAsync( - string voiceUuid, - - global::ResembleAI.CreateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateRecordingAsResponseAsync( - voiceUuid: voiceUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// 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> CreateRecordingAsResponseAsync( - string voiceUuid, - - global::ResembleAI.CreateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateRecordingArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateRecordingSecurityRequirements, - operationName: "CreateRecordingAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings", - baseUri: ResolveBaseUri( - servers: s_CreateRecordingServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); - __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Filename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentFile, - name: "\"file\"", - fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); - if (__contentFile.Headers.ContentDisposition != null) - { - __contentFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), - name: "\"name\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Text ?? string.Empty), - name: "\"text\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Emotion ?? string.Empty), - name: "\"emotion\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.IsActive, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"is_active\""); - - if (request.Fill != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Fill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"fill\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateRecordingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateRecordingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateRecordingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.RecordingsCreateRecordingResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.RecordingsCreateRecordingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// - /// 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 CreateRecordingAsync( - string voiceUuid, - byte[] file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateRecordingRequest - { - File = file, - Filename = filename, - Name = name, - Text = text, - Emotion = emotion, - IsActive = isActive, - Fill = fill, - }; - - return await CreateRecordingAsync( - voiceUuid: voiceUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// - /// 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 CreateRecordingAsync( - string voiceUuid, - global::System.IO.Stream file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::ResembleAI.CreateRecordingRequest - { - File = global::System.Array.Empty(), - Filename = filename, - Name = name, - Text = text, - Emotion = emotion, - IsActive = isActive, - Fill = fill, - }; - PrepareArguments( - client: HttpClient); - PrepareCreateRecordingArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateRecordingSecurityRequirements, - operationName: "CreateRecordingAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings", - baseUri: ResolveBaseUri( - servers: s_CreateRecordingServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentFile = new global::System.Net.Http.StreamContent(file); - __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Filename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentFile, - name: "\"file\"", - fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); - if (__contentFile.Headers.ContentDisposition != null) - { - __contentFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), - name: "\"name\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Text ?? string.Empty), - name: "\"text\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Emotion ?? string.Empty), - name: "\"emotion\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.IsActive, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"is_active\""); - - if (request.Fill != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Fill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"fill\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateRecordingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateRecordingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateRecordingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::ResembleAI.RecordingsCreateRecordingResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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); - - return - await global::ResembleAI.RecordingsCreateRecordingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create recording
- /// Upload a new recording for voice training - ///
- /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Audio file (WAV recommended, 1-12 seconds) - /// - /// - /// Display name - /// - /// - /// Transcript of the clip - /// - /// - /// Emotion label - /// - /// - /// Include in training - /// - /// - /// Include for Resemble Fill - /// - /// 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> CreateRecordingAsResponseAsync( - string voiceUuid, - global::System.IO.Stream file, - string filename, - string name, - string text, - string emotion, - bool isActive, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - - file = file ?? throw new global::System.ArgumentNullException(nameof(file)); - var request = new global::ResembleAI.CreateRecordingRequest - { - File = global::System.Array.Empty(), - Filename = filename, - Name = name, - Text = text, - Emotion = emotion, - IsActive = isActive, - Fill = fill, - }; - PrepareArguments( - client: HttpClient); - PrepareCreateRecordingArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateRecordingSecurityRequirements, - operationName: "CreateRecordingAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings", - baseUri: ResolveBaseUri( - servers: s_CreateRecordingServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - var __contentFile = new global::System.Net.Http.StreamContent(file); - __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Filename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentFile, - name: "\"file\"", - fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); - if (__contentFile.Headers.ContentDisposition != null) - { - __contentFile.Headers.ContentDisposition.FileNameStar = null; - } - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Name ?? string.Empty), - name: "\"name\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Text ?? string.Empty), - name: "\"text\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Emotion ?? string.Empty), - name: "\"emotion\""); - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.IsActive, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"is_active\""); - - if (request.Fill != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Fill, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"fill\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateRecordingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateRecordingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateRecording", - methodName: "CreateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateRecordingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.RecordingsCreateRecordingResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.RecordingsCreateRecordingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.RecordingsClient.DeleteRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.DeleteRecording.g.cs deleted file mode 100644 index 4990382..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.DeleteRecording.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class RecordingsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteRecordingServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteRecordingSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteRecordingSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteRecordingSecurityRequirement0, - }; - partial void PrepareDeleteRecordingArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid, - ref string recordingId); - partial void PrepareDeleteRecordingRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid, - string recordingId); - partial void ProcessDeleteRecordingResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteRecordingResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete recording
- /// Delete a recording - ///
- /// - /// - /// 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 DeleteRecordingAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteRecordingAsResponseAsync( - voiceUuid: voiceUuid, - recordingId: recordingId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete recording
- /// Delete a recording - ///
- /// - /// - /// 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> DeleteRecordingAsResponseAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteRecordingArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - recordingId: ref recordingId); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteRecordingSecurityRequirements, - operationName: "DeleteRecordingAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings/{recordingId}", - baseUri: ResolveBaseUri( - servers: s_DeleteRecordingServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteRecordingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - recordingId: recordingId); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteRecording", - methodName: "DeleteRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteRecording", - methodName: "DeleteRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteRecording", - methodName: "DeleteRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteRecordingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteRecording", - methodName: "DeleteRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteRecording", - methodName: "DeleteRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteRecordingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.RecordingsDeleteRecordingResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.RecordingsDeleteRecordingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.RecordingsClient.GetRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.GetRecording.g.cs deleted file mode 100644 index 821bc02..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.GetRecording.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class RecordingsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetRecordingServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetRecordingSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetRecordingSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetRecordingSecurityRequirement0, - }; - partial void PrepareGetRecordingArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid, - ref string recordingId); - partial void PrepareGetRecordingRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid, - string recordingId); - partial void ProcessGetRecordingResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetRecordingResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get recording
- /// Get recording details - ///
- /// - /// - /// 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 GetRecordingAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetRecordingAsResponseAsync( - voiceUuid: voiceUuid, - recordingId: recordingId, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get recording
- /// Get recording details - ///
- /// - /// - /// 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> GetRecordingAsResponseAsync( - string voiceUuid, - string recordingId, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetRecordingArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - recordingId: ref recordingId); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetRecordingSecurityRequirements, - operationName: "GetRecordingAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings/{recordingId}", - baseUri: ResolveBaseUri( - servers: s_GetRecordingServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetRecordingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - recordingId: recordingId); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetRecording", - methodName: "GetRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetRecording", - methodName: "GetRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetRecording", - methodName: "GetRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetRecordingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetRecording", - methodName: "GetRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetRecording", - methodName: "GetRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetRecordingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.RecordingsGetRecordingResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.RecordingsGetRecordingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.RecordingsClient.ListRecordings.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.ListRecordings.g.cs deleted file mode 100644 index 79bc2f8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.ListRecordings.g.cs +++ /dev/null @@ -1,466 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class RecordingsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListRecordingsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListRecordingsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListRecordingsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListRecordingsSecurityRequirement0, - }; - partial void PrepareListRecordingsArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid, - ref int page, - ref int? pageSize); - partial void PrepareListRecordingsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid, - int page, - int? pageSize); - partial void ProcessListRecordingsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListRecordingsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List recordings
- /// List all recordings for a voice - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListRecordingsAsync( - string voiceUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListRecordingsAsResponseAsync( - voiceUuid: voiceUuid, - page: page, - pageSize: pageSize, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List recordings
- /// List all recordings for a voice - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListRecordingsAsResponseAsync( - string voiceUuid, - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListRecordingsArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - page: ref page, - pageSize: ref pageSize); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListRecordingsSecurityRequirements, - operationName: "ListRecordingsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings", - baseUri: ResolveBaseUri( - servers: s_ListRecordingsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("page_size", pageSize?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListRecordingsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - page: page, - pageSize: pageSize); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListRecordings", - methodName: "ListRecordingsAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListRecordings", - methodName: "ListRecordingsAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListRecordings", - methodName: "ListRecordingsAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListRecordingsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListRecordings", - methodName: "ListRecordingsAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListRecordings", - methodName: "ListRecordingsAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListRecordingsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.RecordingsListRecordingsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.RecordingsListRecordingsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.RecordingsClient.UpdateRecording.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.UpdateRecording.g.cs deleted file mode 100644 index fd34ce7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.UpdateRecording.g.cs +++ /dev/null @@ -1,503 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class RecordingsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateRecordingServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateRecordingSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateRecordingSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateRecordingSecurityRequirement0, - }; - partial void PrepareUpdateRecordingArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid, - ref string recordingId, - global::ResembleAI.UpdateRecordingRequest request); - partial void PrepareUpdateRecordingRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid, - string recordingId, - global::ResembleAI.UpdateRecordingRequest request); - partial void ProcessUpdateRecordingResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateRecordingResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update recording
- /// Update a recording - ///
- /// - /// - /// - /// 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 UpdateRecordingAsync( - string voiceUuid, - string recordingId, - - global::ResembleAI.UpdateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateRecordingAsResponseAsync( - voiceUuid: voiceUuid, - recordingId: recordingId, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update recording
- /// Update a recording - ///
- /// - /// - /// - /// 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> UpdateRecordingAsResponseAsync( - string voiceUuid, - string recordingId, - - global::ResembleAI.UpdateRecordingRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateRecordingArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - recordingId: ref recordingId, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateRecordingSecurityRequirements, - operationName: "UpdateRecordingAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/recordings/{recordingId}", - baseUri: ResolveBaseUri( - servers: s_UpdateRecordingServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateRecordingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - recordingId: recordingId, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateRecording", - methodName: "UpdateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateRecording", - methodName: "UpdateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateRecording", - methodName: "UpdateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessUpdateRecordingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateRecording", - methodName: "UpdateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateRecording", - methodName: "UpdateRecordingAsync", - pathTemplate: "$\"/voices/{voiceUuid}/recordings/{recordingId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessUpdateRecordingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.RecordingsUpdateRecordingResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.RecordingsUpdateRecordingResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update recording
- /// Update a recording - ///
- /// - /// - /// - /// - /// - /// - /// 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 UpdateRecordingAsync( - string voiceUuid, - string recordingId, - string? name = default, - string? text = default, - string? emotion = default, - bool? isActive = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateRecordingRequest - { - Name = name, - Text = text, - Emotion = emotion, - IsActive = isActive, - }; - - return await UpdateRecordingAsync( - voiceUuid: voiceUuid, - recordingId: recordingId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.g.cs deleted file mode 100644 index bea66e7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.RecordingsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class RecordingsClient : global::ResembleAI.IRecordingsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.RecordingsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the RecordingsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public RecordingsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the RecordingsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public RecordingsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the RecordingsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public RecordingsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs index f23c161..de700a6 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs @@ -59,16 +59,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// - /// - public AudioEnhancementClient AudioEnhancement => new AudioEnhancementClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// /// @@ -109,26 +99,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// - /// - public ClipsClient Clips => new ClipsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public CustomPronunciationsClient CustomPronunciations => new CustomPronunciationsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// /// @@ -159,16 +129,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// - /// - public DuetsClient Duets => new DuetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// /// @@ -199,26 +159,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// - /// - public ProjectsClient Projects => new ProjectsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public RecordingsClient Recordings => new RecordingsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// /// @@ -239,26 +179,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// - /// - public SpeechToTextClient SpeechToText => new SpeechToTextClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public TermSubstitutionsClient TermSubstitutions => new TermSubstitutionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// /// @@ -269,36 +189,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; - /// - /// - /// - public TextToSpeechClient TextToSpeech => new TextToSpeechClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public VoiceSettingsPresetsClient VoiceSettingsPresets => new VoiceSettingsPresetsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - - /// - /// - /// - public VoicesClient Voices => new VoicesClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContextProvider = JsonSerializerContextProvider, - AutoSDKServerConfiguration = AutoSDKServerConfiguration, - }; - /// /// /// @@ -316,11 +206,6 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli name: "production", url: "https://app.resemble.ai/api/v2", description: "production"), - new global::ResembleAI.AutoSDKServer( - id: "https-f-cluster-resemble-ai", - name: "synthesis", - url: "https://f.cluster.resemble.ai/", - description: "synthesis"), new global::ResembleAI.AutoSDKServer( id: "https-app-resemble-ai-billing-api-v1", name: "billing", diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ResponseStream.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ResponseStream.g.cs deleted file mode 100644 index c1cad25..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.ResponseStream.g.cs +++ /dev/null @@ -1,117 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - internal sealed class ResponseStream : global::System.IO.Stream - { - private readonly global::System.Net.Http.HttpResponseMessage _response; - private readonly global::System.IO.Stream _stream; - private bool _disposed; - - public ResponseStream( - global::System.Net.Http.HttpResponseMessage response, - global::System.IO.Stream stream) - { - _response = response ?? throw new global::System.ArgumentNullException(nameof(response)); - _stream = stream ?? throw new global::System.ArgumentNullException(nameof(stream)); - } - - public override bool CanRead => _stream.CanRead; - public override bool CanSeek => _stream.CanSeek; - public override bool CanWrite => _stream.CanWrite; - public override bool CanTimeout => _stream.CanTimeout; - public override long Length => _stream.Length; - - public override long Position - { - get => _stream.Position; - set => _stream.Position = value; - } - - public override int ReadTimeout - { - get => _stream.ReadTimeout; - set => _stream.ReadTimeout = value; - } - - public override int WriteTimeout - { - get => _stream.WriteTimeout; - set => _stream.WriteTimeout = value; - } - - public override void Flush() => _stream.Flush(); - - public override global::System.Threading.Tasks.Task FlushAsync( - global::System.Threading.CancellationToken cancellationToken) => - _stream.FlushAsync(cancellationToken); - - public override int Read(byte[] buffer, int offset, int count) => - _stream.Read(buffer, offset, count); - - public override global::System.Threading.Tasks.Task ReadAsync( - byte[] buffer, - int offset, - int count, - global::System.Threading.CancellationToken cancellationToken) => - _stream.ReadAsync(buffer, offset, count, cancellationToken); - -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER - public override global::System.Threading.Tasks.ValueTask ReadAsync( - global::System.Memory buffer, - global::System.Threading.CancellationToken cancellationToken = default) => - _stream.ReadAsync(buffer, cancellationToken); -#endif - - public override long Seek(long offset, global::System.IO.SeekOrigin origin) => - _stream.Seek(offset, origin); - - public override void SetLength(long value) => - _stream.SetLength(value); - - public override void Write(byte[] buffer, int offset, int count) => - _stream.Write(buffer, offset, count); - - public override global::System.Threading.Tasks.Task WriteAsync( - byte[] buffer, - int offset, - int count, - global::System.Threading.CancellationToken cancellationToken) => - _stream.WriteAsync(buffer, offset, count, cancellationToken); - -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER - public override global::System.Threading.Tasks.ValueTask WriteAsync( - global::System.ReadOnlyMemory buffer, - global::System.Threading.CancellationToken cancellationToken = default) => - _stream.WriteAsync(buffer, cancellationToken); -#endif - - protected override void Dispose(bool disposing) - { - if (!_disposed && disposing) - { - _disposed = true; - _stream.Dispose(); - _response.Dispose(); - } - - base.Dispose(disposing); - } - -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_0_OR_GREATER || NET5_0_OR_GREATER - public override async global::System.Threading.Tasks.ValueTask DisposeAsync() - { - if (_disposed) - { - return; - } - - _disposed = true; - await _stream.DisposeAsync().ConfigureAwait(false); - _response.Dispose(); - await base.DisposeAsync().ConfigureAwait(false); - } -#endif - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Signal.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Signal.JsonSerializerContext.g.cs index c038b03..4b0d98b 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Signal.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Signal.JsonSerializerContext.g.cs @@ -17,8 +17,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionInputModality), TypeInfoPropertyName = "SignalSubmissionInputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionVerdict), TypeInfoPropertyName = "SignalSubmissionVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalCategoryScore))] @@ -57,8 +57,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateSignalSubmissionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionInputModality?), TypeInfoPropertyName = "NullableSignalSubmissionInputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionVerdict?), TypeInfoPropertyName = "NullableSignalSubmissionVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalScoreItemInputModality?), TypeInfoPropertyName = "NullableSignalScoreItemInputModality2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToText.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToText.JsonSerializerContext.g.cs deleted file mode 100644 index cb33bb4..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToText.JsonSerializerContext.g.cs +++ /dev/null @@ -1,210 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextCreateTranscriptResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus), TypeInfoPropertyName = "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateTranscriptRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskTranscriptQuestionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableSpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableSpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [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 SpeechToTextSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class SpeechToTextSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static SpeechToTextSourceGenerationContext Default { get; } = new(DefaultOptions); - - private SpeechToTextSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus) - - || typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus?)) - { - return new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new SpeechToTextSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.AskTranscriptQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.AskTranscriptQuestion.g.cs deleted file mode 100644 index 2c848ae..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.AskTranscriptQuestion.g.cs +++ /dev/null @@ -1,521 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class SpeechToTextClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_AskTranscriptQuestionServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_AskTranscriptQuestionSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_AskTranscriptQuestionSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_AskTranscriptQuestionSecurityRequirement0, - }; - partial void PrepareAskTranscriptQuestionArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - global::ResembleAI.AskTranscriptQuestionRequest request); - partial void PrepareAskTranscriptQuestionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - global::ResembleAI.AskTranscriptQuestionRequest request); - partial void ProcessAskTranscriptQuestionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessAskTranscriptQuestionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Ask intelligence question
- /// Submit a question about a completed transcript - ///
- /// - /// - /// 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 AskTranscriptQuestionAsync( - global::System.Guid uuid, - - global::ResembleAI.AskTranscriptQuestionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await AskTranscriptQuestionAsResponseAsync( - uuid: uuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Ask intelligence question
- /// Submit a question about a completed transcript - ///
- /// - /// - /// 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> AskTranscriptQuestionAsResponseAsync( - global::System.Guid uuid, - - global::ResembleAI.AskTranscriptQuestionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareAskTranscriptQuestionArguments( - httpClient: HttpClient, - uuid: ref uuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_AskTranscriptQuestionSecurityRequirements, - operationName: "AskTranscriptQuestionAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/speech-to-text/{uuid}/ask", - baseUri: ResolveBaseUri( - servers: s_AskTranscriptQuestionServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareAskTranscriptQuestionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AskTranscriptQuestion", - methodName: "AskTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/ask\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AskTranscriptQuestion", - methodName: "AskTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/ask\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AskTranscriptQuestion", - methodName: "AskTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/ask\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessAskTranscriptQuestionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AskTranscriptQuestion", - methodName: "AskTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/ask\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "AskTranscriptQuestion", - methodName: "AskTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/ask\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Missing query, transcript not yet processed, or the transcript was created with zero retention and its content has been purged - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.Error? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - - 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); - ProcessAskTranscriptQuestionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Ask intelligence question
- /// Submit a question about a completed transcript - ///
- /// - /// - /// Question to ask about the transcript - /// - /// 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 AskTranscriptQuestionAsync( - global::System.Guid uuid, - string query, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.AskTranscriptQuestionRequest - { - Query = query, - }; - - return await AskTranscriptQuestionAsync( - uuid: uuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 0ed9777..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.Constructors.Bearer.g.cs deleted file mode 100644 index a5ffe48..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class SpeechToTextClient - { - /// - - public SpeechToTextClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.CreateTranscript.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.CreateTranscript.g.cs deleted file mode 100644 index 4288828..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.CreateTranscript.g.cs +++ /dev/null @@ -1,632 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class SpeechToTextClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateTranscriptServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateTranscriptSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateTranscriptSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateTranscriptSecurityRequirement0, - }; - partial void PrepareCreateTranscriptArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateTranscriptRequest request); - partial void PrepareCreateTranscriptRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateTranscriptRequest request); - partial void ProcessCreateTranscriptResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateTranscriptResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create transcript job
- /// Submit audio or video for transcription - ///
- /// - /// 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 CreateTranscriptAsync( - - global::ResembleAI.CreateTranscriptRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateTranscriptAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create transcript job
- /// Submit audio or video for transcription - ///
- /// - /// 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> CreateTranscriptAsResponseAsync( - - global::ResembleAI.CreateTranscriptRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateTranscriptArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateTranscriptSecurityRequirements, - operationName: "CreateTranscriptAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: false); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/speech-to-text", - baseUri: ResolveBaseUri( - servers: s_CreateTranscriptServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); - if (request.File != default) - { - - var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); - __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( - request.Filename is null - ? "application/octet-stream" - : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch - { - ".aac" => "audio/aac", - ".flac" => "audio/flac", - ".gif" => "image/gif", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".json" => "application/json", - ".m4a" => "audio/mp4", - ".mp3" => "audio/mpeg", - ".mp4" => "video/mp4", - ".mpeg" => "audio/mpeg", - ".mpga" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".pdf" => "application/pdf", - ".png" => "image/png", - ".txt" => "text/plain", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".webm" => "video/webm", - ".webp" => "image/webp", - _ => "application/octet-stream", - }); - __httpRequestContent.Add( - content: __contentFile, - name: "\"file\"", - fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); - if (__contentFile.Headers.ContentDisposition != null) - { - __contentFile.Headers.ContentDisposition.FileNameStar = null; - } - - } - if (request.Query != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Query ?? string.Empty), - name: "\"query\""); - - } - if (request.CallbackUrl != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.CallbackUrl ?? string.Empty), - name: "\"callback_url\""); - - } - if (request.ZeroRetentionMode != default) - { - - __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.ZeroRetentionMode, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), - name: "\"zero_retention_mode\""); - - } - - __httpRequest.Content = __httpRequestContent; - - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateTranscriptRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTranscript", - methodName: "CreateTranscriptAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTranscript", - methodName: "CreateTranscriptAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTranscript", - methodName: "CreateTranscriptAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateTranscriptResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTranscript", - methodName: "CreateTranscriptAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTranscript", - methodName: "CreateTranscriptAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request (missing input, invalid callback_url, or zero retention requested without a callback_url) - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.Error? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - // Zero retention is not included in the team's plan or subscription - if ((int)__response.StatusCode == 402) - { - string? __content_402 = null; - global::System.Exception? __exception_402 = null; - global::ResembleAI.Error? __value_402 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::ResembleAI.Error.FromJson(__content_402, JsonSerializerContext); - } - else - { - __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_402 = global::ResembleAI.Error.FromJson(__content_402, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_402 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_402, - responseBody: __content_402, - responseObject: __value_402, - 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); - ProcessCreateTranscriptResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.SpeechToTextCreateTranscriptResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.SpeechToTextCreateTranscriptResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create transcript job
- /// Submit audio or video for transcription - ///
- /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - /// - /// Audio or video file (max 500 MB, 20 minutes) - /// - /// - /// Optional intelligence question to evaluate after transcription - /// - /// - /// Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true. - /// - /// - /// Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan.
- /// Default Value: false - /// - /// 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 CreateTranscriptAsync( - byte[]? file = default, - string? filename = default, - string? query = default, - string? callbackUrl = default, - bool? zeroRetentionMode = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateTranscriptRequest - { - File = file, - Filename = filename, - Query = query, - CallbackUrl = callbackUrl, - ZeroRetentionMode = zeroRetentionMode, - }; - - return await CreateTranscriptAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.GetTranscript.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.GetTranscript.g.cs deleted file mode 100644 index 7d1cb04..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.GetTranscript.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class SpeechToTextClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetTranscriptServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetTranscriptSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetTranscriptSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetTranscriptSecurityRequirement0, - }; - partial void PrepareGetTranscriptArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid); - partial void PrepareGetTranscriptRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid); - partial void ProcessGetTranscriptResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetTranscriptResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get transcript
- /// Retrieve transcript status, text, and timestamps - ///
- /// - /// 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 GetTranscriptAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetTranscriptAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get transcript
- /// Retrieve transcript status, text, and timestamps - ///
- /// - /// 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> GetTranscriptAsResponseAsync( - global::System.Guid uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetTranscriptArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetTranscriptSecurityRequirements, - operationName: "GetTranscriptAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/speech-to-text/{uuid}", - baseUri: ResolveBaseUri( - servers: s_GetTranscriptServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetTranscriptRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscript", - methodName: "GetTranscriptAsync", - pathTemplate: "$\"/speech-to-text/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscript", - methodName: "GetTranscriptAsync", - pathTemplate: "$\"/speech-to-text/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscript", - methodName: "GetTranscriptAsync", - pathTemplate: "$\"/speech-to-text/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetTranscriptResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscript", - methodName: "GetTranscriptAsync", - pathTemplate: "$\"/speech-to-text/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscript", - methodName: "GetTranscriptAsync", - pathTemplate: "$\"/speech-to-text/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetTranscriptResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.SpeechToTextGetTranscriptResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.SpeechToTextGetTranscriptResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.SpeechToTextClient.GetTranscriptQuestion.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.GetTranscriptQuestion.g.cs deleted file mode 100644 index a055a6f..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.GetTranscriptQuestion.g.cs +++ /dev/null @@ -1,445 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class SpeechToTextClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetTranscriptQuestionServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetTranscriptQuestionSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetTranscriptQuestionSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetTranscriptQuestionSecurityRequirement0, - }; - partial void PrepareGetTranscriptQuestionArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - ref global::System.Guid questionUuid); - partial void PrepareGetTranscriptQuestionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - global::System.Guid questionUuid); - partial void ProcessGetTranscriptQuestionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetTranscriptQuestionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get intelligence question status
- /// Check the status of a specific question - ///
- /// - /// - /// 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 GetTranscriptQuestionAsync( - global::System.Guid uuid, - global::System.Guid questionUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetTranscriptQuestionAsResponseAsync( - uuid: uuid, - questionUuid: questionUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get intelligence question status
- /// Check the status of a specific question - ///
- /// - /// - /// 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> GetTranscriptQuestionAsResponseAsync( - global::System.Guid uuid, - global::System.Guid questionUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetTranscriptQuestionArguments( - httpClient: HttpClient, - uuid: ref uuid, - questionUuid: ref questionUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetTranscriptQuestionSecurityRequirements, - operationName: "GetTranscriptQuestionAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/speech-to-text/{uuid}/questions/{questionUuid}", - baseUri: ResolveBaseUri( - servers: s_GetTranscriptQuestionServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetTranscriptQuestionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid, - questionUuid: questionUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscriptQuestion", - methodName: "GetTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions/{questionUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscriptQuestion", - methodName: "GetTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions/{questionUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscriptQuestion", - methodName: "GetTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions/{questionUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetTranscriptQuestionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscriptQuestion", - methodName: "GetTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions/{questionUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTranscriptQuestion", - methodName: "GetTranscriptQuestionAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions/{questionUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetTranscriptQuestionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.SpeechToTextClient.ListTranscriptQuestions.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.ListTranscriptQuestions.g.cs deleted file mode 100644 index b545ecd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.ListTranscriptQuestions.g.cs +++ /dev/null @@ -1,466 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class SpeechToTextClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListTranscriptQuestionsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListTranscriptQuestionsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListTranscriptQuestionsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListTranscriptQuestionsSecurityRequirement0, - }; - partial void PrepareListTranscriptQuestionsArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid uuid, - ref int page, - ref int? perPage); - partial void PrepareListTranscriptQuestionsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid uuid, - int page, - int? perPage); - partial void ProcessListTranscriptQuestionsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListTranscriptQuestionsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List intelligence questions
- /// List all questions asked about a transcript - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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 ListTranscriptQuestionsAsync( - global::System.Guid uuid, - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListTranscriptQuestionsAsResponseAsync( - uuid: uuid, - page: page, - perPage: perPage, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List intelligence questions
- /// List all questions asked about a transcript - ///
- /// - /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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> ListTranscriptQuestionsAsResponseAsync( - global::System.Guid uuid, - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListTranscriptQuestionsArguments( - httpClient: HttpClient, - uuid: ref uuid, - page: ref page, - perPage: ref perPage); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListTranscriptQuestionsSecurityRequirements, - operationName: "ListTranscriptQuestionsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/speech-to-text/{uuid}/questions", - baseUri: ResolveBaseUri( - servers: s_ListTranscriptQuestionsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("per_page", perPage?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListTranscriptQuestionsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid, - page: page, - perPage: perPage); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscriptQuestions", - methodName: "ListTranscriptQuestionsAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscriptQuestions", - methodName: "ListTranscriptQuestionsAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscriptQuestions", - methodName: "ListTranscriptQuestionsAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListTranscriptQuestionsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscriptQuestions", - methodName: "ListTranscriptQuestionsAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscriptQuestions", - methodName: "ListTranscriptQuestionsAsync", - pathTemplate: "$\"/speech-to-text/{uuid}/questions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListTranscriptQuestionsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.SpeechToTextClient.ListTranscripts.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.ListTranscripts.g.cs deleted file mode 100644 index 954f4e8..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.ListTranscripts.g.cs +++ /dev/null @@ -1,457 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class SpeechToTextClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListTranscriptsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListTranscriptsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListTranscriptsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListTranscriptsSecurityRequirement0, - }; - partial void PrepareListTranscriptsArguments( - global::System.Net.Http.HttpClient httpClient, - ref int page, - ref int? perPage); - partial void PrepareListTranscriptsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int page, - int? perPage); - partial void ProcessListTranscriptsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListTranscriptsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List transcripts
- /// Retrieve paginated list of transcript jobs - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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 ListTranscriptsAsync( - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListTranscriptsAsResponseAsync( - page: page, - perPage: perPage, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List transcripts
- /// Retrieve paginated list of transcript jobs - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 25 - /// - /// 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> ListTranscriptsAsResponseAsync( - int page, - int? perPage = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListTranscriptsArguments( - httpClient: HttpClient, - page: ref page, - perPage: ref perPage); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListTranscriptsSecurityRequirements, - operationName: "ListTranscriptsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/speech-to-text", - baseUri: ResolveBaseUri( - servers: s_ListTranscriptsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("per_page", perPage?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListTranscriptsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - page: page, - perPage: perPage); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscripts", - methodName: "ListTranscriptsAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscripts", - methodName: "ListTranscriptsAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscripts", - methodName: "ListTranscriptsAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListTranscriptsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscripts", - methodName: "ListTranscriptsAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTranscripts", - methodName: "ListTranscriptsAsync", - pathTemplate: "\"/speech-to-text\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListTranscriptsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.SpeechToTextListTranscriptsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.SpeechToTextListTranscriptsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.SpeechToTextClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.g.cs deleted file mode 100644 index 9d688be..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.SpeechToTextClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class SpeechToTextClient : global::ResembleAI.ISpeechToTextClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.SpeechToTextSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the SpeechToTextClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SpeechToTextClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SpeechToTextClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SpeechToTextClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the SpeechToTextClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public SpeechToTextClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutions.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutions.JsonSerializerContext.g.cs deleted file mode 100644 index 820a2a5..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutions.JsonSerializerContext.g.cs +++ /dev/null @@ -1,138 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateTermSubstitutionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class TermSubstitutionsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class TermSubstitutionsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static TermSubstitutionsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private TermSubstitutionsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new TermSubstitutionsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index 3292173..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.Constructors.Bearer.g.cs deleted file mode 100644 index 91d6cc6..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TermSubstitutionsClient - { - /// - - public TermSubstitutionsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.CreateTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.CreateTermSubstitution.g.cs deleted file mode 100644 index 1e3d588..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.CreateTermSubstitution.g.cs +++ /dev/null @@ -1,477 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class TermSubstitutionsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateTermSubstitutionServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateTermSubstitutionSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateTermSubstitutionSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateTermSubstitutionSecurityRequirement0, - }; - partial void PrepareCreateTermSubstitutionArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateTermSubstitutionRequest request); - partial void PrepareCreateTermSubstitutionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateTermSubstitutionRequest request); - partial void ProcessCreateTermSubstitutionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateTermSubstitutionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create term substitution
- /// Create a new pronunciation substitution - ///
- /// - /// 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 CreateTermSubstitutionAsync( - - global::ResembleAI.CreateTermSubstitutionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateTermSubstitutionAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create term substitution
- /// Create a new pronunciation substitution - ///
- /// - /// 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> CreateTermSubstitutionAsResponseAsync( - - global::ResembleAI.CreateTermSubstitutionRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateTermSubstitutionArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateTermSubstitutionSecurityRequirements, - operationName: "CreateTermSubstitutionAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/term_substitutions", - baseUri: ResolveBaseUri( - servers: s_CreateTermSubstitutionServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateTermSubstitutionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTermSubstitution", - methodName: "CreateTermSubstitutionAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTermSubstitution", - methodName: "CreateTermSubstitutionAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTermSubstitution", - methodName: "CreateTermSubstitutionAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateTermSubstitutionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTermSubstitution", - methodName: "CreateTermSubstitutionAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateTermSubstitution", - methodName: "CreateTermSubstitutionAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateTermSubstitutionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create term substitution
- /// Create a new pronunciation substitution - ///
- /// - /// Original text to substitute - /// - /// - /// Replacement pronunciation - /// - /// 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 CreateTermSubstitutionAsync( - string originalText, - string replacementText, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateTermSubstitutionRequest - { - OriginalText = originalText, - ReplacementText = replacementText, - }; - - return await CreateTermSubstitutionAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.DeleteTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.DeleteTermSubstitution.g.cs deleted file mode 100644 index bca8ce7..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.DeleteTermSubstitution.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class TermSubstitutionsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteTermSubstitutionServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteTermSubstitutionSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteTermSubstitutionSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteTermSubstitutionSecurityRequirement0, - }; - partial void PrepareDeleteTermSubstitutionArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareDeleteTermSubstitutionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessDeleteTermSubstitutionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteTermSubstitutionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete term substitution
- /// Delete a term substitution - ///
- /// - /// 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 DeleteTermSubstitutionAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteTermSubstitutionAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete term substitution
- /// Delete a term substitution - ///
- /// - /// 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> DeleteTermSubstitutionAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteTermSubstitutionArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteTermSubstitutionSecurityRequirements, - operationName: "DeleteTermSubstitutionAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/term_substitutions/{id}", - baseUri: ResolveBaseUri( - servers: s_DeleteTermSubstitutionServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteTermSubstitutionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTermSubstitution", - methodName: "DeleteTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTermSubstitution", - methodName: "DeleteTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTermSubstitution", - methodName: "DeleteTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteTermSubstitutionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTermSubstitution", - methodName: "DeleteTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteTermSubstitution", - methodName: "DeleteTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteTermSubstitutionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.GetTermSubstitution.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.GetTermSubstitution.g.cs deleted file mode 100644 index 3adc720..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.GetTermSubstitution.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class TermSubstitutionsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetTermSubstitutionServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetTermSubstitutionSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetTermSubstitutionSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetTermSubstitutionSecurityRequirement0, - }; - partial void PrepareGetTermSubstitutionArguments( - global::System.Net.Http.HttpClient httpClient, - ref int id); - partial void PrepareGetTermSubstitutionRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int id); - partial void ProcessGetTermSubstitutionResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetTermSubstitutionResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get term substitution
- /// Get term substitution details - ///
- /// - /// 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 GetTermSubstitutionAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetTermSubstitutionAsResponseAsync( - id: id, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get term substitution
- /// Get term substitution details - ///
- /// - /// 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> GetTermSubstitutionAsResponseAsync( - int id, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetTermSubstitutionArguments( - httpClient: HttpClient, - id: ref id); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetTermSubstitutionSecurityRequirements, - operationName: "GetTermSubstitutionAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/term_substitutions/{id}", - baseUri: ResolveBaseUri( - servers: s_GetTermSubstitutionServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetTermSubstitutionRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTermSubstitution", - methodName: "GetTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTermSubstitution", - methodName: "GetTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTermSubstitution", - methodName: "GetTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetTermSubstitutionResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTermSubstitution", - methodName: "GetTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetTermSubstitution", - methodName: "GetTermSubstitutionAsync", - pathTemplate: "$\"/term_substitutions/{id}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetTermSubstitutionResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.ListTermSubstitutions.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.ListTermSubstitutions.g.cs deleted file mode 100644 index 10dcf4b..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.ListTermSubstitutions.g.cs +++ /dev/null @@ -1,457 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class TermSubstitutionsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListTermSubstitutionsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListTermSubstitutionsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListTermSubstitutionsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListTermSubstitutionsSecurityRequirement0, - }; - partial void PrepareListTermSubstitutionsArguments( - global::System.Net.Http.HttpClient httpClient, - ref int page, - ref int? pageSize); - partial void PrepareListTermSubstitutionsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int page, - int? pageSize); - partial void ProcessListTermSubstitutionsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListTermSubstitutionsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List term substitutions
- /// List all term substitutions - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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 ListTermSubstitutionsAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListTermSubstitutionsAsResponseAsync( - page: page, - pageSize: pageSize, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List term substitutions
- /// List all term substitutions - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// 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> ListTermSubstitutionsAsResponseAsync( - int page, - int? pageSize = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListTermSubstitutionsArguments( - httpClient: HttpClient, - page: ref page, - pageSize: ref pageSize); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListTermSubstitutionsSecurityRequirements, - operationName: "ListTermSubstitutionsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/term_substitutions", - baseUri: ResolveBaseUri( - servers: s_ListTermSubstitutionsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("page_size", pageSize?.ToString()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListTermSubstitutionsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - page: page, - pageSize: pageSize); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTermSubstitutions", - methodName: "ListTermSubstitutionsAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTermSubstitutions", - methodName: "ListTermSubstitutionsAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTermSubstitutions", - methodName: "ListTermSubstitutionsAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListTermSubstitutionsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTermSubstitutions", - methodName: "ListTermSubstitutionsAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListTermSubstitutions", - methodName: "ListTermSubstitutionsAsync", - pathTemplate: "\"/term_substitutions\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListTermSubstitutionsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.g.cs deleted file mode 100644 index 844c258..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TermSubstitutionsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class TermSubstitutionsClient : global::ResembleAI.ITermSubstitutionsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.TermSubstitutionsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the TermSubstitutionsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public TermSubstitutionsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the TermSubstitutionsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public TermSubstitutionsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the TermSubstitutionsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public TermSubstitutionsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs index 2311d58..09ac546 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs @@ -18,8 +18,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus), TypeInfoPropertyName = "TextDetectItemStatus2")] @@ -33,8 +33,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus?), TypeInfoPropertyName = "NullableTextDetectItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemPrediction?), TypeInfoPropertyName = "NullableTextDetectItemPrediction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableTextDetectPostParametersPrefer2")] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeech.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeech.JsonSerializerContext.g.cs deleted file mode 100644 index 6d9a76c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeech.JsonSerializerContext.g.cs +++ /dev/null @@ -1,239 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioTimestamps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextToSpeechSynthesizeResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate), TypeInfoPropertyName = "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamSynthesizeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableSynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] - [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 TextToSpeechSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class TextToSpeechSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static TextToSpeechSourceGenerationContext Default { get; } = new(DefaultOptions); - - private TextToSpeechSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - options.Converters.Add(new LazyEnumJsonConverterFactory()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - - private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory - { - public override bool CanConvert(global::System.Type typeToConvert) - { - return - typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate) - - || typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate) - - || typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?); - } - - public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision?)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat?)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate?)) - { - return new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter(); - } - - if (typeToConvert == typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?)) - { - return new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter(); - } - throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); - } - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new TextToSpeechSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Authorizations.Bearer.g.cs deleted file mode 100644 index ba5c113..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TextToSpeechClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Constructors.Bearer.g.cs deleted file mode 100644 index 6109493..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class TextToSpeechClient - { - /// - - public TextToSpeechClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs deleted file mode 100644 index b640bb0..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs +++ /dev/null @@ -1,897 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class TextToSpeechClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_StreamSynthesizeServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-f-cluster-resemble-ai", - name: "f.cluster.resemble.ai", - url: "https://f.cluster.resemble.ai/", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_StreamSynthesizeSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_StreamSynthesizeSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_StreamSynthesizeSecurityRequirement0, - }; - partial void PrepareStreamSynthesizeArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.StreamSynthesizeRequest request); - partial void PrepareStreamSynthesizeRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.StreamSynthesizeRequest request); - partial void ProcessStreamSynthesizeResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessStreamSynthesizeResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref byte[] content); - - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// 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 StreamSynthesizeAsync( - - global::ResembleAI.StreamSynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await StreamSynthesizeAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// 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 StreamSynthesizeAsStreamAsync( - - global::ResembleAI.StreamSynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareStreamSynthesizeArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_StreamSynthesizeSecurityRequirements, - operationName: "StreamSynthesizeAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/stream", - baseUri: ResolveBaseUri( - servers: s_StreamSynthesizeServers, - defaultBaseUrl: "https://f.cluster.resemble.ai/")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareStreamSynthesizeRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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.ResponseHeadersRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - try - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessStreamSynthesizeResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.Error? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - - try - { - __response.EnsureSuccessStatusCode(); - - var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - return new global::ResembleAI.ResponseStream(__response, __content); - } - 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::ResembleAI.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)); - } - - } - catch - { - __response.Dispose(); - throw; - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// 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> StreamSynthesizeAsResponseAsync( - - global::ResembleAI.StreamSynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareStreamSynthesizeArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_StreamSynthesizeSecurityRequirements, - operationName: "StreamSynthesizeAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/stream", - baseUri: ResolveBaseUri( - servers: s_StreamSynthesizeServers, - defaultBaseUrl: "https://f.cluster.resemble.ai/")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareStreamSynthesizeRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessStreamSynthesizeResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StreamSynthesize", - methodName: "StreamSynthesizeAsync", - pathTemplate: "\"/stream\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.Error? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsByteArrayAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessStreamSynthesizeResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: null, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsByteArrayAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - 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::ResembleAI.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(); - } - } - /// - /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. - ///
- /// - /// Voice UUID to use for synthesis - /// - /// - /// Text or SSML to synthesize (max 2000 characters) - /// - /// - /// Optional project UUID to store the clip - /// - /// - /// Audio precision
- /// Default Value: PCM_32 - /// - /// - /// Audio sample rate in Hz - /// - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - /// - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - /// - /// 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 StreamSynthesizeAsync( - string voiceUuid, - string data, - string? projectUuid = default, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, - global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, - bool? useHd = default, - bool? applyCustomPronunciations = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.StreamSynthesizeRequest - { - VoiceUuid = voiceUuid, - Data = data, - ProjectUuid = projectUuid, - Precision = precision, - SampleRate = sampleRate, - UseHd = useHd, - ApplyCustomPronunciations = applyCustomPronunciations, - }; - - return await StreamSynthesizeAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs deleted file mode 100644 index 65081fe..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs +++ /dev/null @@ -1,590 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class TextToSpeechClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_SynthesizeServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-f-cluster-resemble-ai", - name: "f.cluster.resemble.ai", - url: "https://f.cluster.resemble.ai/", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_SynthesizeSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_SynthesizeSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_SynthesizeSecurityRequirement0, - }; - partial void PrepareSynthesizeArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.SynthesizeRequest request); - partial void PrepareSynthesizeRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.SynthesizeRequest request); - partial void ProcessSynthesizeResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessSynthesizeResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. - ///
- /// - /// 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 SynthesizeAsync( - - global::ResembleAI.SynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await SynthesizeAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. - ///
- /// - /// 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> SynthesizeAsResponseAsync( - - global::ResembleAI.SynthesizeRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareSynthesizeArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_SynthesizeSecurityRequirements, - operationName: "SynthesizeAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/synthesize", - baseUri: ResolveBaseUri( - servers: s_SynthesizeServers, - defaultBaseUrl: "https://f.cluster.resemble.ai/")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareSynthesizeRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Synthesize", - methodName: "SynthesizeAsync", - pathTemplate: "\"/synthesize\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Synthesize", - methodName: "SynthesizeAsync", - pathTemplate: "\"/synthesize\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Synthesize", - methodName: "SynthesizeAsync", - pathTemplate: "\"/synthesize\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessSynthesizeResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Synthesize", - methodName: "SynthesizeAsync", - pathTemplate: "\"/synthesize\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Synthesize", - methodName: "SynthesizeAsync", - pathTemplate: "\"/synthesize\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - } - // Bad request - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - global::ResembleAI.Error? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - - throw global::ResembleAI.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)); - } - // Unauthorized - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - global::ResembleAI.Error? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - - throw global::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - responseBody: __content_401, - responseObject: __value_401, - 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); - ProcessSynthesizeResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.TextToSpeechSynthesizeResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.TextToSpeechSynthesizeResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. - ///
- /// - /// Voice UUID to use for synthesis - /// - /// - /// Optional project UUID to store the clip - /// - /// - /// Optional title for the generated clip - /// - /// - /// Text or SSML to synthesize (max 3,000 characters) - /// - /// - /// Audio precision for WAV output
- /// Default Value: PCM_32 - /// - /// - /// Audio output format
- /// Default Value: wav - /// - /// - /// Audio sample rate in Hz - /// - /// - /// Enable HD synthesis with small latency trade-off
- /// Default Value: false - /// - /// - /// When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false.
- /// Default Value: false - /// - /// 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 SynthesizeAsync( - string voiceUuid, - string data, - string? projectUuid = default, - string? title = default, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? outputFormat = default, - global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, - bool? useHd = default, - bool? applyCustomPronunciations = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.SynthesizeRequest - { - VoiceUuid = voiceUuid, - ProjectUuid = projectUuid, - Title = title, - Data = data, - Precision = precision, - OutputFormat = outputFormat, - SampleRate = sampleRate, - UseHd = useHd, - ApplyCustomPronunciations = applyCustomPronunciations, - }; - - return await SynthesizeAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.g.cs deleted file mode 100644 index 4c54812..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class TextToSpeechClient : global::ResembleAI.ITextToSpeechClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://f.cluster.resemble.ai/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.TextToSpeechSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the TextToSpeechClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public TextToSpeechClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the TextToSpeechClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public TextToSpeechClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the TextToSpeechClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public TextToSpeechClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresets.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresets.JsonSerializerContext.g.cs deleted file mode 100644 index eb9eafe..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresets.JsonSerializerContext.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateVoiceSettingsPresetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.UpdateVoiceSettingsPresetRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - internal sealed partial class VoiceSettingsPresetsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class VoiceSettingsPresetsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static VoiceSettingsPresetsSourceGenerationContext Default { get; } = new(DefaultOptions); - - private VoiceSettingsPresetsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new VoiceSettingsPresetsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.Authorizations.Bearer.g.cs deleted file mode 100644 index f3dcb06..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.Constructors.Bearer.g.cs deleted file mode 100644 index cc28795..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoiceSettingsPresetsClient - { - /// - - public VoiceSettingsPresetsClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs deleted file mode 100644 index 9b6aa25..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.CreateVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,507 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoiceSettingsPresetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateVoiceSettingsPresetServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateVoiceSettingsPresetSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateVoiceSettingsPresetSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateVoiceSettingsPresetSecurityRequirement0, - }; - partial void PrepareCreateVoiceSettingsPresetArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateVoiceSettingsPresetRequest request); - partial void PrepareCreateVoiceSettingsPresetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateVoiceSettingsPresetRequest request); - partial void ProcessCreateVoiceSettingsPresetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateVoiceSettingsPresetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create voice settings preset
- /// Create a new voice settings preset (max 5 per user) - ///
- /// - /// 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 CreateVoiceSettingsPresetAsync( - - global::ResembleAI.CreateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateVoiceSettingsPresetAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create voice settings preset
- /// Create a new voice settings preset (max 5 per user) - ///
- /// - /// 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> CreateVoiceSettingsPresetAsResponseAsync( - - global::ResembleAI.CreateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateVoiceSettingsPresetArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateVoiceSettingsPresetSecurityRequirements, - operationName: "CreateVoiceSettingsPresetAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/voice_settings_presets", - baseUri: ResolveBaseUri( - servers: s_CreateVoiceSettingsPresetServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateVoiceSettingsPresetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoiceSettingsPreset", - methodName: "CreateVoiceSettingsPresetAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoiceSettingsPreset", - methodName: "CreateVoiceSettingsPresetAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoiceSettingsPreset", - methodName: "CreateVoiceSettingsPresetAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateVoiceSettingsPresetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoiceSettingsPreset", - methodName: "CreateVoiceSettingsPresetAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoiceSettingsPreset", - methodName: "CreateVoiceSettingsPresetAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateVoiceSettingsPresetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create voice settings preset
- /// Create a new voice settings preset (max 5 per user) - ///
- /// - /// Preset name (unique, max 30 characters) - /// - /// - /// Speech pace/speed
- /// Default Value: 1 - /// - /// - /// Voice variation
- /// Default Value: 0.8F - /// - /// - /// Voice pitch adjustment
- /// Default Value: 0 - /// - /// - /// Use HD quality
- /// Default Value: false - /// - /// - /// Emotional exaggeration
- /// Default Value: 0.5F - /// - /// - /// Voice style prompt - /// - /// 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 CreateVoiceSettingsPresetAsync( - string name, - double? pace = default, - double? temperature = default, - double? pitch = default, - bool? useHd = default, - double? exaggeration = default, - string? description = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateVoiceSettingsPresetRequest - { - Name = name, - Pace = pace, - Temperature = temperature, - Pitch = pitch, - UseHd = useHd, - Exaggeration = exaggeration, - Description = description, - }; - - return await CreateVoiceSettingsPresetAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs deleted file mode 100644 index fd5b843..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.DeleteVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoiceSettingsPresetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteVoiceSettingsPresetServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteVoiceSettingsPresetSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteVoiceSettingsPresetSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteVoiceSettingsPresetSecurityRequirement0, - }; - partial void PrepareDeleteVoiceSettingsPresetArguments( - global::System.Net.Http.HttpClient httpClient, - ref string uuid); - partial void PrepareDeleteVoiceSettingsPresetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string uuid); - partial void ProcessDeleteVoiceSettingsPresetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteVoiceSettingsPresetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete voice settings preset
- /// Delete a preset - ///
- /// - /// 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 DeleteVoiceSettingsPresetAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteVoiceSettingsPresetAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete voice settings preset
- /// Delete a preset - ///
- /// - /// 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> DeleteVoiceSettingsPresetAsResponseAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteVoiceSettingsPresetArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteVoiceSettingsPresetSecurityRequirements, - operationName: "DeleteVoiceSettingsPresetAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voice_settings_presets/{uuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteVoiceSettingsPresetServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteVoiceSettingsPresetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoiceSettingsPreset", - methodName: "DeleteVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoiceSettingsPreset", - methodName: "DeleteVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoiceSettingsPreset", - methodName: "DeleteVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteVoiceSettingsPresetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoiceSettingsPreset", - methodName: "DeleteVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoiceSettingsPreset", - methodName: "DeleteVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteVoiceSettingsPresetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs deleted file mode 100644 index 230bbe1..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.GetVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoiceSettingsPresetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetVoiceSettingsPresetServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetVoiceSettingsPresetSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetVoiceSettingsPresetSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetVoiceSettingsPresetSecurityRequirement0, - }; - partial void PrepareGetVoiceSettingsPresetArguments( - global::System.Net.Http.HttpClient httpClient, - ref string uuid); - partial void PrepareGetVoiceSettingsPresetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string uuid); - partial void ProcessGetVoiceSettingsPresetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetVoiceSettingsPresetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get voice settings preset
- /// Get preset details - ///
- /// - /// 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 GetVoiceSettingsPresetAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetVoiceSettingsPresetAsResponseAsync( - uuid: uuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get voice settings preset
- /// Get preset details - ///
- /// - /// 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> GetVoiceSettingsPresetAsResponseAsync( - string uuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetVoiceSettingsPresetArguments( - httpClient: HttpClient, - uuid: ref uuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetVoiceSettingsPresetSecurityRequirements, - operationName: "GetVoiceSettingsPresetAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voice_settings_presets/{uuid}", - baseUri: ResolveBaseUri( - servers: s_GetVoiceSettingsPresetServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetVoiceSettingsPresetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoiceSettingsPreset", - methodName: "GetVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoiceSettingsPreset", - methodName: "GetVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoiceSettingsPreset", - methodName: "GetVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetVoiceSettingsPresetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoiceSettingsPreset", - methodName: "GetVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoiceSettingsPreset", - methodName: "GetVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetVoiceSettingsPresetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs deleted file mode 100644 index a7109dd..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.ListVoiceSettingsPresets.g.cs +++ /dev/null @@ -1,427 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoiceSettingsPresetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListVoiceSettingsPresetsServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListVoiceSettingsPresetsSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListVoiceSettingsPresetsSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListVoiceSettingsPresetsSecurityRequirement0, - }; - partial void PrepareListVoiceSettingsPresetsArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareListVoiceSettingsPresetsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessListVoiceSettingsPresetsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListVoiceSettingsPresetsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List voice settings presets
- /// List all voice settings presets - ///
- /// 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 ListVoiceSettingsPresetsAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListVoiceSettingsPresetsAsResponseAsync( - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List voice settings presets
- /// List all voice settings presets - ///
- /// 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> ListVoiceSettingsPresetsAsResponseAsync( - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListVoiceSettingsPresetsArguments( - httpClient: HttpClient); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListVoiceSettingsPresetsSecurityRequirements, - operationName: "ListVoiceSettingsPresetsAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/voice_settings_presets", - baseUri: ResolveBaseUri( - servers: s_ListVoiceSettingsPresetsServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListVoiceSettingsPresetsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoiceSettingsPresets", - methodName: "ListVoiceSettingsPresetsAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoiceSettingsPresets", - methodName: "ListVoiceSettingsPresetsAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoiceSettingsPresets", - methodName: "ListVoiceSettingsPresetsAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListVoiceSettingsPresetsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoiceSettingsPresets", - methodName: "ListVoiceSettingsPresetsAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoiceSettingsPresets", - methodName: "ListVoiceSettingsPresetsAsync", - pathTemplate: "\"/voice_settings_presets\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListVoiceSettingsPresetsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs deleted file mode 100644 index 197d312..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.UpdateVoiceSettingsPreset.g.cs +++ /dev/null @@ -1,500 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoiceSettingsPresetsClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_UpdateVoiceSettingsPresetServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_UpdateVoiceSettingsPresetSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_UpdateVoiceSettingsPresetSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_UpdateVoiceSettingsPresetSecurityRequirement0, - }; - partial void PrepareUpdateVoiceSettingsPresetArguments( - global::System.Net.Http.HttpClient httpClient, - ref string uuid, - global::ResembleAI.UpdateVoiceSettingsPresetRequest request); - partial void PrepareUpdateVoiceSettingsPresetRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string uuid, - global::ResembleAI.UpdateVoiceSettingsPresetRequest request); - partial void ProcessUpdateVoiceSettingsPresetResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessUpdateVoiceSettingsPresetResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Update voice settings preset
- /// Update a preset - ///
- /// - /// - /// 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 UpdateVoiceSettingsPresetAsync( - string uuid, - - global::ResembleAI.UpdateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await UpdateVoiceSettingsPresetAsResponseAsync( - uuid: uuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Update voice settings preset
- /// Update a preset - ///
- /// - /// - /// 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> UpdateVoiceSettingsPresetAsResponseAsync( - string uuid, - - global::ResembleAI.UpdateVoiceSettingsPresetRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareUpdateVoiceSettingsPresetArguments( - httpClient: HttpClient, - uuid: ref uuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_UpdateVoiceSettingsPresetSecurityRequirements, - operationName: "UpdateVoiceSettingsPresetAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voice_settings_presets/{uuid}", - baseUri: ResolveBaseUri( - servers: s_UpdateVoiceSettingsPresetServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareUpdateVoiceSettingsPresetRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - uuid: uuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateVoiceSettingsPreset", - methodName: "UpdateVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateVoiceSettingsPreset", - methodName: "UpdateVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateVoiceSettingsPreset", - methodName: "UpdateVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessUpdateVoiceSettingsPresetResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateVoiceSettingsPreset", - methodName: "UpdateVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "UpdateVoiceSettingsPreset", - methodName: "UpdateVoiceSettingsPresetAsync", - pathTemplate: "$\"/voice_settings_presets/{uuid}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessUpdateVoiceSettingsPresetResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Update voice settings preset
- /// Update a preset - ///
- /// - /// - /// - /// - /// - /// - /// - /// - /// 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 UpdateVoiceSettingsPresetAsync( - string uuid, - string? name = default, - double? pace = default, - double? temperature = default, - double? pitch = default, - bool? useHd = default, - double? exaggeration = default, - string? description = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.UpdateVoiceSettingsPresetRequest - { - Name = name, - Pace = pace, - Temperature = temperature, - Pitch = pitch, - UseHd = useHd, - Exaggeration = exaggeration, - Description = description, - }; - - return await UpdateVoiceSettingsPresetAsync( - uuid: uuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.g.cs deleted file mode 100644 index c4e3a0c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoiceSettingsPresetsClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class VoiceSettingsPresetsClient : global::ResembleAI.IVoiceSettingsPresetsClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.VoiceSettingsPresetsSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the VoiceSettingsPresetsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public VoiceSettingsPresetsClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the VoiceSettingsPresetsClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public VoiceSettingsPresetsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the VoiceSettingsPresetsClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public VoiceSettingsPresetsClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Voices.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Voices.JsonSerializerContext.g.cs deleted file mode 100644 index fb359cc..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Voices.JsonSerializerContext.g.cs +++ /dev/null @@ -1,159 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull - )] - [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::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesListVoicesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesCreateVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesGetVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesDeleteVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.VoicesBuildVoiceResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.BuildVoiceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [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 VoicesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext - { - } - /// - /// - /// - public sealed partial class VoicesSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; - - - private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); - - /// - /// - /// - public static VoicesSourceGenerationContext Default { get; } = new(DefaultOptions); - - private VoicesSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) - : base(options) - { - } - - /// - protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; - - /// - public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) - { - return Resolver.GetTypeInfo(type, Options); - } - - /// - /// Adds this package's converters to . - /// - /// - /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, - /// and a context resolves types from every package below it. Each package contributes only - /// what it owns and calls down the chain for the rest, so the family's converter table is - /// written once rather than copied into all of them. - /// - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] - public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) - { - options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); - } - - private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() - { - var options = new global::System.Text.Json.JsonSerializerOptions - { - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - TypeInfoResolver = Resolver, - }; - AddConverters(options); - - return options; - } - - private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver - { - private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; - - public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( - global::System.Type type, - global::System.Text.Json.JsonSerializerOptions options) - { - for (var index = 0; index < _resolvers.Length; index++) - { - var typeInfo = GetResolver(index).GetTypeInfo(type, options); - if (typeInfo is not null) - { - return typeInfo; - } - } - - return null; - } - - private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) - { - var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); - if (resolver is not null) - { - return resolver; - } - - lock (_gate) - { - return _resolvers[index] ??= CreateResolver(index); - } - } - - private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) - { - return index switch - { - 0 => new VoicesSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), - _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), - }; - } - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.Authorizations.Bearer.g.cs deleted file mode 100644 index cd66bae..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.Authorizations.Bearer.g.cs +++ /dev/null @@ -1,35 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesClient - { - - /// - public void AuthorizeUsingBearer( - string apiKey) - { - apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - - for (var i = Authorizations.Count - 1; i >= 0; i--) - { - var __authorization = Authorizations[i]; - if (__authorization.Type == "Http" && - __authorization.Name == "Bearer") - { - Authorizations.RemoveAt(i); - } - } - - Authorizations.Add(new global::ResembleAI.EndPointAuthorization - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - Value = apiKey, - }); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.BuildVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.BuildVoice.g.cs deleted file mode 100644 index f39c18c..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.BuildVoice.g.cs +++ /dev/null @@ -1,484 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoicesClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_BuildVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_BuildVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_BuildVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_BuildVoiceSecurityRequirement0, - }; - partial void PrepareBuildVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid, - global::ResembleAI.BuildVoiceRequest request); - partial void PrepareBuildVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid, - global::ResembleAI.BuildVoiceRequest request); - partial void ProcessBuildVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessBuildVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Build voice
- /// Start voice training - ///
- /// - /// - /// 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 BuildVoiceAsync( - string voiceUuid, - - global::ResembleAI.BuildVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await BuildVoiceAsResponseAsync( - voiceUuid: voiceUuid, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Build voice
- /// Start voice training - ///
- /// - /// - /// 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> BuildVoiceAsResponseAsync( - string voiceUuid, - - global::ResembleAI.BuildVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareBuildVoiceArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_BuildVoiceSecurityRequirements, - operationName: "BuildVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}/build", - baseUri: ResolveBaseUri( - servers: s_BuildVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareBuildVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BuildVoice", - methodName: "BuildVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}/build\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BuildVoice", - methodName: "BuildVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}/build\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BuildVoice", - methodName: "BuildVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}/build\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessBuildVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BuildVoice", - methodName: "BuildVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}/build\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "BuildVoice", - methodName: "BuildVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}/build\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessBuildVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoicesBuildVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoicesBuildVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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(); - } - } - /// - /// Build voice
- /// Start voice training - ///
- /// - /// - /// Default Value: false - /// - /// 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 BuildVoiceAsync( - string voiceUuid, - bool? fill = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.BuildVoiceRequest - { - Fill = fill, - }; - - return await BuildVoiceAsync( - voiceUuid: voiceUuid, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.Constructors.Bearer.g.cs deleted file mode 100644 index 98a2648..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.Constructors.Bearer.g.cs +++ /dev/null @@ -1,31 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public sealed partial class VoicesClient - { - /// - - public VoicesClient( - string apiKey, - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) - { - Authorizing(HttpClient, ref apiKey); - - AuthorizeUsingBearer(apiKey); - - Authorized(HttpClient); - } - - partial void Authorizing( - global::System.Net.Http.HttpClient client, - ref string apiKey); - partial void Authorized( - global::System.Net.Http.HttpClient client); - - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.CreateVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.CreateVoice.g.cs deleted file mode 100644 index fe9c46d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.CreateVoice.g.cs +++ /dev/null @@ -1,481 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoicesClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_CreateVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_CreateVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_CreateVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_CreateVoiceSecurityRequirement0, - }; - partial void PrepareCreateVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateVoiceRequest request); - partial void PrepareCreateVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateVoiceRequest request); - partial void ProcessCreateVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessCreateVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create voice
- /// Create a new voice - ///
- /// - /// 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 CreateVoiceAsync( - - global::ResembleAI.CreateVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await CreateVoiceAsResponseAsync( - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Create voice
- /// Create a new voice - ///
- /// - /// 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> CreateVoiceAsResponseAsync( - - global::ResembleAI.CreateVoiceRequest request, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PrepareCreateVoiceArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_CreateVoiceSecurityRequirements, - operationName: "CreateVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/voices", - baseUri: ResolveBaseUri( - servers: s_CreateVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareCreateVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoice", - methodName: "CreateVoiceAsync", - pathTemplate: "\"/voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoice", - methodName: "CreateVoiceAsync", - pathTemplate: "\"/voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoice", - methodName: "CreateVoiceAsync", - pathTemplate: "\"/voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessCreateVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoice", - methodName: "CreateVoiceAsync", - pathTemplate: "\"/voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "CreateVoice", - methodName: "CreateVoiceAsync", - pathTemplate: "\"/voices\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessCreateVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoicesCreateVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoicesCreateVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Create voice
- /// Create a new voice - ///
- /// - /// - /// - /// - /// Default Value: en-US - /// - /// 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 CreateVoiceAsync( - string name, - string? datasetUrl = default, - string? callbackUri = default, - string? language = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::ResembleAI.CreateVoiceRequest - { - Name = name, - DatasetUrl = datasetUrl, - CallbackUri = callbackUri, - Language = language, - }; - - return await CreateVoiceAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.DeleteVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.DeleteVoice.g.cs deleted file mode 100644 index 37b80e9..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.DeleteVoice.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoicesClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_DeleteVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_DeleteVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_DeleteVoiceSecurityRequirement0, - }; - partial void PrepareDeleteVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid); - partial void PrepareDeleteVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid); - partial void ProcessDeleteVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete voice
- /// Delete a voice - ///
- /// - /// 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 DeleteVoiceAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await DeleteVoiceAsResponseAsync( - voiceUuid: voiceUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Delete voice
- /// Delete a voice - ///
- /// - /// 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> DeleteVoiceAsResponseAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteVoiceArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteVoiceSecurityRequirements, - operationName: "DeleteVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}", - baseUri: ResolveBaseUri( - servers: s_DeleteVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoice", - methodName: "DeleteVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoice", - methodName: "DeleteVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoice", - methodName: "DeleteVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessDeleteVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoice", - methodName: "DeleteVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteVoice", - methodName: "DeleteVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessDeleteVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoicesDeleteVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoicesDeleteVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.VoicesClient.GetVoice.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.GetVoice.g.cs deleted file mode 100644 index faca232..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.GetVoice.g.cs +++ /dev/null @@ -1,436 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoicesClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_GetVoiceServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_GetVoiceSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_GetVoiceSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_GetVoiceSecurityRequirement0, - }; - partial void PrepareGetVoiceArguments( - global::System.Net.Http.HttpClient httpClient, - ref string voiceUuid); - partial void PrepareGetVoiceRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string voiceUuid); - partial void ProcessGetVoiceResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetVoiceResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get voice
- /// Get voice details - ///
- /// - /// 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 GetVoiceAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await GetVoiceAsResponseAsync( - voiceUuid: voiceUuid, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Get voice
- /// Get voice details - ///
- /// - /// 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> GetVoiceAsResponseAsync( - string voiceUuid, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetVoiceArguments( - httpClient: HttpClient, - voiceUuid: ref voiceUuid); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetVoiceSecurityRequirements, - operationName: "GetVoiceAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: $"/voices/{voiceUuid}", - baseUri: ResolveBaseUri( - servers: s_GetVoiceServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetVoiceRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - voiceUuid: voiceUuid); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoice", - methodName: "GetVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoice", - methodName: "GetVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoice", - methodName: "GetVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessGetVoiceResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoice", - methodName: "GetVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetVoice", - methodName: "GetVoiceAsync", - pathTemplate: "$\"/voices/{voiceUuid}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessGetVoiceResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoicesGetVoiceResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoicesGetVoiceResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.VoicesClient.ListVoices.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.ListVoices.g.cs deleted file mode 100644 index 516f121..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.ListVoices.g.cs +++ /dev/null @@ -1,471 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - public partial class VoicesClient - { - - private static readonly global::ResembleAI.AutoSDKServer[] s_ListVoicesServers = new global::ResembleAI.AutoSDKServer[] - { new global::ResembleAI.AutoSDKServer( - id: "https-app-resemble-ai-api-v2", - name: "app.resemble.ai api v2", - url: "https://app.resemble.ai/api/v2", - description: ""), - }; - - - private static readonly global::ResembleAI.EndPointSecurityRequirement s_ListVoicesSecurityRequirement0 = - new global::ResembleAI.EndPointSecurityRequirement - { - Authorizations = new global::ResembleAI.EndPointAuthorizationRequirement[] - { new global::ResembleAI.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::ResembleAI.EndPointSecurityRequirement[] s_ListVoicesSecurityRequirements = - new global::ResembleAI.EndPointSecurityRequirement[] - { s_ListVoicesSecurityRequirement0, - }; - partial void PrepareListVoicesArguments( - global::System.Net.Http.HttpClient httpClient, - ref int page, - ref int? pageSize, - ref bool? advanced); - partial void PrepareListVoicesRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int page, - int? pageSize, - bool? advanced); - partial void ProcessListVoicesResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListVoicesResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List voices
- /// Retrieve voice metadata - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// - /// Default Value: false - /// - /// 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 ListVoicesAsync( - int page, - int? pageSize = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ListVoicesAsResponseAsync( - page: page, - pageSize: pageSize, - advanced: advanced, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// List voices
- /// Retrieve voice metadata - ///
- /// - /// Default Value: 1 - /// - /// - /// Default Value: 10 - /// - /// - /// Default Value: false - /// - /// 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> ListVoicesAsResponseAsync( - int page, - int? pageSize = default, - bool? advanced = default, - global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListVoicesArguments( - httpClient: HttpClient, - page: ref page, - pageSize: ref pageSize, - advanced: ref advanced); - - - var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ListVoicesSecurityRequirements, - operationName: "ListVoicesAsync"); - - using var __timeoutCancellationTokenSource = global::ResembleAI.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::ResembleAI.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::ResembleAI.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::ResembleAI.PathBuilder( - path: "/voices", - baseUri: ResolveBaseUri( - servers: s_ListVoicesServers, - defaultBaseUrl: "https://app.resemble.ai/api/v2")); - __pathBuilder - .AddRequiredParameter("page", page.ToString() ?? throw new global::System.InvalidOperationException("A required query parameter returned null from ToString().")) - .AddOptionalParameter("page_size", pageSize?.ToString()) - .AddOptionalParameter("advanced", advanced?.ToString().ToLowerInvariant()) - ; - var __path = __pathBuilder.ToString(); - __path = global::ResembleAI.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); - } - } - global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListVoicesRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - page: page, - pageSize: pageSize, - advanced: advanced); - - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoices", - methodName: "ListVoicesAsync", - pathTemplate: "\"/voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoices", - methodName: "ListVoicesAsync", - pathTemplate: "\"/voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoices", - methodName: "ListVoicesAsync", - pathTemplate: "\"/voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.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); - ProcessListVoicesResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoices", - methodName: "ListVoicesAsync", - pathTemplate: "\"/voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListVoices", - methodName: "ListVoicesAsync", - pathTemplate: "\"/voices\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - 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); - ProcessListVoicesResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::ResembleAI.VoicesListVoicesResponse200.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::ResembleAI.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::ResembleAI.VoicesListVoicesResponse200.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::ResembleAI.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::ResembleAI.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::ResembleAI.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/ResembleAI/Generated/ResembleAI.VoicesClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.g.cs deleted file mode 100644 index 3048513..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.VoicesClient.g.cs +++ /dev/null @@ -1,182 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class VoicesClient : global::ResembleAI.IVoicesClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::ResembleAI.AutoSDKClientOptions Options { get; } - - - internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); - - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.VoicesSourceGenerationContext.Default); - - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext - { - get => JsonSerializerContextProvider.Value; - set => JsonSerializerContextProvider = new(() => value); - } - - - /// - /// Creates a new instance of the VoicesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public VoicesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the VoicesClient with explicit options but no base URL override. - /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public VoicesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) : this( - httpClient, - baseUri: null, - authorizations, - options, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the VoicesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public VoicesClient( - global::System.Net.Http.HttpClient? httpClient, - global::System.Uri? baseUri, - global::System.Collections.Generic.List? authorizations, - global::ResembleAI.AutoSDKClientOptions? options, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - if (baseUri is not null) - { - HttpClient.BaseAddress ??= baseUri; - } - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - - - private global::System.Uri? ResolveBaseUri( - global::ResembleAI.AutoSDKServer[] servers, - string defaultBaseUrl) - { - if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) - { - return explicitBaseUri; - } - - if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) - { - foreach (var server in servers) - { - if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) - { - return server.Uri; - } - } - } - - if (servers.Length > 0) - { - return servers[0].Uri; - } - - return string.IsNullOrWhiteSpace(defaultBaseUrl) - ? HttpClient.BaseAddress - : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); - } - } -} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Watermark.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Watermark.JsonSerializerContext.g.cs index 5348fe6..8569ca6 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Watermark.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Watermark.JsonSerializerContext.g.cs @@ -35,8 +35,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer), TypeInfoPropertyName = "WatermarkApplyPostParametersPrefer2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat), TypeInfoPropertyName = "WatermarkApplyRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyRequest))] @@ -67,8 +67,8 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultModelVersion?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultModelVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsVerdict2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkApplyPostParametersPrefer2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyRequestOutputFormat?), TypeInfoPropertyName = "NullableWatermarkApplyRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyItemMediaType2")] diff --git a/src/libs/ResembleAI/openapi.yaml b/src/libs/ResembleAI/openapi.yaml index 15f9548..6fa8208 100644 --- a/src/libs/ResembleAI/openapi.yaml +++ b/src/libs/ResembleAI/openapi.yaml @@ -3035,99 +3035,26 @@ } ] }, - "/synthesize": { - "post": { - "operationId": "textToSpeech_synthesize", - "summary": "Synchronous text-to-speech synthesis", - "description": "Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically.", + "/account": { + "get": { + "operationId": "account_getAccount", + "summary": "Get account", + "description": "Get account information", "tags": [ - "textToSpeech" + "account" ], "responses": { "200": { - "description": "Successful synthesis", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Text-to-Speech_synthesize_Response_200" - } - } - } - }, - "400": { - "description": "Bad request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - }, - "401": { - "description": "Unauthorized", + "description": "Account details", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Account_getAccount_Response_200" } } } } }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_uuid": { - "type": "string", - "description": "Voice UUID to use for synthesis" - }, - "project_uuid": { - "type": "string", - "description": "Optional project UUID to store the clip" - }, - "title": { - "type": "string", - "description": "Optional title for the generated clip" - }, - "data": { - "type": "string", - "description": "Text or SSML to synthesize (max 3,000 characters)" - }, - "precision": { - "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision", - "description": "Audio precision for WAV output" - }, - "output_format": { - "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat", - "description": "Audio output format" - }, - "sample_rate": { - "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate", - "description": "Audio sample rate in Hz" - }, - "use_hd": { - "type": "boolean", - "default": false, - "description": "Enable HD synthesis with small latency trade-off" - }, - "apply_custom_pronunciations": { - "type": "boolean", - "default": false, - "description": "When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false." - } - }, - "required": [ - "voice_uuid", - "data" - ] - } - } - } - }, "security": [ { "BearerAuth": [] @@ -3136,86 +3063,30 @@ }, "servers": [ { - "url": "https://f.cluster.resemble.ai" + "url": "https://app.resemble.ai/api/v2" } ] }, - "/stream": { - "post": { - "operationId": "textToSpeech_streamSynthesize", - "summary": "Streaming text-to-speech synthesis (HTTP)", - "description": "Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically.", + "/account/teams": { + "get": { + "operationId": "account_getTeams", + "summary": "Get teams", + "description": "Get team information", "tags": [ - "textToSpeech" + "account" ], "responses": { "200": { - "description": "Streaming audio response (chunked WAV)", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "binary" - } - } - } - }, - "400": { - "description": "Bad request", + "description": "Team information", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/Account_getTeams_Response_200" } } } } }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_uuid": { - "type": "string", - "description": "Voice UUID to use for synthesis" - }, - "data": { - "type": "string", - "description": "Text or SSML to synthesize (max 2000 characters)" - }, - "project_uuid": { - "type": "string", - "description": "Optional project UUID to store the clip" - }, - "precision": { - "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaPrecision", - "description": "Audio precision" - }, - "sample_rate": { - "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaSampleRate", - "description": "Audio sample rate in Hz" - }, - "use_hd": { - "type": "boolean", - "default": false, - "description": "Enable HD synthesis with small latency trade-off" - }, - "apply_custom_pronunciations": { - "type": "boolean", - "default": false, - "description": "When true, automatically applies your team's custom pronunciations to matching words in the input text. Defaults to false." - } - }, - "required": [ - "voice_uuid", - "data" - ] - } - } - } - }, "security": [ { "BearerAuth": [] @@ -3224,48 +3095,36 @@ }, "servers": [ { - "url": "https://f.cluster.resemble.ai" + "url": "https://app.resemble.ai/api/v2" } ] }, - "/speech-to-text": { + "/account/teams/{team_uuid}": { "get": { - "operationId": "speechToText_listTranscripts", - "summary": "List transcripts", - "description": "Retrieve paginated list of transcript jobs", + "operationId": "account_getTeam", + "summary": "Get team", + "description": "Get specific team information", "tags": [ - "speechToText" + "account" ], "parameters": [ { - "name": "page", - "in": "query", + "name": "team_uuid", + "in": "path", "required": true, "schema": { - "type": "integer", - "minimum": 1, - "default": 1 - } - }, - { - "name": "per_page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 1, - "maximum": 50, - "default": 25 + "type": "string", + "format": "uuid" } } ], "responses": { "200": { - "description": "List of transcripts", + "description": "Team information", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_listTranscripts_Response_200" + "$ref": "#/components/schemas/Account_getTeam_Response_200" } } } @@ -3277,80 +3136,42 @@ } ] }, - "post": { - "operationId": "speechToText_createTranscript", - "summary": "Create transcript job", - "description": "Submit audio or video for transcription", + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/plans": { + "get": { + "operationId": "billingPlans_listBillingPlans", + "summary": "List billing plans", + "description": "Returns all active self-serve plans, their products, prices, and plan-specific quantity rules. This endpoint is public.", "tags": [ - "speechToText" + "billingPlans" ], "responses": { "200": { - "description": "Transcript job created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Speech-to-Text_createTranscript_Response_200" - } - } - } - }, - "400": { - "description": "Bad request (missing input, invalid callback_url, or zero retention requested without a callback_url)", + "description": "Active self-serve billing plans.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/BillingPlansResponse" } } } }, - "402": { - "description": "Zero retention is not included in the team's plan or subscription", + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary", - "description": "Audio or video file (max 500 MB, 20 minutes)" - }, - "query": { - "type": "string", - "description": "Optional intelligence question to evaluate after transcription" - }, - "callback_url": { - "type": "string", - "format": "uri", - "description": "Public HTTPS URL that receives a POST with the result when processing finishes. Private, loopback, link-local, and non-HTTPS URLs are rejected. Required when zero_retention_mode is true." - }, - "zero_retention_mode": { - "type": "boolean", - "default": false, - "description": "Enable zero retention. The uploaded media and any temporary processing copies are permanently deleted after transcription, and the transcript content is purged after one delivery to callback_url (which is mandatory in this mode). privacy_mode is accepted as an alias. Plan feature — requests are rejected with 402 if not included in your plan." - } + "$ref": "#/components/schemas/BillingError" } } } } - }, - "security": [ - { - "BearerAuth": [] - } - ] + } }, "servers": [ { @@ -3358,42 +3179,57 @@ } ] }, - "/speech-to-text/{uuid}": { + "/plans/{id}": { "get": { - "operationId": "speechToText_getTranscript", - "summary": "Get transcript", - "description": "Retrieve transcript status, text, and timestamps", + "operationId": "billingPlans_getBillingPlan", + "summary": "Get a billing plan", + "description": "Returns an active billing plan by slug, including its products, prices, and quantity rules. This endpoint is public.", "tags": [ - "speechToText" + "billingPlans" ], "parameters": [ { - "name": "uuid", + "name": "id", "in": "path", + "description": "Plan slug returned by the list-plans endpoint.", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" } } ], "responses": { "200": { - "description": "Transcript details", + "description": "Billing plan details.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_getTranscript_Response_200" + "$ref": "#/components/schemas/BillingPlanResponse" + } + } + } + }, + "404": { + "description": "The requested billing resource does not exist for the current team.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } + } + }, + "500": { + "description": "An unexpected billing error occurred.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" } } } } - }, - "security": [ - { - "BearerAuth": [] - } - ] + } }, "servers": [ { @@ -3401,123 +3237,51 @@ } ] }, - "/speech-to-text/{uuid}/ask": { - "post": { - "operationId": "speechToText_askTranscriptQuestion", - "summary": "Ask intelligence question", - "description": "Submit a question about a completed transcript", + "/subscription": { + "get": { + "operationId": "billingSubscriptions_getBillingSubscription", + "summary": "Get the current subscription", + "description": "Returns the current team's active, past-due, or delinquent subscription. Returns a null subscription when no customer-visible subscription exists.", "tags": [ - "speechToText" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } + "billingSubscriptions" ], "responses": { "200": { - "description": "Question submitted", + "description": "Current subscription or null.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_askTranscriptQuestion_Response_200" + "$ref": "#/components/schemas/BillingSubscriptionResponse" } } } }, - "400": { - "description": "Missing query, transcript not yet processed, or the transcript was created with zero retention and its content has been purged", + "401": { + "description": "A valid API key was not provided.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/BillingError" } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "query": { - "type": "string", - "description": "Question to ask about the transcript" - } - }, - "required": [ - "query" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/speech-to-text/{uuid}/questions": { - "get": { - "operationId": "speechToText_listTranscriptQuestions", - "summary": "List intelligence questions", - "description": "List all questions asked about a transcript", - "tags": [ - "speechToText" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } }, - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "minimum": 1, - "default": 1 + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingForbiddenError" + } + } } }, - { - "name": "per_page", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "maximum": 50, - "default": 25 - } - } - ], - "responses": { - "200": { - "description": "List of questions", + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_listTranscriptQuestions_Response_200" + "$ref": "#/components/schemas/BillingError" } } } @@ -3535,152 +3299,91 @@ } ] }, - "/speech-to-text/{uuid}/questions/{question_uuid}": { - "get": { - "operationId": "speechToText_getTranscriptQuestion", - "summary": "Get intelligence question status", - "description": "Check the status of a specific question", + "/subscription/products": { + "patch": { + "operationId": "billingSubscriptions_updateBillingSubscriptionProducts", + "summary": "Update subscription product quantities", + "description": "Updates one or more adjustable subscription products atomically. Each `new_quantity` is the desired absolute total, not an increment. A product is adjustable when its category is `subscription` and its `plan_product.allow_additional_usage` value is true. Quantities must remain within the plan's minimum and maximum and cannot be reduced below `consumed_quantity`.", "tags": [ - "speechToText" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "question_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } + "billingSubscriptions" ], "responses": { "200": { - "description": "Question details", + "description": "Subscription with updated product quantities.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Speech-to-Text_getTranscriptQuestion_Response_200" + "$ref": "#/components/schemas/BillingSubscriptionResponse" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/audio_enhancements": { - "get": { - "operationId": "audioEnhancement_listAudioEnhancements", - "summary": "List audio enhancements", - "description": "Returns a paginated list of all audio enhancements for your team, ordered by most recent first.", - "tags": [ - "audioEnhancement" - ], - "parameters": [ - { - "name": "page", - "in": "query", - "description": "Page number (starting from 1).", - "required": true, - "schema": { - "type": "integer", - "minimum": 1 + }, + "400": { + "description": "The request could not be parsed or contains invalid parameters.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } }, - { - "name": "page_size", - "in": "query", - "description": "Items per page (10 to 1000). Default 10.", - "required": false, - "schema": { - "type": "integer", - "minimum": 10, - "maximum": 1000, - "default": 10 + "401": { + "description": "A valid API key was not provided.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } - } - ], - "responses": { - "200": { - "description": "List of enhancements", + }, + "402": { + "description": "Additional customer authentication is required before the billing change can complete.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio_Enhancement_listAudioEnhancements_Response_200" + "$ref": "#/components/schemas/BillingPaymentActionRequired" } } } }, - "400": { - "description": "Bad request", + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListAudioEnhancementsRequestBadRequestError" + "$ref": "#/components/schemas/BillingForbiddenError" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "audioEnhancement_createAudioEnhancement", - "summary": "Create audio enhancement", - "description": "Submit an audio file for enhancement. Processing happens asynchronously in the background.\n", - "tags": [ - "audioEnhancement" - ], - "responses": { - "202": { - "description": "Enhancement job created", + }, + "404": { + "description": "The requested billing resource does not exist for the current team.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio_Enhancement_createAudioEnhancement_Response_202" + "$ref": "#/components/schemas/BillingError" } } } }, - "400": { - "description": "Bad request", + "422": { + "description": "The request was understood but violates a billing rule.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateAudioEnhancementRequestBadRequestError" + "$ref": "#/components/schemas/UpdateBillingSubscriptionProductsRequestUnprocessableEntityError" } } } }, - "403": { - "description": "Forbidden", + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateAudioEnhancementRequestForbiddenError" + "$ref": "#/components/schemas/BillingError" } } } @@ -3688,34 +3391,9 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "audio_file": { - "type": "string", - "format": "binary", - "description": "Audio file to enhance (WAV, MP3, M4A, MP4, OGG, AAC, FLAC). Max 150 MB." - }, - "remove_noise": { - "type": "boolean", - "default": true, - "description": "Remove background noise." - }, - "normalize": { - "type": "boolean", - "default": true, - "description": "Normalize audio levels." - }, - "studio_sound": { - "type": "boolean", - "default": true, - "description": "Apply studio-quality enhancement." - } - }, - "required": [ - "audio_file" - ] + "$ref": "#/components/schemas/BillingUpdateProductsRequest" } } } @@ -3732,131 +3410,81 @@ } ] }, - "/audio_enhancements/{enhancement_uuid}": { - "get": { - "operationId": "audioEnhancement_getAudioEnhancement", - "summary": "Get audio enhancement", - "description": "Poll this endpoint to check the status of an enhancement job and retrieve the download URL when complete.", + "/subscription/confirm_payment": { + "post": { + "operationId": "billingSubscriptions_confirmBillingSubscriptionPayment", + "summary": "Confirm a subscription payment", + "description": "Synchronizes the subscription after the customer completes the additional payment authentication requested by a quantity or plan change.", "tags": [ - "audioEnhancement" - ], - "parameters": [ - { - "name": "enhancement_uuid", - "in": "path", - "description": "The UUID returned from the create endpoint.", - "required": true, - "schema": { - "type": "string" - } - } + "billingSubscriptions" ], "responses": { "200": { - "description": "Enhancement details", + "description": "Synchronized subscription.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Audio_Enhancement_getAudioEnhancement_Response_200" + "$ref": "#/components/schemas/BillingSubscriptionResponse" } } } }, - "404": { - "description": "Not found", + "400": { + "description": "The request could not be parsed or contains invalid parameters.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetAudioEnhancementRequestNotFoundError" + "$ref": "#/components/schemas/BillingError" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/voices": { - "get": { - "operationId": "voices_listVoices", - "summary": "List voices", - "description": "Retrieve voice metadata", - "tags": [ - "voices" - ], - "parameters": [ - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "minimum": 1, - "default": 1 + }, + "401": { + "description": "A valid API key was not provided.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "minimum": 10, - "maximum": 1000, - "default": 10 + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingForbiddenError" + } + } } }, - { - "name": "advanced", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": false + "404": { + "description": "The requested billing resource does not exist for the current team.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } - } - ], - "responses": { - "200": { - "description": "List of voices", + }, + "422": { + "description": "The request was understood but violates a billing rule.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_listVoices_Response_200" + "$ref": "#/components/schemas/ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "voices_createVoice", - "summary": "Create voice", - "description": "Create a new voice", - "tags": [ - "voices" - ], - "responses": { - "200": { - "description": "Voice created", + }, + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_createVoice_Response_200" + "$ref": "#/components/schemas/BillingError" } } } @@ -3866,27 +3494,7 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "dataset_url": { - "type": "string", - "format": "uri" - }, - "callback_uri": { - "type": "string", - "format": "uri" - }, - "language": { - "type": "string", - "default": "en-US" - } - }, - "required": [ - "name" - ] + "$ref": "#/components/schemas/BillingConfirmPaymentRequest" } } } @@ -3903,71 +3511,105 @@ } ] }, - "/voices/{voice_uuid}": { - "get": { - "operationId": "voices_getVoice", - "summary": "Get voice", - "description": "Get voice details", + "/subscription/change_plan": { + "patch": { + "operationId": "billingSubscriptions_changeBillingPlan", + "summary": "Change the current subscription plan", + "description": "Changes a self-serve subscription to another active plan with proration. Optional product quantities are absolute quantities on the destination plan.", "tags": [ - "voices" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "billingSubscriptions" ], "responses": { "200": { - "description": "Voice details", + "description": "Subscription on the new plan.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_getVoice_Response_200" + "$ref": "#/components/schemas/BillingSubscriptionResponse" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "voices_deleteVoice", - "summary": "Delete voice", - "description": "Delete a voice", - "tags": [ - "voices" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" + }, + "400": { + "description": "The request could not be parsed or contains invalid parameters.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } - } - ], - "responses": { - "200": { - "description": "Voice deleted", + }, + "401": { + "description": "A valid API key was not provided.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } + } + }, + "402": { + "description": "Additional customer authentication is required before the billing change can complete.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingPaymentActionRequired" + } + } + } + }, + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingForbiddenError" + } + } + } + }, + "404": { + "description": "The requested billing resource does not exist for the current team.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } + } + }, + "422": { + "description": "The request was understood but violates a billing rule.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeBillingPlanRequestUnprocessableEntityError" + } + } + } + }, + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_deleteVoice_Response_200" + "$ref": "#/components/schemas/BillingError" } } } } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingChangePlanRequest" + } + } + } + }, "security": [ { "BearerAuth": [] @@ -3980,46 +3622,51 @@ } ] }, - "/voices/{voice_uuid}/build": { - "post": { - "operationId": "voices_buildVoice", - "summary": "Build voice", - "description": "Start voice training", + "/wallet": { + "get": { + "operationId": "billingWallet_getBillingWallet", + "summary": "Get the billing wallet", + "description": "Returns the current team's cash, promotional, total, and lifetime wallet balances.", "tags": [ - "voices" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "billingWallet" ], "responses": { "200": { - "description": "Build started", + "description": "Wallet balances and statistics.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Voices_buildVoice_Response_200" + "$ref": "#/components/schemas/BillingWalletResponse" } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fill": { - "type": "boolean", - "default": false - } + }, + "401": { + "description": "A valid API key was not provided.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } + } + }, + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingForbiddenError" + } + } + } + }, + "500": { + "description": "An unexpected billing error occurred.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" } } } @@ -4037,27 +3684,30 @@ } ] }, - "/voices/{voice_uuid}/recordings": { + "/wallet/transactions": { "get": { - "operationId": "recordings_listRecordings", - "summary": "List recordings", - "description": "List all recordings for a voice", + "operationId": "billingWallet_listBillingWalletTransactions", + "summary": "List wallet transactions", + "description": "Returns wallet transactions newest first. Use page and per_page for paginated results, or limit for an unpaginated recent subset.", "tags": [ - "recordings" + "billingWallet" ], "parameters": [ { - "name": "voice_uuid", - "in": "path", - "required": true, + "name": "limit", + "in": "query", + "description": "Return at most this many recent transactions. When present, pagination metadata is omitted.", + "required": false, "schema": { - "type": "string" + "type": "integer", + "minimum": 1 } }, { "name": "page", "in": "query", - "required": true, + "description": "Page number. Defaults to 1 and is ignored when limit is present.", + "required": false, "schema": { "type": "integer", "minimum": 1, @@ -4065,101 +3715,66 @@ } }, { - "name": "page_size", + "name": "per_page", "in": "query", + "description": "Results per page. Defaults to 10 and is capped at 100.", "required": false, "schema": { "type": "integer", + "minimum": 1, + "maximum": 100, "default": 10 } } ], "responses": { "200": { - "description": "List of recordings", + "description": "Wallet transactions and optional pagination metadata.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_listRecordings_Response_200" + "$ref": "#/components/schemas/BillingTransactionsResponse" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "recordings_createRecording", - "summary": "Create recording", - "description": "Upload a new recording for voice training", - "tags": [ - "recordings" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" + }, + "400": { + "description": "The request could not be parsed or contains invalid parameters.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } - } - ], - "responses": { - "200": { - "description": "Recording created", + }, + "401": { + "description": "A valid API key was not provided.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_createRecording_Response_200" + "$ref": "#/components/schemas/BillingError" } } } - } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary", - "description": "Audio file (WAV recommended, 1-12 seconds)" - }, - "name": { - "type": "string", - "description": "Display name" - }, - "text": { - "type": "string", - "description": "Transcript of the clip" - }, - "emotion": { - "type": "string", - "description": "Emotion label" - }, - "is_active": { - "type": "boolean", - "description": "Include in training" - }, - "fill": { - "type": "boolean", - "description": "Include for Resemble Fill" - } - }, - "required": [ - "file", - "name", - "text", - "emotion", - "is_active" - ] + }, + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingForbiddenError" + } + } + } + }, + "500": { + "description": "An unexpected billing error occurred.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } } } } @@ -4176,148 +3791,52 @@ } ] }, - "/voices/{voice_uuid}/recordings/{recording_id}": { + "/wallet/transactions/export.csv": { "get": { - "operationId": "recordings_getRecording", - "summary": "Get recording", - "description": "Get recording details", + "operationId": "billingWallet_exportBillingWalletTransactions", + "summary": "Export wallet transactions", + "description": "Downloads the current team's complete wallet transaction history as a CSV file, newest first.", "tags": [ - "recordings" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "recording_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } + "billingWallet" ], "responses": { "200": { - "description": "Recording details", + "description": "Response with status 200", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_getRecording_Response_200" + "type": "object", + "properties": {} } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "recordings_deleteRecording", - "summary": "Delete recording", - "description": "Delete a recording", - "tags": [ - "recordings" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, - { - "name": "recording_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Recording deleted", + "401": { + "description": "A valid API key was not provided.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_deleteRecording_Response_200" + "$ref": "#/components/schemas/BillingError" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "patch": { - "operationId": "recordings_updateRecording", - "summary": "Update recording", - "description": "Update a recording", - "tags": [ - "recordings" - ], - "parameters": [ - { - "name": "voice_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, - { - "name": "recording_id", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Recording updated", + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Recordings_updateRecording_Response_200" + "$ref": "#/components/schemas/BillingForbiddenError" } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "text": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "is_active": { - "type": "boolean" - } + }, + "500": { + "description": "An unexpected billing error occurred.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" } } } @@ -4335,132 +3854,51 @@ } ] }, - "/term_substitutions": { + "/wallet/auto_reload": { "get": { - "operationId": "termSubstitutions_listTermSubstitutions", - "summary": "List term substitutions", - "description": "List all term substitutions", + "operationId": "billingWallet_getBillingAutoReload", + "summary": "Get auto-reload settings", + "description": "Returns the current team's auto-reload configuration, whether a payment method is available, and the supported reload range.", "tags": [ - "termSubstitutions" - ], - "parameters": [ - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "minimum": 1, - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - } + "billingWallet" ], "responses": { "200": { - "description": "List of term substitutions", + "description": "Auto-reload configuration or null when it has not been configured.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term_Substitutions_listTermSubstitutions_Response_200" + "$ref": "#/components/schemas/BillingAutoReloadResponse" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "termSubstitutions_createTermSubstitution", - "summary": "Create term substitution", - "description": "Create a new pronunciation substitution", - "tags": [ - "termSubstitutions" - ], - "responses": { - "200": { - "description": "Term substitution created", + }, + "401": { + "description": "A valid API key was not provided.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term_Substitutions_createTermSubstitution_Response_200" + "$ref": "#/components/schemas/BillingError" } } } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "original_text": { - "type": "string", - "description": "Original text to substitute" - }, - "replacement_text": { - "type": "string", - "description": "Replacement pronunciation" - } - }, - "required": [ - "original_text", - "replacement_text" - ] + }, + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingForbiddenError" + } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/term_substitutions/{id}": { - "get": { - "operationId": "termSubstitutions_getTermSubstitution", - "summary": "Get term substitution", - "description": "Get term substitution details", - "tags": [ - "termSubstitutions" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Term substitution details", + }, + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term_Substitutions_getTermSubstitution_Response_200" + "$ref": "#/components/schemas/BillingError" } } } @@ -4472,191 +3910,70 @@ } ] }, - "delete": { - "operationId": "termSubstitutions_deleteTermSubstitution", - "summary": "Delete term substitution", - "description": "Delete a term substitution", + "put": { + "operationId": "billingWallet_updateBillingAutoReload", + "summary": "Update auto-reload settings", + "description": "Enables, disables, or changes wallet auto-reload. Amounts are expressed in cents and must comply with the limits returned by the GET operation.", "tags": [ - "termSubstitutions" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } + "billingWallet" ], "responses": { "200": { - "description": "Term substitution deleted", + "description": "Updated auto-reload configuration.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Term_Substitutions_deleteTermSubstitution_Response_200" + "$ref": "#/components/schemas/Billing_Wallet_updateBillingAutoReload_Response_200" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/pronunciations": { - "get": { - "operationId": "customPronunciations_listPronunciations", - "summary": "List custom pronunciations", - "description": "Retrieve all custom pronunciations for your team, with optional filters.", - "tags": [ - "customPronunciations" - ], - "parameters": [ - { - "name": "language", - "in": "query", - "description": "Filter by language (e.g., en-us)", - "required": false, - "schema": { - "type": "string" - } }, - { - "name": "domain", - "in": "query", - "description": "Filter by domain (e.g., medical)", - "required": false, - "schema": { - "type": "string" - } - }, - { - "name": "status", - "in": "query", - "description": "Filter by processing status", - "required": false, - "schema": { - "$ref": "#/components/schemas/PronunciationsGetParametersStatus" + "400": { + "description": "The request could not be parsed or contains invalid parameters.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingError" + } + } } }, - { - "name": "active", - "in": "query", - "description": "Filter by active state", - "required": false, - "schema": { - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "List of custom pronunciations", + "401": { + "description": "A valid API key was not provided.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom_Pronunciations_listPronunciations_Response_200" + "$ref": "#/components/schemas/BillingError" } } } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "customPronunciations_createPronunciation", - "summary": "Create custom pronunciation", - "description": "Upload a single pronunciation with a reference audio file.", - "tags": [ - "customPronunciations" - ], - "responses": { - "201": { - "description": "Pronunciation created", + }, + "403": { + "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom_Pronunciations_createPronunciation_Response_201" + "$ref": "#/components/schemas/BillingForbiddenError" } } } }, "422": { - "description": "Validation error (e.g., duplicate word)", + "description": "The request was understood but violates a billing rule.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" + "$ref": "#/components/schemas/UpdateBillingAutoReloadRequestUnprocessableEntityError" } } } - } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "word": { - "type": "string", - "description": "The word or phrase (2-100 characters). Letters, accented characters, apostrophes, hyphens, and spaces only." - }, - "audio": { - "type": "string", - "format": "binary", - "description": "Reference audio file (wav, flac, mp3, m4a, ogg, webm, aac). Duration 200ms-10s. Max 10MB." - } - }, - "required": [ - "word", - "audio" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/pronunciations/bulk": { - "post": { - "operationId": "customPronunciations_bulkCreatePronunciations", - "summary": "Bulk create pronunciations from ZIP", - "description": "Upload multiple pronunciations at once. Each audio file in the ZIP becomes a pronunciation — the filename (without extension) is used as the word.", - "tags": [ - "customPronunciations" - ], - "responses": { - "201": { - "description": "Bulk creation result", + }, + "500": { + "description": "An unexpected billing error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Custom_Pronunciations_bulkCreatePronunciations_Response_201" + "$ref": "#/components/schemas/BillingError" } } } @@ -4664,19 +3981,9 @@ }, "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "type": "object", - "properties": { - "zip": { - "type": "string", - "format": "binary", - "description": "ZIP file containing audio files. Max 50 files, max 100MB total." - } - }, - "required": [ - "zip" - ] + "$ref": "#/components/schemas/BillingUpdateAutoReloadRequest" } } } @@ -4692,4897 +3999,908 @@ "url": "https://app.resemble.ai/api/v2" } ] + } + }, + "tags": [ + { + "name": "deepfakeDetection" }, - "/pronunciations/{uuid}": { - "get": { - "operationId": "customPronunciations_getPronunciation", - "summary": "Get custom pronunciation", - "description": "Retrieve a single custom pronunciation by UUID", - "tags": [ - "customPronunciations" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Pronunciation details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Custom_Pronunciations_getPronunciation_Response_200" - } - } - } - }, - "404": { - "description": "Not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "customPronunciations_deletePronunciation", - "summary": "Delete custom pronunciation", - "description": "Permanently remove a custom pronunciation. Takes effect immediately.", - "tags": [ - "customPronunciations" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Pronunciation deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Custom_Pronunciations_deletePronunciation_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "patch": { - "operationId": "customPronunciations_updatePronunciation", - "summary": "Toggle pronunciation active status", - "description": "Enable or disable a pronunciation without deleting it. Inactive pronunciations are not used during synthesis.", - "tags": [ - "customPronunciations" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Pronunciation updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Custom_Pronunciations_updatePronunciation_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "active": { - "type": "boolean", - "description": "Set to false to disable, true to re-enable" - } - }, - "required": [ - "active" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "detectAgents" }, - "/voice_settings_presets": { - "get": { - "operationId": "voiceSettingsPresets_listVoiceSettingsPresets", - "summary": "List voice settings presets", - "description": "List all voice settings presets", - "tags": [ - "voiceSettingsPresets" - ], - "responses": { - "200": { - "description": "List of presets", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice_Settings_Presets_listVoiceSettingsPresets_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "voiceSettingsPresets_createVoiceSettingsPreset", - "summary": "Create voice settings preset", - "description": "Create a new voice settings preset (max 5 per user)", - "tags": [ - "voiceSettingsPresets" - ], - "responses": { - "201": { - "description": "Preset created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice_Settings_Presets_createVoiceSettingsPreset_Response_201" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "maxLength": 30, - "description": "Preset name (unique, max 30 characters)" - }, - "pace": { - "type": "number", - "format": "double", - "minimum": 0.2, - "maximum": 2, - "default": 1, - "description": "Speech pace/speed" - }, - "temperature": { - "type": "number", - "format": "double", - "minimum": 0.1, - "maximum": 5, - "default": 0.8, - "description": "Voice variation" - }, - "pitch": { - "type": "number", - "format": "double", - "minimum": -10, - "maximum": 10, - "default": 0, - "description": "Voice pitch adjustment" - }, - "useHd": { - "type": "boolean", - "default": false, - "description": "Use HD quality" - }, - "exaggeration": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 1, - "default": 0.5, - "description": "Emotional exaggeration" - }, - "description": { - "type": "string", - "maxLength": 1000, - "default": "", - "description": "Voice style prompt" - } - }, - "required": [ - "name" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "intelligence" }, - "/voice_settings_presets/{uuid}": { - "get": { - "operationId": "voiceSettingsPresets_getVoiceSettingsPreset", - "summary": "Get voice settings preset", - "description": "Get preset details", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Preset details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice_Settings_Presets_getVoiceSettingsPreset_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "voiceSettingsPresets_deleteVoiceSettingsPreset", - "summary": "Delete voice settings preset", - "description": "Delete a preset", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Preset deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice_Settings_Presets_deleteVoiceSettingsPreset_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "patch": { - "operationId": "voiceSettingsPresets_updateVoiceSettingsPreset", - "summary": "Update voice settings preset", - "description": "Update a preset", - "tags": [ - "voiceSettingsPresets" - ], - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Preset updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Voice_Settings_Presets_updateVoiceSettingsPreset_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "pace": { - "type": "number", - "format": "double" - }, - "temperature": { - "type": "number", - "format": "double" - }, - "pitch": { - "type": "number", - "format": "double" - }, - "useHd": { - "type": "boolean" - }, - "exaggeration": { - "type": "number", - "format": "double" - }, - "description": { - "type": "string" - } - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "detectIntelligence" }, - "/projects": { - "get": { - "operationId": "projects_listProjects", - "summary": "List projects", - "description": "List all projects", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "minimum": 1, - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - } - ], - "responses": { - "200": { - "description": "List of projects", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_listProjects_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "projects_createProject", - "summary": "Create project", - "description": "Create a new project", - "tags": [ - "projects" - ], - "responses": { - "200": { - "description": "Project created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_createProject_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - }, - "required": [ - "name", - "description", - "is_collaborative", - "is_archived" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "audioSourceTracing" }, - "/projects/{project_uuid}": { - "get": { - "operationId": "projects_getProject", - "summary": "Get project", - "description": "Get project details", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_getProject_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "put": { - "operationId": "projects_updateProject", - "summary": "Update project", - "description": "Update a project", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_updateProject_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "projects_deleteProject", - "summary": "Delete project", - "description": "Delete a project", - "tags": [ - "projects" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Project deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Projects_deleteProject_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "identity" }, - "/projects/{project_uuid}/clips": { - "get": { - "operationId": "clips_listClips", - "summary": "List clips", - "description": "List clips in a project", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "page", - "in": "query", - "required": true, - "schema": { - "type": "integer", - "minimum": 1, - "default": 1 - } - }, - { - "name": "page_size", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "default": 10 - } - } - ], - "responses": { - "200": { - "description": "List of clips", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_listClips_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/projects/{project_uuid}/clips/{clip_uuid}": { - "get": { - "operationId": "clips_getClip", - "summary": "Get clip", - "description": "Get clip details", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "clip_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Clip details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_getClip_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "clips_deleteClip", - "summary": "Delete clip", - "description": "Delete a clip", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "clip_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Clip deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_deleteClip_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "patch": { - "operationId": "clips_updateClip", - "summary": "Update clip", - "description": "Update a clip", - "tags": [ - "clips" - ], - "parameters": [ - { - "name": "project_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "clip_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Clip updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Clips_updateClip_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "body": { - "type": "string" - }, - "is_archived": { - "type": "boolean" - } - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "watermark" }, - "/duet_voices": { - "get": { - "operationId": "duets_listDuetVoices", - "summary": "List duet voices", - "description": "Returns default and custom duet voices", - "tags": [ - "duets" - ], - "responses": { - "200": { - "description": "List of duet voices", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_listDuetVoices_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "duets_createDuetVoice", - "summary": "Create custom duet voice", - "description": "Create a custom voice for duet generation", - "tags": [ - "duets" - ], - "responses": { - "200": { - "description": "Duet voice created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_createDuetVoice_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Voice name" - }, - "style_prompt": { - "type": "string", - "description": "Optional style prompt" - }, - "audio": { - "type": "string", - "format": "binary", - "description": "Audio file (MP3/WAV/M4A/OGG/AAC/FLAC max 10 MB)" - } - }, - "required": [ - "name", - "audio" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] + { + "name": "textDetection" }, - "/duet_voices/{id}": { - "put": { - "operationId": "duets_updateDuetVoice", - "summary": "Update duet voice", - "description": "Update a custom duet voice (default voices cannot be modified)", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Duet voice updated", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_updateDuetVoice_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "style_prompt": { - "type": "string" - } - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "delete": { - "operationId": "duets_deleteDuetVoice", - "summary": "Delete duet voice", - "description": "Delete a custom duet voice (default voices cannot be deleted)", - "tags": [ - "duets" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Duet voice deleted", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_deleteDuetVoice_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/duet_voice_pairs": { - "get": { - "operationId": "duets_listDuetVoicePairs", - "summary": "List duet voice pairs", - "description": "List all voice pairs for duet generation", - "tags": [ - "duets" - ], - "responses": { - "200": { - "description": "List of voice pairs", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_listDuetVoicePairs_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "post": { - "operationId": "duets_createDuetVoicePair", - "summary": "Create duet voice pair", - "description": "Create a voice pair for duet generation", - "tags": [ - "duets" - ], - "responses": { - "200": { - "description": "Voice pair created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_createDuetVoicePair_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_1_id": { - "type": "integer", - "description": "ID of first voice" - }, - "voice_2_id": { - "type": "integer", - "description": "ID of second voice" - }, - "name": { - "type": "string", - "description": "Optional pair name" - } - }, - "required": [ - "voice_1_id", - "voice_2_id" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/duet": { - "post": { - "operationId": "duets_generateDuet", - "summary": "Generate duet", - "description": "Generate conversational audio with two speakers", - "tags": [ - "duets" - ], - "responses": { - "200": { - "description": "Duet generation job created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Duets_generateDuet_Response_200" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "voice_pair_id": { - "type": "integer", - "description": "Voice pair ID to use" - }, - "script": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DuetPostRequestBodyContentApplicationJsonSchemaScriptItems" - } - }, - "title": { - "type": "string", - "description": "Optional title for the duet" - }, - "callback_uri": { - "type": "string", - "format": "uri", - "description": "Webhook URL for completion notification" - } - }, - "required": [ - "voice_pair_id", - "script" - ] - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account": { - "get": { - "operationId": "account_getAccount", - "summary": "Get account", - "description": "Get account information", - "tags": [ - "account" - ], - "responses": { - "200": { - "description": "Account details", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getAccount_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account/teams": { - "get": { - "operationId": "account_getTeams", - "summary": "Get teams", - "description": "Get team information", - "tags": [ - "account" - ], - "responses": { - "200": { - "description": "Team information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getTeams_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/account/teams/{team_uuid}": { - "get": { - "operationId": "account_getTeam", - "summary": "Get team", - "description": "Get specific team information", - "tags": [ - "account" - ], - "parameters": [ - { - "name": "team_uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Team information", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Account_getTeam_Response_200" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/plans": { - "get": { - "operationId": "billingPlans_listBillingPlans", - "summary": "List billing plans", - "description": "Returns all active self-serve plans, their products, prices, and plan-specific quantity rules. This endpoint is public.", - "tags": [ - "billingPlans" - ], - "responses": { - "200": { - "description": "Active self-serve billing plans.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingPlansResponse" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/plans/{id}": { - "get": { - "operationId": "billingPlans_getBillingPlan", - "summary": "Get a billing plan", - "description": "Returns an active billing plan by slug, including its products, prices, and quantity rules. This endpoint is public.", - "tags": [ - "billingPlans" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "Plan slug returned by the list-plans endpoint.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Billing plan details.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingPlanResponse" - } - } - } - }, - "404": { - "description": "The requested billing resource does not exist for the current team.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - } - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/subscription": { - "get": { - "operationId": "billingSubscriptions_getBillingSubscription", - "summary": "Get the current subscription", - "description": "Returns the current team's active, past-due, or delinquent subscription. Returns a null subscription when no customer-visible subscription exists.", - "tags": [ - "billingSubscriptions" - ], - "responses": { - "200": { - "description": "Current subscription or null.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingSubscriptionResponse" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/subscription/products": { - "patch": { - "operationId": "billingSubscriptions_updateBillingSubscriptionProducts", - "summary": "Update subscription product quantities", - "description": "Updates one or more adjustable subscription products atomically. Each `new_quantity` is the desired absolute total, not an increment. A product is adjustable when its category is `subscription` and its `plan_product.allow_additional_usage` value is true. Quantities must remain within the plan's minimum and maximum and cannot be reduced below `consumed_quantity`.", - "tags": [ - "billingSubscriptions" - ], - "responses": { - "200": { - "description": "Subscription with updated product quantities.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingSubscriptionResponse" - } - } - } - }, - "400": { - "description": "The request could not be parsed or contains invalid parameters.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "402": { - "description": "Additional customer authentication is required before the billing change can complete.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingPaymentActionRequired" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "404": { - "description": "The requested billing resource does not exist for the current team.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "422": { - "description": "The request was understood but violates a billing rule.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateBillingSubscriptionProductsRequestUnprocessableEntityError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingUpdateProductsRequest" - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/subscription/confirm_payment": { - "post": { - "operationId": "billingSubscriptions_confirmBillingSubscriptionPayment", - "summary": "Confirm a subscription payment", - "description": "Synchronizes the subscription after the customer completes the additional payment authentication requested by a quantity or plan change.", - "tags": [ - "billingSubscriptions" - ], - "responses": { - "200": { - "description": "Synchronized subscription.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingSubscriptionResponse" - } - } - } - }, - "400": { - "description": "The request could not be parsed or contains invalid parameters.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "404": { - "description": "The requested billing resource does not exist for the current team.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "422": { - "description": "The request was understood but violates a billing rule.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingConfirmPaymentRequest" - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/subscription/change_plan": { - "patch": { - "operationId": "billingSubscriptions_changeBillingPlan", - "summary": "Change the current subscription plan", - "description": "Changes a self-serve subscription to another active plan with proration. Optional product quantities are absolute quantities on the destination plan.", - "tags": [ - "billingSubscriptions" - ], - "responses": { - "200": { - "description": "Subscription on the new plan.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingSubscriptionResponse" - } - } - } - }, - "400": { - "description": "The request could not be parsed or contains invalid parameters.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "402": { - "description": "Additional customer authentication is required before the billing change can complete.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingPaymentActionRequired" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "404": { - "description": "The requested billing resource does not exist for the current team.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "422": { - "description": "The request was understood but violates a billing rule.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChangeBillingPlanRequestUnprocessableEntityError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingChangePlanRequest" - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/wallet": { - "get": { - "operationId": "billingWallet_getBillingWallet", - "summary": "Get the billing wallet", - "description": "Returns the current team's cash, promotional, total, and lifetime wallet balances.", - "tags": [ - "billingWallet" - ], - "responses": { - "200": { - "description": "Wallet balances and statistics.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingWalletResponse" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/wallet/transactions": { - "get": { - "operationId": "billingWallet_listBillingWalletTransactions", - "summary": "List wallet transactions", - "description": "Returns wallet transactions newest first. Use page and per_page for paginated results, or limit for an unpaginated recent subset.", - "tags": [ - "billingWallet" - ], - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "Return at most this many recent transactions. When present, pagination metadata is omitted.", - "required": false, - "schema": { - "type": "integer", - "minimum": 1 - } - }, - { - "name": "page", - "in": "query", - "description": "Page number. Defaults to 1 and is ignored when limit is present.", - "required": false, - "schema": { - "type": "integer", - "minimum": 1, - "default": 1 - } - }, - { - "name": "per_page", - "in": "query", - "description": "Results per page. Defaults to 10 and is capped at 100.", - "required": false, - "schema": { - "type": "integer", - "minimum": 1, - "maximum": 100, - "default": 10 - } - } - ], - "responses": { - "200": { - "description": "Wallet transactions and optional pagination metadata.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingTransactionsResponse" - } - } - } - }, - "400": { - "description": "The request could not be parsed or contains invalid parameters.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/wallet/transactions/export.csv": { - "get": { - "operationId": "billingWallet_exportBillingWalletTransactions", - "summary": "Export wallet transactions", - "description": "Downloads the current team's complete wallet transaction history as a CSV file, newest first.", - "tags": [ - "billingWallet" - ], - "responses": { - "200": { - "description": "Response with status 200", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": {} - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - }, - "/wallet/auto_reload": { - "get": { - "operationId": "billingWallet_getBillingAutoReload", - "summary": "Get auto-reload settings", - "description": "Returns the current team's auto-reload configuration, whether a payment method is available, and the supported reload range.", - "tags": [ - "billingWallet" - ], - "responses": { - "200": { - "description": "Auto-reload configuration or null when it has not been configured.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingAutoReloadResponse" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "put": { - "operationId": "billingWallet_updateBillingAutoReload", - "summary": "Update auto-reload settings", - "description": "Enables, disables, or changes wallet auto-reload. Amounts are expressed in cents and must comply with the limits returned by the GET operation.", - "tags": [ - "billingWallet" - ], - "responses": { - "200": { - "description": "Updated auto-reload configuration.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Billing_Wallet_updateBillingAutoReload_Response_200" - } - } - } - }, - "400": { - "description": "The request could not be parsed or contains invalid parameters.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "401": { - "description": "A valid API key was not provided.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - }, - "403": { - "description": "The API key owner cannot manage billing, or the Billing API is unavailable for the customer's billing arrangement.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingForbiddenError" - } - } - } - }, - "422": { - "description": "The request was understood but violates a billing rule.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpdateBillingAutoReloadRequestUnprocessableEntityError" - } - } - } - }, - "500": { - "description": "An unexpected billing error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingError" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BillingUpdateAutoReloadRequest" - } - } - } - }, - "security": [ - { - "BearerAuth": [] - } - ] - }, - "servers": [ - { - "url": "https://app.resemble.ai/api/v2" - } - ] - } - }, - "tags": [ - { - "name": "deepfakeDetection" - }, - { - "name": "detectAgents" - }, - { - "name": "intelligence" - }, - { - "name": "detectIntelligence" - }, - { - "name": "audioSourceTracing" - }, - { - "name": "identity" - }, - { - "name": "watermark" - }, - { - "name": "textDetection" - }, - { - "name": "musicDetection" - }, - { - "name": "signal" - }, - { - "name": "secureUploads" - }, - { - "name": "textToSpeech" - }, - { - "name": "speechToText" - }, - { - "name": "audioEnhancement" - }, - { - "name": "voices" - }, - { - "name": "recordings" - }, - { - "name": "termSubstitutions" - }, - { - "name": "customPronunciations" - }, - { - "name": "voiceSettingsPresets" - }, - { - "name": "projects" - }, - { - "name": "clips" - }, - { - "name": "duets" - }, - { - "name": "account" - }, - { - "name": "billingPlans" - }, - { - "name": "billingSubscriptions" - }, - { - "name": "billingWallet" - } - ], - "servers": [ - { - "url": "https://app.resemble.ai/api/v2", - "description": "production" - }, - { - "url": "https://f.cluster.resemble.ai", - "description": "synthesis" - }, - { - "url": "https://app.resemble.ai/billing/api/v1", - "description": "billing" - } - ], - "components": { - "schemas": { - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image" - ], - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed.", - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects.", - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality" - }, - "DetectWatermarkAnalysisStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "description": "Lifecycle state of the linked watermark analysis.", - "title": "DetectWatermarkAnalysisStatus" - }, - "WatermarkAudioDetectionMetricsOverallStatus": { - "type": "string", - "enum": [ - "present", - "absent", - "inconclusive" - ], - "title": "WatermarkAudioDetectionMetricsOverallStatus" - }, - "WatermarkAudioDetectionMetricsDetectedModelVersionsItems": { - "type": "string", - "enum": [ - "perth_v1", - "perth_v2" - ], - "title": "WatermarkAudioDetectionMetricsDetectedModelVersionsItems" - }, - "WatermarkAudioModelResultModelVersion": { - "type": "string", - "enum": [ - "perth_v1", - "perth_v2" - ], - "title": "WatermarkAudioModelResultModelVersion" - }, - "WatermarkAudioModelResultStatus": { - "type": "string", - "enum": [ - "succeeded", - "failed" - ], - "title": "WatermarkAudioModelResultStatus" - }, - "WatermarkAudioModelResult": { - "type": "object", - "properties": { - "model_version": { - "$ref": "#/components/schemas/WatermarkAudioModelResultModelVersion" - }, - "status": { - "$ref": "#/components/schemas/WatermarkAudioModelResultStatus" - }, - "detected": { - "type": [ - "boolean", - "null" - ], - "description": "Null when this detector was unavailable." - }, - "has_watermark": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, - "description": "Successful per-channel detection results." - }, - "confidence": { - "type": [ - "number", - "null" - ], - "format": "double" - }, - "error": { - "type": "string", - "description": "Safe error message when status is failed." - } - }, - "required": [ - "model_version", - "status", - "detected" - ], - "title": "WatermarkAudioModelResult" - }, - "WatermarkAudioDetectionMetrics": { - "type": "object", - "properties": { - "overall_status": { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsOverallStatus" - }, - "detected_model_versions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsDetectedModelVersionsItems" - }, - "description": "Only model versions that positively detected a watermark." - }, - "coverage_complete": { - "type": "boolean", - "description": "True only when both audio detectors completed successfully." - }, - "has_watermark": { - "type": "object", - "additionalProperties": { - "type": "boolean" - }, - "description": "Per-channel aggregate across successful audio detectors." - }, - "confidence": { - "type": [ - "number", - "null" - ], - "format": "double" - }, - "model_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkAudioModelResult" - } - }, - "synthid": { - "type": "boolean", - "description": "Optional auxiliary SynthID verdict for audio. Omitted when SynthID is unavailable." - } - }, - "required": [ - "overall_status", - "detected_model_versions", - "coverage_complete", - "has_watermark", - "model_results" - ], - "title": "WatermarkAudioDetectionMetrics" - }, - "WatermarkVisionDetectionMetricsOverallStatus": { - "type": "string", - "enum": [ - "present", - "degraded", - "absent", - "inconclusive" - ], - "title": "WatermarkVisionDetectionMetricsOverallStatus" - }, - "WatermarkVisionDetectionMetricsDetectedModelVersionsItems": { - "type": "string", - "enum": [ - "perth_v2" - ], - "title": "WatermarkVisionDetectionMetricsDetectedModelVersionsItems" - }, - "WatermarkVisionModelResultModelVersion": { - "type": "string", - "enum": [ - "perth_v2" - ], - "title": "WatermarkVisionModelResultModelVersion" - }, - "WatermarkVisionModelResultStatus": { - "type": "string", - "enum": [ - "succeeded" - ], - "title": "WatermarkVisionModelResultStatus" - }, - "WatermarkVisionModelResult": { - "type": "object", - "properties": { - "model_version": { - "$ref": "#/components/schemas/WatermarkVisionModelResultModelVersion" - }, - "status": { - "$ref": "#/components/schemas/WatermarkVisionModelResultStatus" - }, - "detected": { - "type": "boolean" - }, - "confidence": { - "type": [ - "number", - "null" - ], - "format": "double" - } - }, - "required": [ - "model_version", - "status", - "detected" - ], - "title": "WatermarkVisionModelResult" - }, - "WatermarkVisionDetectionMetricsVerdict": { - "type": "string", - "enum": [ - "verified", - "degraded", - "not_watermarked" - ], - "description": "Backward-compatible image/video verdict.", - "title": "WatermarkVisionDetectionMetricsVerdict" - }, - "WatermarkVisionDetectionMetrics": { - "type": "object", - "properties": { - "overall_status": { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsOverallStatus" - }, - "detected_model_versions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsDetectedModelVersionsItems" - }, - "description": "Contains perth_v2 only when watermark signal is detected." - }, - "has_watermark": { - "type": "boolean" - }, - "detection_score": { - "type": [ - "number", - "null" - ], - "format": "double" - }, - "model_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/WatermarkVisionModelResult" - } - }, - "verdict": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsVerdict" - }, - { - "type": "null" - } - ], - "description": "Backward-compatible image/video verdict." - }, - "synthid": { - "type": "boolean", - "description": "Optional auxiliary SynthID verdict for image or video. Omitted when SynthID is unavailable." - } - }, - "required": [ - "overall_status", - "detected_model_versions", - "has_watermark", - "detection_score", - "model_results" - ], - "title": "WatermarkVisionDetectionMetrics" - }, - "DetectWatermarkAnalysisMetrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" - }, - { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" - } - ], - "description": "Present when watermark analysis completes. Audio uses Perth v1/v2 metrics; image and video use the Resemble image/video detector metrics. `synthid`, when present, is the boolean verdict returned by SynthID. Its omission means the provider result was unavailable, not that no watermark was found.", - "title": "DetectWatermarkAnalysisMetrics" - }, - "DetectWatermarkAnalysis": { - "type": "object", - "properties": { - "status": { - "$ref": "#/components/schemas/DetectWatermarkAnalysisStatus", - "description": "Lifecycle state of the linked watermark analysis." - }, - "metrics": { - "$ref": "#/components/schemas/DetectWatermarkAnalysisMetrics", - "description": "Present when watermark analysis completes. Audio uses Perth v1/v2 metrics; image and video use the Resemble image/video detector metrics. `synthid`, when present, is the boolean verdict returned by SynthID. Its omission means the provider result was unavailable, not that no watermark was found." - }, - "error_message": { - "type": "string", - "description": "Safe error message when the watermark analysis failed. A child failure does not fail an otherwise successful deepfake detection." - } - }, - "required": [ - "status" - ], - "description": "Conditional watermark analysis requested with `detect_watermark=true`. The object is omitted when watermark analysis was not requested. Resemble watermark metrics and the optional SynthID verdict are independent of the deepfake verdict.", - "title": "DetectWatermarkAnalysis" - }, - "DetectAudioMetrics": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Detection label (fake or real)" - }, - "score": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array of prediction scores per chunk" - }, - "consistency": { - "type": "string", - "description": "Consistency metric across chunks" - }, - "aggregated_score": { - "type": "string", - "description": "Overall aggregated detection score" - }, - "image": { - "type": "string", - "description": "URL to visualization heatmap image (if visualize=true)" - } - }, - "required": [ - "label", - "score", - "consistency", - "aggregated_score" - ], - "description": "Audio detection metrics (for audio and video media types)", - "title": "DetectAudioMetrics" - }, - "DetectImageMetricsChildrenItems": { - "type": "object", - "properties": {}, - "title": "DetectImageMetricsChildrenItems" - }, - "DetectImageMetrics": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "Type of image analysis performed" - }, - "label": { - "type": "string", - "description": "Detection label (fake or real)" - }, - "image": { - "type": "string", - "description": "URL to visualization image" - }, - "score": { - "type": "number", - "format": "double", - "description": "Detection confidence score" - }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectImageMetricsChildrenItems" - }, - "description": "Nested analysis results (structure varies by pipeline)" - } - }, - "required": [ - "type", - "label", - "image", - "score", - "children" - ], - "description": "Image detection metrics (for image media type)", - "title": "DetectImageMetrics" - }, - "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "conclusion": { - "type": "string" - }, - "score": { - "type": "number", - "format": "double" - }, - "certainty": { - "type": "number", - "format": "double" - }, - "certainty (%)": { - "type": "string" - } - }, - "required": [ - "type", - "conclusion", - "score", - "certainty", - "certainty (%)" - ], - "title": "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" - }, - "DetectVideoMetricsChildrenItemsChildrenItems": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "conclusion": { - "type": "string" - }, - "score": { - "type": "number", - "format": "double" - }, - "certainty": { - "type": "number", - "format": "double" - }, - "certainty (%)": { - "type": "string" - }, - "timestamp": { - "type": "number", - "format": "double", - "description": "Timestamp in seconds" - }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" - }, - "description": "Segment-level detection results" - } - }, - "required": [ - "type", - "conclusion", - "score", - "certainty", - "certainty (%)", - "timestamp", - "children" - ], - "title": "DetectVideoMetricsChildrenItemsChildrenItems" - }, - "DetectVideoMetricsChildrenItems": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "conclusion": { - "type": "string" - }, - "score": { - "type": "number", - "format": "double" - }, - "certainty": { - "type": "number", - "format": "double" - }, - "certainty (%)": { - "type": "string" - }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItems" - }, - "description": "Frame-level detection results" - } - }, - "required": [ - "type", - "conclusion", - "score", - "certainty", - "certainty (%)", - "children" - ], - "title": "DetectVideoMetricsChildrenItems" - }, - "DetectVideoMetrics": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Overall video detection label" - }, - "score": { - "type": "number", - "format": "double", - "description": "Overall detection score" - }, - "certainty": { - "type": "number", - "format": "double", - "description": "Overall certainty score" - }, - "treeview": { - "type": "string", - "description": "Optional tree visualization data" - }, - "children": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectVideoMetricsChildrenItems" - }, - "description": "Hierarchical detection results across frames" - } - }, - "required": [ - "label", - "score", - "certainty", - "children" - ], - "description": "Video detection metrics (for video media type)", - "title": "DetectVideoMetrics" - }, - "DetectC2PaManifestValidationState": { - "type": "string", - "enum": [ - "Valid", - "NotPresent", - "Unavailable" - ], - "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete.", - "title": "DetectC2PaManifestValidationState" - }, - "DetectC2paManifest": { - "type": "object", - "properties": { - "validation_state": { - "$ref": "#/components/schemas/DetectC2PaManifestValidationState", - "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete." - }, - "active_manifest": { - "type": [ - "string", - "null" - ], - "description": "Active C2PA manifest identifier when credentials are present" - }, - "manifests": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "description": "Any type" - }, - "description": "Raw manifest details returned by C2PA tooling" - }, - "validation_results": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "description": "Any type" - }, - "description": "Detailed validation results returned by C2PA tooling" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "Generic message when verification is unavailable" - } - }, - "description": "Content Credentials (C2PA) verification result for audio, image, and video media. Returned when verification has completed. A fallback verification failure returns `validation_state: Unavailable` and does not fail the detection.", - "title": "DetectC2paManifest" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" - }, - "error_message": { - "type": [ - "string", - "null" - ] - } - }, - "description": "Source tracing results (only returned if audio is labeled fake)", - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence": { - "type": "object", - "properties": {}, - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams": { - "type": "object", - "properties": {}, - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" - }, - "DetectGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" - }, - "status": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus", - "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed." - }, - "modality": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality", - "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects." - }, - "face_only": { - "type": "boolean", - "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" - }, - "watermark": { - "$ref": "#/components/schemas/DetectWatermarkAnalysis" - }, - "metrics": { - "$ref": "#/components/schemas/DetectAudioMetrics" - }, - "image_metrics": { - "$ref": "#/components/schemas/DetectImageMetrics" - }, - "video_metrics": { - "$ref": "#/components/schemas/DetectVideoMetrics" - }, - "c2pa_manifest": { - "$ref": "#/components/schemas/DetectC2paManifest" - }, - "audio_source_tracing": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" - }, - { - "type": "null" - } - ], - "description": "Source tracing results (only returned if audio is labeled fake)" - }, - "intelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" - }, - { - "type": "null" - } - ] - }, - "url": { - "type": [ - "string", - "null" - ], - "description": "URL to the media file. Null when Zero Retention Mode is enabled." - }, - "audio_url": { - "type": [ - "string", - "null" - ], - "description": "Alias of url. Null when Zero Retention Mode is enabled." - }, - "filename": { - "type": "string", - "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" - }, - "duration": { - "type": "number", - "format": "double" - }, - "zero_retention_mode": { - "type": "boolean", - "description": "Whether Zero Retention Mode was enabled for this detect" - }, - "file_deleted_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" - }, - "visualize": { - "type": "boolean" - }, - "audio_source_tracing_enabled": { - "type": "boolean" - }, - "use_ood_detector": { - "type": "boolean" - }, - "pipeline": { - "type": [ - "string", - "null" - ], - "description": "Legacy field. May be present on older image/video detects. Ignored on create for new detections.", - "deprecated": true - }, - "extra_params": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" - }, - "error_message": { - "type": [ - "string", - "null" - ] - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Deepfake_Detection_listDetections_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "page": { - "type": "integer" - }, - "num_pages": { - "type": "integer" - }, - "page_size": { - "type": "integer" - }, - "total_count": { - "type": "integer" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItems" - } - } - }, - "title": "Deepfake Detection_listDetections_Response_200" - }, - "DetectPostRequestBodyContentMultipartFormDataSchemaModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "default": "all", - "description": "Video only. Selects which detection components run for a video file:\n`audio` (audio track only), `video` (visual frames only), or `all` (both — the default).\nIgnored for audio and image inputs. Invalid values are rejected with HTTP 400.\n", - "title": "DetectPostRequestBodyContentMultipartFormDataSchemaModality" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed.", - "title": "DetectPostResponsesContentApplicationJsonSchemaItemStatus" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n", - "title": "DetectPostResponsesContentApplicationJsonSchemaItemModality" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType": { - "type": "string", - "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" - ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "reasoning": { - "type": "string" - } - }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment": { - "type": "string", - "enum": [ - "real_person", - "not_real_person", - "inconclusive" - ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness": { - "type": "object", - "properties": { - "assessment": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "indicators": { - "type": "string" - } - }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered": { - "type": "object", - "properties": { - "detected": { - "type": "boolean" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "alterations": { - "type": "string" - } - }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1": { - "type": "object", - "properties": { - "speaker_info": { - "type": "string" - }, - "language": { - "type": "string" - }, - "dialect": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "speaking_style": { - "type": "string" - }, - "context": { - "type": "string" - }, - "message": { - "type": "string" - }, - "abnormalities": { - "type": "string" - }, - "transcription": { - "type": "string" - }, - "translation": { - "type": [ - "string", - "null" - ] - }, - "misinformation": { - "type": "string" - }, - "fraud": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" - }, - "liveness": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" - }, - "digitally_altered": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" - } - }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" - } - ], - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" - }, - "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" - }, - "error_message": { - "type": [ - "string", - "null" - ] - }, - "description": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuid": { - "type": "string" - } - }, - "description": "Default Intelligence result when requested", - "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" - }, - "DetectPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemStatus", - "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed." - }, - "zero_retention_mode": { - "type": "boolean", - "description": "Whether Zero Retention Mode is enabled for this detect" - }, - "file_deleted_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" - }, - "url": { - "type": [ - "string", - "null" - ], - "description": "URL to the media file. Null when Zero Retention Mode is enabled." - }, - "audio_url": { - "type": [ - "string", - "null" - ], - "description": "Alias of url. Null when Zero Retention Mode is enabled." - }, - "filename": { - "type": "string", - "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" - }, - "modality": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemModality", - "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n" - }, - "face_only": { - "type": "boolean", - "description": "Effective face-only setting. `true` only for video inputs that include visual\nanalysis; `false` for audio, image, and audio-only video detects.\n" - }, - "watermark": { - "$ref": "#/components/schemas/DetectWatermarkAnalysis" - }, - "intelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" - }, - { - "type": "null" - } - ], - "description": "Default Intelligence result when requested" - }, - "c2pa_manifest": { - "$ref": "#/components/schemas/DetectC2paManifest" - } - }, - "title": "DetectPostResponsesContentApplicationJsonSchemaItem" - }, - "Deepfake_Detection_createDetection_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Deepfake Detection_createDetection_Response_200" - }, - "Error": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "error": { - "type": "string" - }, - "errors": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "message": { - "type": "string" - } - }, - "title": "Error" - }, - "DetectPostResponsesContentApplicationJsonSchemaDetails": { - "type": "object", - "properties": { - "estimated_cost_cents": { - "type": "number", - "format": "double" - }, - "detect_cost_cents": { - "type": "number", - "format": "double" - }, - "watermark_cost_cents": { - "type": "number", - "format": "double", - "description": "Present only when `detect_watermark=true` was requested." - } - }, - "title": "DetectPostResponsesContentApplicationJsonSchemaDetails" - }, - "CreateDetectionRequestPaymentRequiredError": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "error_code": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - }, - "details": { - "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaDetails" - } - }, - "title": "CreateDetectionRequestPaymentRequiredError" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image" - ], - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "description": "Status of the requested Deepfake Detection work. For an otherwise successful Detect with watermark analysis, processing continues until that nested analysis completes or fails. A core detection failure still reports failed. A failed watermark analysis is terminal and does not fail an otherwise successful deepfake detection. Intelligence may still be processing after Detect reaches completed.", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing": { - "type": "object", - "properties": { - "label": { - "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" - }, - "error_message": { - "type": [ - "string", - "null" - ] - } - }, - "description": "Source tracing results (only returned if audio is labeled fake)", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" - }, - "DetectIntelligenceResultStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "failed" - ], - "description": "Status of this Intelligence result, independent of the associated Detect job status.", - "title": "DetectIntelligenceResultStatus" - }, - "DetectIntelligenceResultDescriptionOneOf1FraudType": { - "type": "string", - "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" - ], - "title": "DetectIntelligenceResultDescriptionOneOf1FraudType" - }, - "DetectIntelligenceResultDescriptionOneOf1Fraud": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1FraudType" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "reasoning": { - "type": "string" - } - }, - "title": "DetectIntelligenceResultDescriptionOneOf1Fraud" - }, - "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment": { - "type": "string", - "enum": [ - "real_person", - "not_real_person", - "inconclusive" - ], - "title": "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" - }, - "DetectIntelligenceResultDescriptionOneOf1Liveness": { - "type": "object", - "properties": { - "assessment": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "indicators": { - "type": "string" - } - }, - "title": "DetectIntelligenceResultDescriptionOneOf1Liveness" - }, - "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered": { - "type": "object", - "properties": { - "detected": { - "type": "boolean" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "alterations": { - "type": "string" - } - }, - "title": "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" - }, - "DetectIntelligenceResultDescription1": { - "type": "object", - "properties": { - "speaker_info": { - "type": "string" - }, - "language": { - "type": "string" - }, - "dialect": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "speaking_style": { - "type": "string" - }, - "context": { - "type": "string" - }, - "message": { - "type": "string" - }, - "abnormalities": { - "type": "string" - }, - "transcription": { - "type": "string" - }, - "translation": { - "type": [ - "string", - "null" - ] - }, - "misinformation": { - "type": "string" - }, - "fraud": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Fraud" - }, - "liveness": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Liveness" - }, - "digitally_altered": { - "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" - } - }, - "title": "DetectIntelligenceResultDescription1" - }, - "DetectIntelligenceResultDescription": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/DetectIntelligenceResultDescription1" - } - ], - "title": "DetectIntelligenceResultDescription" - }, - "DetectIntelligenceResult": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/DetectIntelligenceResultStatus", - "description": "Status of this Intelligence result, independent of the associated Detect job status." - }, - "error_message": { - "type": [ - "string", - "null" - ] - }, - "description": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectIntelligenceResultDescription" - }, - { - "type": "null" - } - ] - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuid": { - "type": "string" - } - }, - "description": "One Detect Intelligence expert result", - "title": "DetectIntelligenceResult" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectIntelligenceResult" - }, - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectIntelligenceResult" - }, - { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" - } - ], - "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully.", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality": { - "type": "string", - "enum": [ - "audio", - "video", - "all" - ], - "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n", - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality" - }, - "DetectUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" - }, - "status": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus", - "description": "Status of the requested Deepfake Detection work. For an otherwise successful Detect with watermark analysis, processing continues until that nested analysis completes or fails. A core detection failure still reports failed. A failed watermark analysis is terminal and does not fail an otherwise successful deepfake detection. Intelligence may still be processing after Detect reaches completed." - }, - "metrics": { - "$ref": "#/components/schemas/DetectAudioMetrics" - }, - "image_metrics": { - "$ref": "#/components/schemas/DetectImageMetrics" - }, - "video_metrics": { - "$ref": "#/components/schemas/DetectVideoMetrics" - }, - "c2pa_manifest": { - "$ref": "#/components/schemas/DetectC2paManifest" - }, - "audio_source_tracing": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" - }, - { - "type": "null" - } - ], - "description": "Source tracing results (only returned if audio is labeled fake)" - }, - "intelligence": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" - }, - { - "type": "null" - } - ], - "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully." - }, - "modality": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemModality", - "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n" - }, - "face_only": { - "type": "boolean", - "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" - }, - "watermark": { - "$ref": "#/components/schemas/DetectWatermarkAnalysis" - }, - "url": { - "type": [ - "string", - "null" - ], - "description": "URL to the media file. Null when Zero Retention Mode is enabled." - }, - "audio_url": { - "type": [ - "string", - "null" - ], - "description": "Alias of url. Null when Zero Retention Mode is enabled." - }, - "filename": { - "type": "string", - "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" - }, - "duration": { - "type": "number", - "format": "double" - }, - "zero_retention_mode": { - "type": "boolean", - "description": "Whether Zero Retention Mode is enabled for this detect" - }, - "file_deleted_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Deepfake_Detection_getDetection_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Deepfake Detection_getDetection_Response_200" - }, - "Deepfake_Detection_deleteDetection_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - }, - "title": "Deepfake Detection_deleteDetection_Response_200" - }, - "DetectBatchStatus": { - "type": "string", - "enum": [ - "processing", - "completed", - "partially_failed", - "failed" - ], - "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n", - "title": "DetectBatchStatus" - }, - "DetectBatch": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "description": "Batch UUID." - }, - "status": { - "$ref": "#/components/schemas/DetectBatchStatus", - "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n" - }, - "total_files": { - "type": "integer", - "description": "Number of files in the batch (1–50)." - }, - "completed_count": { - "type": "integer", - "description": "Number of child detects that have completed successfully." - }, - "failed_count": { - "type": "integer", - "description": "Number of child detects that have failed." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "UUIDs of the child detects. Use `GET /detect/{uuid}` to retrieve per-file results." - } - }, - "description": "Aggregate state for a batch detection job. Returned by `POST /detect/batch` and `GET /detect/batch/{uuid}`.", - "title": "DetectBatch" - }, - "Deepfake_Detection_createDetectBatch_Response_202": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectBatch" - } - }, - "title": "Deepfake Detection_createDetectBatch_Response_202" - }, - "Deepfake_Detection_getDetectBatch_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectBatch" - } - }, - "title": "Deepfake Detection_getDetectBatch_Response_200" - }, - "DetectFeedbackType": { - "type": "string", - "enum": [ - "correct", - "should_be_ai_generated", - "should_be_authentic", - "should_be_non_ai", - "should_be_neutral", - "skipped" - ], - "description": "What the verdict should have been.", - "title": "DetectFeedbackType" - }, - "DetectFeedbackVote": { - "type": "string", - "enum": [ - "up", - "down" - ], - "description": "Derived from `type` — `correct` is `up`, everything else is `down`. Never independent of `type`.", - "title": "DetectFeedbackVote" - }, - "DetectFeedbackVerdict": { - "type": "string", - "enum": [ - "ai_generated", - "authentic" - ], - "description": "What the model said, snapshotted when the feedback was submitted. `null` when the\ndetection landed somewhere indeterminate. `should_be_neutral` and `should_be_non_ai`\nhave no counterpart here — this field records only the two decided model outcomes.\n", - "title": "DetectFeedbackVerdict" - }, - "DetectFeedbackMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image", - "text" - ], - "description": "Media type of the detect.", - "title": "DetectFeedbackMediaType" - }, - "DetectFeedback": { - "type": "object", - "properties": { - "detect_uuid": { - "type": "string", - "description": "The detect this answer is attached to." - }, - "type": { - "$ref": "#/components/schemas/DetectFeedbackType", - "description": "What the verdict should have been." - }, - "vote": { - "$ref": "#/components/schemas/DetectFeedbackVote", - "description": "Derived from `type` — `correct` is `up`, everything else is `down`. Never independent of `type`." - }, - "verdict": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectFeedbackVerdict" - }, - { - "type": "null" - } - ], - "description": "What the model said, snapshotted when the feedback was submitted. `null` when the\ndetection landed somewhere indeterminate. `should_be_neutral` and `should_be_non_ai`\nhave no counterpart here — this field records only the two decided model outcomes.\n" - }, - "score": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "The model's headline confidence, 0.0–1.0, or `null`. For video, the higher of the\naudio and video confidences.\n" - }, - "media_type": { - "$ref": "#/components/schemas/DetectFeedbackMediaType", - "description": "Media type of the detect." - }, - "comment": { - "type": [ - "string", - "null" - ], - "description": "The reviewer's free-text comment, or `null`." - }, - "credit": { - "type": "integer", - "description": "Credits awarded for this answer. Written by Resemble, never by the submitter; `0` on a fresh row." - }, - "source": { - "type": "string", - "description": "Attribution string recorded for this answer. Defaults to `api`." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Moves when the answer is revised; `created_at` does not." - } - }, - "description": "A reviewer's answer about a detection verdict, stored with a snapshot of what the\nmodel said at the time the answer was submitted. Returned by\n`POST /detect/{uuid}/feedback` and `GET /detect/{uuid}/feedback`.\n", - "title": "DetectFeedback" - }, - "Deepfake_Detection_getDetectFeedback_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectFeedback" - } - }, - "title": "Deepfake Detection_getDetectFeedback_Response_200" - }, - "DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType": { + { + "name": "musicDetection" + }, + { + "name": "signal" + }, + { + "name": "secureUploads" + }, + { + "name": "account" + }, + { + "name": "billingPlans" + }, + { + "name": "billingSubscriptions" + }, + { + "name": "billingWallet" + } + ], + "servers": [ + { + "url": "https://app.resemble.ai/api/v2", + "description": "production" + }, + { + "url": "https://app.resemble.ai/billing/api/v1", + "description": "billing" + } + ], + "components": { + "schemas": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { "type": "string", "enum": [ - "correct", - "should_be_ai_generated", - "should_be_authentic", - "should_be_non_ai", - "should_be_neutral", - "skipped" + "audio", + "video", + "image" ], - "description": "What the verdict should have been.\n - `correct` — the verdict was right.\n - `should_be_ai_generated` — we said authentic; it is AI-generated.\n - `should_be_authentic` — we said AI-generated; it is genuine and unaltered.\n - `should_be_non_ai` — no model generated it, but it may still be edited, spliced, or a human impersonation.\n - `should_be_neutral` — neither call is right; the media is genuinely ambiguous.\n - `skipped` — the verdict was wrong, but the reviewer didn't say how.\n", - "title": "DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType" - }, - "Deepfake_Detection_createDetectFeedback_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/DetectFeedback" - } - }, - "title": "Deepfake Detection_createDetectFeedback_Response_200" - }, - "Deepfake_Detection_deleteDetectFeedback_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Deepfake Detection_deleteDetectFeedback_Response_200" + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" }, - "DetectAgentTier": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { "type": "string", "enum": [ - "triage", - "investigation", - "forensic" + "processing", + "completed", + "failed" ], - "description": "Managed investigation depth. Informational and read-only.", - "title": "DetectAgentTier" + "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed.", + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus" }, - "DetectAgentCapabilities": { - "type": "object", - "properties": { - "media": { - "type": "boolean" - }, - "reverse_search": { - "type": "boolean" - }, - "identity": { - "type": "boolean" - }, - "grounding": { - "type": "boolean" - }, - "structured": { - "type": "boolean" - }, - "tools": { - "type": "boolean" - }, - "knowledge": { - "type": "boolean" - } - }, - "required": [ - "media", - "reverse_search", - "identity", - "grounding", - "structured", - "tools", - "knowledge" + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality": { + "type": "string", + "enum": [ + "audio", + "video", + "all" ], - "description": "Read-only feature flags for a managed Detect Agent.", - "title": "DetectAgentCapabilities" + "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects.", + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality" }, - "DetectAgent": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Stable Detect Agent identifier. Currently the same as `uuid` and `preset_id`." - }, - "uuid": { - "type": "string", - "description": "Stable identifier used by the run and history endpoints." - }, - "preset_id": { - "type": "string", - "description": "Resemble-managed Detect Agent identifier." - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "string", - "null" - ], - "description": "Verification workflow handled by the Detect Agent." - }, - "tier": { - "$ref": "#/components/schemas/DetectAgentTier", - "description": "Managed investigation depth. Informational and read-only." - }, - "memory_preview": { - "type": "string", - "description": "Read-only preview of patterns learned from previous investigations." - }, - "capabilities": { - "$ref": "#/components/schemas/DetectAgentCapabilities" - }, - "tagline": { - "type": [ - "string", - "null" - ], - "description": "Short description derived from the Detect Agent's managed instructions." - }, - "activated": { - "type": "boolean", - "description": "Whether this team has initialized backing state for the Detect Agent by running it." - }, - "created_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "description": "Team backing-state creation time, or null before the first investigation." - }, - "updated_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "description": "Team backing-state update time, or null before the first investigation." - } - }, - "required": [ - "id", - "uuid", - "preset_id", - "name", - "tier", - "memory_preview", - "capabilities", - "activated" + "DetectWatermarkAnalysisStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" ], - "description": "A Resemble-managed Detect Agent available to the authenticated team.", - "title": "DetectAgent" + "description": "Lifecycle state of the linked watermark analysis.", + "title": "DetectWatermarkAnalysisStatus" }, - "Detect_Agents_listDetectAgents_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DetectAgent" - } - }, - "count": { - "type": "integer" - } - }, - "required": [ - "success", - "items", - "count" + "WatermarkAudioDetectionMetricsOverallStatus": { + "type": "string", + "enum": [ + "present", + "absent", + "inconclusive" ], - "title": "Detect Agents_listDetectAgents_Response_200" + "title": "WatermarkAudioDetectionMetricsOverallStatus" }, - "DetectAgentRunSummaryStatus": { + "WatermarkAudioDetectionMetricsDetectedModelVersionsItems": { "type": "string", "enum": [ - "running", - "completed", - "error" + "perth_v1", + "perth_v2" ], - "title": "DetectAgentRunSummaryStatus" + "title": "WatermarkAudioDetectionMetricsDetectedModelVersionsItems" }, - "DetectAgentRunResultVerdict": { - "type": "object", - "properties": { - "forced": { - "type": "boolean" - }, - "excerpt": { - "type": "string" - } - }, - "title": "DetectAgentRunResultVerdict" + "WatermarkAudioModelResultModelVersion": { + "type": "string", + "enum": [ + "perth_v1", + "perth_v2" + ], + "title": "WatermarkAudioModelResultModelVersion" }, - "DetectAgentRunResult": { + "WatermarkAudioModelResultStatus": { + "type": "string", + "enum": [ + "succeeded", + "failed" + ], + "title": "WatermarkAudioModelResultStatus" + }, + "WatermarkAudioModelResult": { "type": "object", "properties": { - "verdict": { - "oneOf": [ - { - "$ref": "#/components/schemas/DetectAgentRunResultVerdict" - }, - { - "type": "null" - } - ] + "model_version": { + "$ref": "#/components/schemas/WatermarkAudioModelResultModelVersion" }, - "recommended_action": { - "type": [ - "string", - "null" - ] + "status": { + "$ref": "#/components/schemas/WatermarkAudioModelResultStatus" }, - "confidence": { + "detected": { "type": [ - "number", + "boolean", "null" ], - "format": "double" + "description": "Null when this detector was unavailable." }, - "label": { - "type": [ - "string", - "null" - ] + "has_watermark": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "description": "Successful per-channel detection results." }, - "score": { + "confidence": { "type": [ "number", "null" ], "format": "double" }, - "agent_ran": { - "type": [ - "boolean", - "null" - ] - } - }, - "description": "Compact result summary derived from the investigation transcript.", - "title": "DetectAgentRunResult" - }, - "DetectAgentRunSummaryInputs": { - "type": "object", - "properties": { - "query": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - }, - "filename": { - "type": "string" - }, - "check_urls": { - "type": "string" - } - }, - "description": "Submitted investigation inputs. Null-valued fields are omitted.", - "title": "DetectAgentRunSummaryInputs" - }, - "DetectAgentRunSummary": { - "type": "object", - "properties": { - "uuid": { + "error": { "type": "string", - "format": "uuid", - "description": "Investigation run identifier." - }, - "status": { - "$ref": "#/components/schemas/DetectAgentRunSummaryStatus" - }, - "result": { - "$ref": "#/components/schemas/DetectAgentRunResult" - }, - "inputs": { - "$ref": "#/components/schemas/DetectAgentRunSummaryInputs", - "description": "Submitted investigation inputs. Null-valued fields are omitted." - }, - "has_media": { - "type": "boolean", - "description": "Whether primary uploaded media is attached to this run." - }, - "created_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "updated_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" + "description": "Safe error message when status is failed." } }, "required": [ - "uuid", + "model_version", "status", - "result", - "inputs", - "has_media" + "detected" ], - "title": "DetectAgentRunSummary" + "title": "WatermarkAudioModelResult" }, - "Detect_Agents_listDetectAgentInvestigationRuns_Response_200": { + "WatermarkAudioDetectionMetrics": { "type": "object", "properties": { - "success": { - "type": "boolean" + "overall_status": { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsOverallStatus" }, - "items": { + "detected_model_versions": { "type": "array", "items": { - "$ref": "#/components/schemas/DetectAgentRunSummary" - } - }, - "count": { - "type": "integer", - "minimum": 0, - "maximum": 100 - } - }, - "required": [ - "success", - "items", - "count" - ], - "title": "Detect Agents_listDetectAgentInvestigationRuns_Response_200" - }, - "DetectAgentRun": { - "type": "object", - "properties": { - "uuid": { - "type": "string", - "format": "uuid", - "description": "Investigation run identifier." - }, - "status": { - "$ref": "#/components/schemas/DetectAgentRunSummaryStatus" - }, - "result": { - "$ref": "#/components/schemas/DetectAgentRunResult" - }, - "inputs": { - "$ref": "#/components/schemas/DetectAgentRunSummaryInputs", - "description": "Submitted investigation inputs. Null-valued fields are omitted." + "$ref": "#/components/schemas/WatermarkAudioDetectionMetricsDetectedModelVersionsItems" + }, + "description": "Only model versions that positively detected a watermark." }, - "has_media": { + "coverage_complete": { "type": "boolean", - "description": "Whether primary uploaded media is attached to this run." - }, - "created_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "updated_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "transcript": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } - }, - "description": "Public investigation events. Internal cost events are omitted." + "description": "True only when both audio detectors completed successfully." }, - "config_snapshot": { + "has_watermark": { "type": "object", "additionalProperties": { - "description": "Any type" + "type": "boolean" }, - "description": "Exact managed configuration used for the investigation." - }, - "memory_before": { - "type": "string" - }, - "memory_after": { - "type": "string" - }, - "error": { - "type": [ - "string", - "null" - ] + "description": "Per-channel aggregate across successful audio detectors." }, - "media_url": { + "confidence": { "type": [ - "string", + "number", "null" ], - "description": "Relative URL for uploaded primary media, or null when the run used a public URL." - } - }, - "required": [ - "uuid", - "status", - "result", - "inputs", - "has_media" - ], - "title": "DetectAgentRun" - }, - "Detect_Agents_getDetectAgentInvestigationRun_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "format": "double" }, - "item": { - "$ref": "#/components/schemas/DetectAgentRun" + "model_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkAudioModelResult" + } + }, + "synthid": { + "type": "boolean", + "description": "Optional auxiliary SynthID verdict for audio. Omitted when SynthID is unavailable." } }, "required": [ - "success", - "item" + "overall_status", + "detected_model_versions", + "coverage_complete", + "has_watermark", + "model_results" ], - "title": "Detect Agents_getDetectAgentInvestigationRun_Response_200" + "title": "WatermarkAudioDetectionMetrics" }, - "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType": { + "WatermarkVisionDetectionMetricsOverallStatus": { "type": "string", "enum": [ - "audio", - "video", - "image" + "present", + "degraded", + "absent", + "inconclusive" ], - "description": "Explicit media type (auto-detected if not provided)", - "title": "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType" + "title": "WatermarkVisionDetectionMetricsOverallStatus" }, - "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType": { + "WatermarkVisionDetectionMetricsDetectedModelVersionsItems": { "type": "string", "enum": [ - "audio", - "video", - "image" + "perth_v2" ], - "description": "Type of media analyzed", - "title": "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType" - }, - "IntelligencePostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" - }, - "media_type": { - "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType", - "description": "Type of media analyzed" - } - }, - "title": "IntelligencePostResponsesContentApplicationJsonSchemaItem" - }, - "Intelligence_runIntelligence_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Intelligence_runIntelligence_Response_200" + "title": "WatermarkVisionDetectionMetricsDetectedModelVersionsItems" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType": { + "WatermarkVisionModelResultModelVersion": { "type": "string", "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" + "perth_v2" ], - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" - }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" - }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "reasoning": { - "type": "string" - } - }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" + "title": "WatermarkVisionModelResultModelVersion" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment": { + "WatermarkVisionModelResultStatus": { "type": "string", "enum": [ - "real_person", - "not_real_person", - "inconclusive" + "succeeded" ], - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" + "title": "WatermarkVisionModelResultStatus" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness": { + "WatermarkVisionModelResult": { "type": "object", "properties": { - "assessment": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" + "model_version": { + "$ref": "#/components/schemas/WatermarkVisionModelResultModelVersion" }, - "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 + "status": { + "$ref": "#/components/schemas/WatermarkVisionModelResultStatus" }, - "indicators": { - "type": "string" - } - }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" - }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered": { - "type": "object", - "properties": { "detected": { "type": "boolean" }, "confidence": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 - }, - "alterations": { - "type": "string" + "type": [ + "number", + "null" + ], + "format": "double" } }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" + "required": [ + "model_version", + "status", + "detected" + ], + "title": "WatermarkVisionModelResult" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription": { + "WatermarkVisionDetectionMetricsVerdict": { + "type": "string", + "enum": [ + "verified", + "degraded", + "not_watermarked" + ], + "description": "Backward-compatible image/video verdict.", + "title": "WatermarkVisionDetectionMetricsVerdict" + }, + "WatermarkVisionDetectionMetrics": { "type": "object", "properties": { - "speaker_info": { - "type": "string" - }, - "language": { - "type": "string" - }, - "dialect": { - "type": "string" - }, - "emotion": { - "type": "string" - }, - "speaking_style": { - "type": "string" - }, - "context": { - "type": "string" - }, - "message": { - "type": "string" + "overall_status": { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsOverallStatus" }, - "abnormalities": { - "type": "string" + "detected_model_versions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsDetectedModelVersionsItems" + }, + "description": "Contains perth_v2 only when watermark signal is detected." }, - "transcription": { - "type": "string" + "has_watermark": { + "type": "boolean" }, - "translation": { + "detection_score": { "type": [ - "string", + "number", "null" - ] - }, - "misinformation": { - "type": "string" + ], + "format": "double" }, - "fraud": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" + "model_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WatermarkVisionModelResult" + } }, - "liveness": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" + "verdict": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetricsVerdict" + }, + { + "type": "null" + } + ], + "description": "Backward-compatible image/video verdict." }, - "digitally_altered": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" + "synthid": { + "type": "boolean", + "description": "Optional auxiliary SynthID verdict for image or video. Omitted when SynthID is unavailable." } }, - "description": "Structured intelligence analysis", - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription" + "required": [ + "overall_status", + "detected_model_versions", + "has_watermark", + "detection_score", + "model_results" + ], + "title": "WatermarkVisionDetectionMetrics" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { - "type": "string", - "enum": [ - "audio", - "video", - "image" + "DetectWatermarkAnalysisMetrics": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" + }, + { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" + } + ], + "description": "Present when watermark analysis completes. Audio uses Perth v1/v2 metrics; image and video use the Resemble image/video detector metrics. `synthid`, when present, is the boolean verdict returned by SynthID. Its omission means the provider result was unavailable, not that no watermark was found.", + "title": "DetectWatermarkAnalysisMetrics" + }, + "DetectWatermarkAnalysis": { + "type": "object", + "properties": { + "status": { + "$ref": "#/components/schemas/DetectWatermarkAnalysisStatus", + "description": "Lifecycle state of the linked watermark analysis." + }, + "metrics": { + "$ref": "#/components/schemas/DetectWatermarkAnalysisMetrics", + "description": "Present when watermark analysis completes. Audio uses Perth v1/v2 metrics; image and video use the Resemble image/video detector metrics. `synthid`, when present, is the boolean verdict returned by SynthID. Its omission means the provider result was unavailable, not that no watermark was found." + }, + "error_message": { + "type": "string", + "description": "Safe error message when the watermark analysis failed. A child failure does not fail an otherwise successful deepfake detection." + } + }, + "required": [ + "status" ], - "description": "Type of media analyzed", - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" + "description": "Conditional watermark analysis requested with `detect_watermark=true`. The object is omitted when watermark analysis was not requested. Resemble watermark metrics and the optional SynthID verdict are independent of the deepfake verdict.", + "title": "DetectWatermarkAnalysis" }, - "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems": { + "DetectAudioMetrics": { "type": "object", "properties": { - "uuid": { - "type": "string" + "label": { + "type": "string", + "description": "Detection label (fake or real)" }, - "description": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription", - "description": "Structured intelligence analysis" + "score": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of prediction scores per chunk" }, - "created_at": { + "consistency": { "type": "string", - "format": "date-time" + "description": "Consistency metric across chunks" }, - "detect_uuid": { + "aggregated_score": { "type": "string", - "description": "UUID of the associated detect object" + "description": "Overall aggregated detection score" }, - "media_type": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType", - "description": "Type of media analyzed" + "image": { + "type": "string", + "description": "URL to visualization heatmap image (if visualize=true)" } }, - "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "label", + "score", + "consistency", + "aggregated_score" + ], + "description": "Audio detection metrics (for audio and video media types)", + "title": "DetectAudioMetrics" }, - "Intelligence_listIntelligences_Response_200": { + "DetectImageMetricsChildrenItems": { + "type": "object", + "properties": {}, + "title": "DetectImageMetricsChildrenItems" + }, + "DetectImageMetrics": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "page": { - "type": "integer" + "type": { + "type": "string", + "description": "Type of image analysis performed" }, - "num_pages": { - "type": "integer" + "label": { + "type": "string", + "description": "Detection label (fake or real)" }, - "page_size": { - "type": "integer" + "image": { + "type": "string", + "description": "URL to visualization image" }, - "total_count": { - "type": "integer" + "score": { + "type": "number", + "format": "double", + "description": "Detection confidence score" }, - "items": { + "children": { "type": "array", "items": { - "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" - } + "$ref": "#/components/schemas/DetectImageMetricsChildrenItems" + }, + "description": "Nested analysis results (structure varies by pipeline)" } }, - "title": "Intelligence_listIntelligences_Response_200" - }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType": { - "type": "string", - "enum": [ - "none", - "vishing", - "impersonation", - "romance_scam", - "tech_support_scam", - "financial_fraud", - "extortion", - "political_manipulation", - "synthetic_media_fraud", - "insurance_fraud", - "employment_fraud", - "other" + "required": [ + "type", + "label", + "image", + "score", + "children" ], - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" + "description": "Image detection metrics (for image media type)", + "title": "DetectImageMetrics" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud": { + "DetectVideoAttackTypeItems": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" + "code": { + "type": "string", + "description": "Attack type code" }, - "confidence": { + "name": { + "type": "string", + "description": "Human-readable attack type name" + }, + "prob": { "type": "number", "format": "double", - "minimum": 0, - "maximum": 100 - }, - "reasoning": { - "type": "string" + "description": "Probability of this attack type, given that the result is fake" } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" - }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment": { - "type": "string", - "enum": [ - "real_person", - "not_real_person", - "inconclusive" + "required": [ + "code", + "name", + "prob" ], - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" + "title": "DetectVideoAttackTypeItems" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness": { + "DetectVideoAttackType": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoAttackTypeItems" + }, + "description": "How the video, or one chunk of it, was most likely made. Present only on results scored fake (score of 0.5 or higher) and omitted on real results. A probability distribution over every attack type, sorted from most to least likely; the `prob` values sum to 1 and the first entry is the most likely attack. Codes: S0, S1, S2 (generated), V1, V2, V3 (video-to-video), L1-L6 (local edits), F1-F6 (face), X0 (method unknown). Group codes (S0, V3, F6, X0) are never returned as the first entry. New codes may be added in future releases; if you receive a code you don't recognize, show its `name` instead of treating it as an error.", + "title": "DetectVideoAttackType" + }, + "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems": { "type": "object", "properties": { - "assessment": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" + "type": { + "type": "string" }, - "confidence": { + "conclusion": { + "type": "string" + }, + "score": { "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 + "format": "double" }, - "indicators": { + "certainty": { + "type": "number", + "format": "double" + }, + "certainty (%)": { "type": "string" } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)" + ], + "title": "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered": { + "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems": { "type": "object", "properties": { - "detected": { - "type": "boolean" + "type": { + "type": "string" }, - "confidence": { + "conclusion": { + "type": "string" + }, + "score": { "type": "number", - "format": "double", - "minimum": 0, - "maximum": 100 + "format": "double" }, - "alterations": { + "certainty": { + "type": "number", + "format": "double" + }, + "certainty (%)": { "type": "string" + }, + "timestamp": { + "type": "number", + "format": "double", + "description": "Timestamp in seconds" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItemsChildrenItemsChildrenItems" + }, + "description": "Region-level detection results" } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)", + "timestamp" + ], + "title": "DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription": { + "DetectVideoMetricsChildrenItemsChildrenItems": { "type": "object", "properties": { - "speaker_info": { + "type": { "type": "string" }, - "language": { + "conclusion": { "type": "string" }, - "dialect": { + "score": { + "type": "number", + "format": "double" + }, + "certainty": { + "type": "number", + "format": "double" + }, + "certainty (%)": { "type": "string" }, - "emotion": { + "chunk_index": { + "type": "integer", + "description": "Zero-based position of the chunk in the video" + }, + "start_time": { + "type": "number", + "format": "double", + "description": "Chunk start in seconds" + }, + "end_time": { + "type": "number", + "format": "double", + "description": "Chunk end in seconds" + }, + "attack": { + "$ref": "#/components/schemas/DetectVideoAttackType" + }, + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItemsChildrenItems" + }, + "description": "Frame-level detection results" + } + }, + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)", + "chunk_index", + "start_time", + "end_time", + "children" + ], + "title": "DetectVideoMetricsChildrenItemsChildrenItems" + }, + "DetectVideoMetricsChildrenItems": { + "type": "object", + "properties": { + "type": { "type": "string" }, - "speaking_style": { + "conclusion": { "type": "string" }, - "context": { - "type": "string" + "score": { + "type": "number", + "format": "double" }, - "message": { - "type": "string" + "certainty": { + "type": "number", + "format": "double" }, - "abnormalities": { + "certainty (%)": { "type": "string" }, - "transcription": { - "type": "string" + "attack": { + "$ref": "#/components/schemas/DetectVideoAttackType" }, - "translation": { - "type": [ - "string", - "null" - ] + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItemsChildrenItems" + }, + "description": "Chunk-level detection results, one per analyzed window of the video" + } + }, + "required": [ + "type", + "conclusion", + "score", + "certainty", + "certainty (%)", + "children" + ], + "title": "DetectVideoMetricsChildrenItems" + }, + "DetectVideoMetrics": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Overall video detection label" }, - "misinformation": { - "type": "string" + "score": { + "type": "number", + "format": "double", + "description": "Overall detection score" }, - "fraud": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" + "certainty": { + "type": "number", + "format": "double", + "description": "Overall certainty score" }, - "liveness": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" + "treeview": { + "type": "string", + "description": "Optional tree visualization data" }, - "digitally_altered": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectVideoMetricsChildrenItems" + }, + "description": "Video-level detection result (one `VideoResult`)" } }, - "description": "Structured intelligence analysis", - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription" + "required": [ + "label", + "score", + "certainty", + "children" + ], + "description": "Video detection metrics (for video media type)", + "title": "DetectVideoMetrics" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { + "DetectC2PaManifestValidationState": { "type": "string", "enum": [ - "audio", - "video", - "image" + "Valid", + "NotPresent", + "Unavailable" ], - "description": "Type of media analyzed", - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType" + "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete.", + "title": "DetectC2PaManifestValidationState" }, - "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem": { + "DetectC2paManifest": { "type": "object", "properties": { - "uuid": { - "type": "string" + "validation_state": { + "$ref": "#/components/schemas/DetectC2PaManifestValidationState", + "description": "Verification state. `NotPresent` means no embedded Content Credentials were found; `Unavailable` means verification could not complete." }, - "description": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription", - "description": "Structured intelligence analysis" + "active_manifest": { + "type": [ + "string", + "null" + ], + "description": "Active C2PA manifest identifier when credentials are present" }, - "created_at": { - "type": "string", - "format": "date-time" + "manifests": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + }, + "description": "Raw manifest details returned by C2PA tooling" }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" + "validation_results": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "description": "Any type" + }, + "description": "Detailed validation results returned by C2PA tooling" }, - "media_type": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType", - "description": "Type of media analyzed" + "message": { + "type": [ + "string", + "null" + ], + "description": "Generic message when verification is unavailable" } }, - "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" + "description": "Content Credentials (C2PA) verification result for audio, image, and video media. Returned when verification has completed. A fallback verification failure returns `validation_state: Unavailable` and does not fail the detection.", + "title": "DetectC2paManifest" }, - "Intelligence_getIntelligence_Response_200": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing": { "type": "object", "properties": { - "success": { - "type": "boolean" + "label": { + "type": "string", + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" }, - "item": { - "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" + "error_message": { + "type": [ + "string", + "null" + ] } }, - "title": "Intelligence_getIntelligence_Response_200" + "description": "Source tracing results (only returned if audio is labeled fake)", + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" }, - "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "description": "Current status of the question", - "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus" + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence": { + "type": "object", + "properties": {}, + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" }, - "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem": { + "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams": { + "type": "object", + "properties": {}, + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" + }, + "DetectGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { "uuid": { - "type": "string", - "description": "UUID of the question" + "type": "string" }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detection report" + "media_type": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" + }, + "status": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatus", + "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed." + }, + "modality": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsModality", + "description": "Which detection modality was requested. `all` when not specified (the default). Only meaningful for video detects." + }, + "face_only": { + "type": "boolean", + "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" + }, + "watermark": { + "$ref": "#/components/schemas/DetectWatermarkAnalysis" + }, + "metrics": { + "$ref": "#/components/schemas/DetectAudioMetrics" + }, + "image_metrics": { + "$ref": "#/components/schemas/DetectImageMetrics" + }, + "video_metrics": { + "$ref": "#/components/schemas/DetectVideoMetrics" + }, + "c2pa_manifest": { + "$ref": "#/components/schemas/DetectC2paManifest" + }, + "audio_source_tracing": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracing" + }, + { + "type": "null" + } + ], + "description": "Source tracing results (only returned if audio is labeled fake)" + }, + "intelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligence" + }, + { + "type": "null" + } + ] + }, + "url": { + "type": [ + "string", + "null" + ], + "description": "URL to the media file. Null when Zero Retention Mode is enabled." + }, + "audio_url": { + "type": [ + "string", + "null" + ], + "description": "Alias of url. Null when Zero Retention Mode is enabled." }, - "query": { + "filename": { "type": "string", - "description": "The submitted question" + "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" }, - "answer": { + "duration": { + "type": "number", + "format": "double" + }, + "zero_retention_mode": { + "type": "boolean", + "description": "Whether Zero Retention Mode was enabled for this detect" + }, + "file_deleted_at": { "type": [ "string", "null" ], - "description": "The generated answer (null until completed)" + "format": "date-time", + "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" }, - "status": { - "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus", - "description": "Current status of the question" + "visualize": { + "type": "boolean" }, - "error_message": { + "audio_source_tracing_enabled": { + "type": "boolean" + }, + "use_ood_detector": { + "type": "boolean" + }, + "pipeline": { "type": [ "string", "null" ], - "description": "Error details when status is failed" + "description": "Legacy field. May be present on older image/video detects. Ignored on create for new detections.", + "deprecated": true + }, + "extra_params": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItemsExtraParams" + }, + "error_message": { + "type": [ + "string", + "null" + ] }, "created_at": { "type": "string", @@ -9593,755 +4911,737 @@ "format": "date-time" } }, - "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" + "title": "DetectGetResponsesContentApplicationJsonSchemaItemsItems" }, - "Detect_Intelligence_askDetectIntelligenceQuestion_Response_202": { + "Deepfake_Detection_listDetections_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" + "page": { + "type": "integer" + }, + "num_pages": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectGetResponsesContentApplicationJsonSchemaItemsItems" + } } }, - "title": "Detect Intelligence_askDetectIntelligenceQuestion_Response_202" + "title": "Deepfake Detection_listDetections_Response_200" }, - "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "DetectPostRequestBodyContentMultipartFormDataSchemaModality": { + "type": "string", + "enum": [ + "audio", + "video", + "all" + ], + "default": "all", + "description": "Video only. Selects which detection components run for a video file:\n`audio` (audio track only), `video` (visual frames only), or `all` (both — the default).\nIgnored for audio and image inputs. Invalid values are rejected with HTTP 400.\n", + "title": "DetectPostRequestBodyContentMultipartFormDataSchemaModality" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemStatus": { "type": "string", "enum": [ - "pending", "processing", "completed", "failed" ], - "description": "Current status of the question", - "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus" + "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed.", + "title": "DetectPostResponsesContentApplicationJsonSchemaItemStatus" }, - "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { + "DetectPostResponsesContentApplicationJsonSchemaItemModality": { + "type": "string", + "enum": [ + "audio", + "video", + "all" + ], + "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n", + "title": "DetectPostResponsesContentApplicationJsonSchemaItemModality" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "failed" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType": { + "type": "string", + "enum": [ + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud": { "type": "object", "properties": { - "uuid": { - "type": "string", - "description": "UUID of the question" - }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detection report" - }, - "query": { - "type": "string", - "description": "The submitted question" - }, - "answer": { - "type": [ - "string", - "null" - ], - "description": "The generated answer (null until completed)" - }, - "status": { - "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus", - "description": "Current status of the question" - }, - "error_message": { - "type": [ - "string", - "null" - ], - "description": "Error details when status is failed" + "type": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType" }, - "created_at": { - "type": "string", - "format": "date-time" + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 }, - "updated_at": { - "type": "string", - "format": "date-time" + "reasoning": { + "type": "string" } }, - "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" }, - "Detect_Intelligence_getDetectIntelligenceQuestion_Response_200": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment": { + "type": "string", + "enum": [ + "real_person", + "not_real_person", + "inconclusive" + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness": { "type": "object", "properties": { - "success": { - "type": "boolean" + "assessment": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment" }, - "item": { - "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "indicators": { + "type": "string" } }, - "title": "Detect Intelligence_getDetectIntelligenceQuestion_Response_200" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" }, - "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered": { "type": "object", "properties": { - "label": { - "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" + "detected": { + "type": "boolean" }, - "error_message": { - "type": [ - "string", - "null" - ] + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "alterations": { + "type": "string" } }, - "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" }, - "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1": { "type": "object", "properties": { - "uuid": { + "speaker_info": { "type": "string" }, - "results": { - "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" + "language": { + "type": "string" }, - "created_at": { - "type": "string", - "format": "date-time" + "dialect": { + "type": "string" }, - "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" - } - }, - "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Audio_Source_Tracing_listAudioSourceTracings_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "emotion": { + "type": "string" + }, + "speaking_style": { + "type": "string" + }, + "context": { + "type": "string" + }, + "message": { + "type": "string" + }, + "abnormalities": { + "type": "string" }, - "page": { - "type": "integer" + "transcription": { + "type": "string" }, - "num_pages": { - "type": "integer" + "translation": { + "type": [ + "string", + "null" + ] }, - "page_size": { - "type": "integer" + "misinformation": { + "type": "string" }, - "total_count": { - "type": "integer" + "fraud": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Fraud" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "liveness": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1Liveness" + }, + "digitally_altered": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1DigitallyAltered" } }, - "title": "Audio Source Tracing_listAudioSourceTracings_Response_200" + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" }, - "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults": { + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription1" + } + ], + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" + }, + "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence": { "type": "object", "properties": { - "label": { - "type": "string", - "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" + "uuid": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus" }, "error_message": { "type": [ "string", "null" ] - } - }, - "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" - }, - "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" }, - "results": { - "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" + "description": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription" }, "created_at": { "type": "string", "format": "date-time" }, "detect_uuid": { - "type": "string", - "description": "UUID of the associated detect object" - } - }, - "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Audio_Source_Tracing_getAudioSourceTracing_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" + "type": "string" } }, - "title": "Audio Source Tracing_getAudioSourceTracing_Response_200" - }, - "IdentitySummaryVisibility": { - "type": "string", - "enum": [ - "team", - "global" - ], - "title": "IdentitySummaryVisibility" - }, - "IdentitySummaryIdentityType": { - "type": "string", - "enum": [ - "person", - "brand" - ], - "title": "IdentitySummaryIdentityType" + "description": "Default Intelligence result when requested", + "title": "DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" }, - "IdentitySummary": { + "DetectPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { "uuid": { "type": "string" }, - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemStatus", + "description": "Processing state for the requested Detect work. For an otherwise successful Detect with watermark analysis, this remains processing until the linked analysis completes or fails. A core detection failure still reports failed." }, - "created_at": { - "type": "string", - "format": "date-time" + "zero_retention_mode": { + "type": "boolean", + "description": "Whether Zero Retention Mode is enabled for this detect" }, - "audio_url": { + "file_deleted_at": { "type": [ "string", "null" ], - "format": "uri", - "description": "URL of the first voice sample, if any" - }, - "visibility": { - "$ref": "#/components/schemas/IdentitySummaryVisibility" - }, - "identity_type": { - "$ref": "#/components/schemas/IdentitySummaryIdentityType" + "format": "date-time", + "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" }, - "notes": { + "url": { "type": [ "string", "null" - ] + ], + "description": "URL to the media file. Null when Zero Retention Mode is enabled." }, - "voice_profile_id": { + "audio_url": { "type": [ "string", "null" - ] + ], + "description": "Alias of url. Null when Zero Retention Mode is enabled." }, - "updated_at": { + "filename": { "type": "string", - "format": "date-time" + "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" }, - "project_count": { - "type": "integer" + "modality": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemModality", + "description": "Which detection modality was requested. `all` when not specified.\nFor a single-modality video detect, the skipped component's metrics are absent\n(`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped), and the\ndetect still reaches `completed` once the requested modality(ies) finish.\n" + }, + "face_only": { + "type": "boolean", + "description": "Effective face-only setting. `true` only for video inputs that include visual\nanalysis; `false` for audio, image, and audio-only video detects.\n" + }, + "watermark": { + "$ref": "#/components/schemas/DetectWatermarkAnalysis" + }, + "intelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItemIntelligence" + }, + { + "type": "null" + } + ], + "description": "Default Intelligence result when requested" + }, + "c2pa_manifest": { + "$ref": "#/components/schemas/DetectC2paManifest" } }, - "description": "Identity summary returned by the list and simple-create endpoints", - "title": "IdentitySummary" + "title": "DetectPostResponsesContentApplicationJsonSchemaItem" }, - "Identity_listIdentities_Response_200": { + "Deepfake_Detection_createDetection_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "page": { - "type": "integer" - }, - "num_pages": { - "type": "integer" - }, - "page_size": { - "type": "integer" - }, - "total_count": { - "type": "integer" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentitySummary" - } + "item": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaItem" } }, - "title": "Identity_listIdentities_Response_200" + "title": "Deepfake Detection_createDetection_Response_200" }, - "IdentityCreateIdentityRequest0": { + "Error": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "Speaker name/identifier" + "success": { + "type": "boolean" }, - "url": { - "type": "string", - "format": "uri", - "description": "URL to an audio sample (one of url, audio, signed_id is required)" + "error": { + "type": "string" }, - "signed_id": { - "type": "string", - "description": "Signed ID from a secure upload" + "errors": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "message": { + "type": "string" } }, - "required": [ - "name" - ], - "title": "IdentityCreateIdentityRequest0" - }, - "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType": { - "type": "string", - "enum": [ - "person", - "brand" - ], - "default": "person", - "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" + "title": "Error" }, - "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility": { - "type": "string", - "enum": [ - "team", - "global" - ], - "default": "team", - "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + "DetectPostResponsesContentApplicationJsonSchemaDetails": { + "type": "object", + "properties": { + "estimated_cost_cents": { + "type": "number", + "format": "double" + }, + "detect_cost_cents": { + "type": "number", + "format": "double" + }, + "watermark_cost_cents": { + "type": "number", + "format": "double", + "description": "Present only when `detect_watermark=true` was requested." + } + }, + "title": "DetectPostResponsesContentApplicationJsonSchemaDetails" }, - "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity": { + "CreateDetectionRequestPaymentRequiredError": { "type": "object", "properties": { - "name": { - "type": "string", - "maxLength": 120 - }, - "identity_type": { - "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" + "success": { + "type": "boolean" }, - "visibility": { - "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + "error_code": { + "type": "string" }, - "notes": { + "error": { "type": "string" }, - "voice_profile_id": { + "message": { "type": "string" + }, + "details": { + "$ref": "#/components/schemas/DetectPostResponsesContentApplicationJsonSchemaDetails" } }, - "required": [ - "name" - ], - "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" + "title": "CreateDetectionRequestPaymentRequiredError" }, - "IdentityCreateIdentityRequest1": { - "type": "object", - "properties": { - "identity": { - "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" - } - }, - "required": [ - "identity" + "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" ], - "title": "IdentityCreateIdentityRequest1" + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" }, - "Identity_createIdentity_Request": { - "oneOf": [ - { - "$ref": "#/components/schemas/IdentityCreateIdentityRequest0" - }, - { - "$ref": "#/components/schemas/IdentityCreateIdentityRequest1" - } + "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "failed" ], - "title": "Identity_createIdentity_Request" + "description": "Status of the requested Deepfake Detection work. For an otherwise successful Detect with watermark analysis, processing continues until that nested analysis completes or fails. A core detection failure still reports failed. A failed watermark analysis is terminal and does not fail an otherwise successful deepfake detection. Intelligence may still be processing after Detect reaches completed.", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus" }, - "Identity_createIdentity_Response_200": { + "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing": { "type": "object", "properties": { - "success": { - "type": "boolean", - "description": "Whether the voice was enrolled for matching immediately" + "label": { + "type": "string", + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" }, - "item": { - "$ref": "#/components/schemas/IdentitySummary" - } - }, - "title": "Identity_createIdentity_Response_200" - }, - "Identity_deleteIdentity_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "error_message": { + "type": [ + "string", + "null" + ] } }, - "title": "Identity_deleteIdentity_Response_200" + "description": "Source tracing results (only returned if audio is labeled fake)", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" }, - "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality": { + "DetectIntelligenceResultStatus": { "type": "string", "enum": [ - "voice", - "face", - "video" + "processing", + "completed", + "failed" ], - "title": "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" + "description": "Status of this Intelligence result, independent of the associated Detect job status.", + "title": "DetectIntelligenceResultStatus" }, - "IdentityIdentityType": { + "DetectIntelligenceResultDescriptionOneOf1FraudType": { "type": "string", "enum": [ - "person", - "brand" + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" ], - "title": "IdentityIdentityType" + "title": "DetectIntelligenceResultDescriptionOneOf1FraudType" }, - "IdentityVisibility": { + "DetectIntelligenceResultDescriptionOneOf1Fraud": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1FraudType" + }, + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "reasoning": { + "type": "string" + } + }, + "title": "DetectIntelligenceResultDescriptionOneOf1Fraud" + }, + "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment": { "type": "string", "enum": [ - "team", - "global" + "real_person", + "not_real_person", + "inconclusive" ], - "title": "IdentityVisibility" + "title": "DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" }, - "IdentityAttachment": { + "DetectIntelligenceResultDescriptionOneOf1Liveness": { "type": "object", "properties": { - "id": { - "type": "integer" + "assessment": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1LivenessAssessment" }, - "filename": { + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "indicators": { "type": "string" + } + }, + "title": "DetectIntelligenceResultDescriptionOneOf1Liveness" + }, + "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered": { + "type": "object", + "properties": { + "detected": { + "type": "boolean" }, - "byte_size": { - "type": "integer" + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 }, - "content_type": { + "alterations": { "type": "string" } }, - "description": "A reference media file attached to an identity", - "title": "IdentityAttachment" - }, - "IdentityEmbeddingsItemsModality": { - "type": "string", - "enum": [ - "voice", - "face", - "video" - ], - "title": "IdentityEmbeddingsItemsModality" + "title": "DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" }, - "IdentityEmbeddingsItems": { + "DetectIntelligenceResultDescription1": { "type": "object", "properties": { - "modality": { - "$ref": "#/components/schemas/IdentityEmbeddingsItemsModality" + "speaker_info": { + "type": "string" }, - "status": { + "language": { "type": "string" }, - "attachment_count": { - "type": "integer" + "dialect": { + "type": "string" }, - "computed_at": { + "emotion": { + "type": "string" + }, + "speaking_style": { + "type": "string" + }, + "context": { + "type": "string" + }, + "message": { + "type": "string" + }, + "abnormalities": { + "type": "string" + }, + "transcription": { + "type": "string" + }, + "translation": { "type": [ "string", "null" - ], - "format": "date-time" + ] + }, + "misinformation": { + "type": "string" + }, + "fraud": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Fraud" + }, + "liveness": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1Liveness" + }, + "digitally_altered": { + "$ref": "#/components/schemas/DetectIntelligenceResultDescriptionOneOf1DigitallyAltered" } }, - "title": "IdentityEmbeddingsItems" + "title": "DetectIntelligenceResultDescription1" }, - "IdentityProjectsItems": { - "type": "object", - "properties": { - "uuid": { + "DetectIntelligenceResultDescription": { + "oneOf": [ + { "type": "string" }, - "name": { - "type": "string" + { + "$ref": "#/components/schemas/DetectIntelligenceResultDescription1" } - }, - "title": "IdentityProjectsItems" + ], + "title": "DetectIntelligenceResultDescription" }, - "Identity": { + "DetectIntelligenceResult": { "type": "object", "properties": { "uuid": { "type": "string" }, - "name": { - "type": "string" - }, - "identity_type": { - "$ref": "#/components/schemas/IdentityIdentityType" - }, - "visibility": { - "$ref": "#/components/schemas/IdentityVisibility" + "status": { + "$ref": "#/components/schemas/DetectIntelligenceResultStatus", + "description": "Status of this Intelligence result, independent of the associated Detect job status." }, - "notes": { + "error_message": { "type": [ "string", "null" ] }, - "voice_profile_id": { - "type": [ - "string", - "null" + "description": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectIntelligenceResultDescription" + }, + { + "type": "null" + } ] }, "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "project_count": { - "type": "integer" - }, - "voice_samples": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityAttachment" - } - }, - "face_photos": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityAttachment" - } - }, - "reference_videos": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityAttachment" - } - }, - "embeddings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityEmbeddingsItems" - }, - "description": "Per-modality embedding processing status" - }, - "projects": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityProjectsItems" - } + "detect_uuid": { + "type": "string" } }, - "description": "A multimodal identity profile", - "title": "Identity" + "description": "One Detect Intelligence expert result", + "title": "DetectIntelligenceResult" }, - "Identity_deleteIdentityAttachment_Response_204": { - "type": "object", - "properties": {}, - "description": "Empty response body", - "title": "Identity_deleteIdentityAttachment_Response_204" + "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectIntelligenceResult" + }, + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" }, - "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality": { - "type": "string", - "enum": [ - "audio", - "image" + "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectIntelligenceResult" + }, + { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence1" + } ], - "description": "Inferred from the media's content type when omitted (defaults to audio)", - "title": "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality" + "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully.", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" }, - "IdentitySearchPostResponsesContentApplicationJsonSchemaModality": { + "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality": { "type": "string", "enum": [ "audio", - "image" + "video", + "all" ], - "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n", + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItemModality" }, - "IdentitySearchPostResponsesContentApplicationJsonSchemaItem": { + "DetectUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "name": { + "uuid": { "type": "string" }, - "distance": { - "type": "number", - "format": "double" + "media_type": { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType" }, - "score_type": { - "type": "string" - } - }, - "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaItem" - }, - "Identity_searchIdentities_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus", + "description": "Status of the requested Deepfake Detection work. For an otherwise successful Detect with watermark analysis, processing continues until that nested analysis completes or fails. A core detection failure still reports failed. A failed watermark analysis is terminal and does not fail an otherwise successful deepfake detection. Intelligence may still be processing after Detect reaches completed." }, - "modality": { - "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + "metrics": { + "$ref": "#/components/schemas/DetectAudioMetrics" }, - "item": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaItem" - }, - "description": "Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type \"cosine\".\n" - } - }, - "title": "Identity_searchIdentities_Response_200" - }, - "WatermarkApplyPostParametersPrefer": { - "type": "string", - "enum": [ - "wait" - ], - "title": "WatermarkApplyPostParametersPrefer" - }, - "WatermarkApplyRequestOutputFormat": { - "type": "string", - "enum": [ - "default", - "source" - ], - "default": "default", - "description": "`default` returns WAV (audio), PNG (image), or MP4 (video). `source` returns the source's format (for example JPEG, AVIF, M4A, or MOV) when it can be reproduced, otherwise the default.", - "title": "WatermarkApplyRequestOutputFormat" - }, - "WatermarkApplyRequest": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri", - "description": "Public HTTPS URL to the audio, image, or video source." + "image_metrics": { + "$ref": "#/components/schemas/DetectImageMetrics" }, - "output_format": { - "$ref": "#/components/schemas/WatermarkApplyRequestOutputFormat", - "description": "`default` returns WAV (audio), PNG (image), or MP4 (video). `source` returns the source's format (for example JPEG, AVIF, M4A, or MOV) when it can be reproduced, otherwise the default." + "video_metrics": { + "$ref": "#/components/schemas/DetectVideoMetrics" }, - "strength": { - "type": "number", - "format": "double", - "minimum": 0, - "maximum": 1, - "default": 0.2, - "description": "Watermark strength for image/video. Ignored for audio." + "c2pa_manifest": { + "$ref": "#/components/schemas/DetectC2paManifest" }, - "custom_message": { - "type": "string", - "maxLength": 64, - "default": "resembleai", - "description": "Message to embed in image/video. Ignored for audio." - } - }, - "required": [ - "url" - ], - "title": "WatermarkApplyRequest" - }, - "WatermarkApplyItemMediaType": { - "type": "string", - "enum": [ - "audio", - "image", - "video" - ], - "description": "Detected media type of the source file.", - "title": "WatermarkApplyItemMediaType" - }, - "WatermarkApplyItemOperationType": { - "type": "string", - "enum": [ - "apply" - ], - "title": "WatermarkApplyItemOperationType" - }, - "WatermarkApplyItemStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "title": "WatermarkApplyItemStatus" - }, - "WatermarkApplyItemModelVersion": { - "type": "string", - "enum": [ - "perth_v2" - ], - "title": "WatermarkApplyItemModelVersion" - }, - "WatermarkApplyMetrics": { - "type": "object", - "properties": { - "strength": { - "type": "number", - "format": "double" + "audio_source_tracing": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracing" + }, + { + "type": "null" + } + ], + "description": "Source tracing results (only returned if audio is labeled fake)" + }, + "intelligence": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligence" + }, + { + "type": "null" + } + ], + "description": "With experts omitted or false, one completed Intelligence result when available; otherwise, the current processing or failed result. With experts=true, all successfully completed results as an array, or an empty array when none have completed successfully." + }, + "modality": { + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItemModality", + "description": "Which detection modality was requested for this detect. `all` when not specified\n(the default). For a single-modality video detect, the skipped component's metrics\nare absent (`metrics` for audio-only-skipped, `video_metrics` for video-only-skipped).\n" }, - "custom_message": { - "type": "string" + "face_only": { + "type": "boolean", + "description": "Effective face-only setting for this detect. `true` only for video inputs that\ninclude visual analysis; `false` for audio, image, and audio-only video detects.\n" }, - "message_bits_length": { + "watermark": { + "$ref": "#/components/schemas/DetectWatermarkAnalysis" + }, + "url": { "type": [ - "integer", + "string", "null" - ] - } - }, - "description": "Apply metadata for image/video. Audio apply metrics are null.", - "title": "WatermarkApplyMetrics" - }, - "WatermarkApplyItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/WatermarkApplyItemMediaType", - "description": "Detected media type of the source file." + ], + "description": "URL to the media file. Null when Zero Retention Mode is enabled." }, - "operation_type": { - "$ref": "#/components/schemas/WatermarkApplyItemOperationType" + "audio_url": { + "type": [ + "string", + "null" + ], + "description": "Alias of url. Null when Zero Retention Mode is enabled." }, - "status": { - "$ref": "#/components/schemas/WatermarkApplyItemStatus" + "filename": { + "type": "string", + "description": "Original filename, or tokenized (redacted_.) when Zero Retention Mode is enabled" }, - "model_version": { - "$ref": "#/components/schemas/WatermarkApplyItemModelVersion" + "duration": { + "type": "number", + "format": "double" }, - "source_media_url": { - "type": "string", - "format": "uri" + "zero_retention_mode": { + "type": "boolean", + "description": "Whether Zero Retention Mode is enabled for this detect" }, - "watermarked_media": { + "file_deleted_at": { "type": [ "string", "null" ], - "format": "uri", - "description": "Signed output URL when processing is complete. The file is WAV, PNG, or MP4 unless the request set `output_format` to `source`." - }, - "metrics": { - "$ref": "#/components/schemas/WatermarkApplyMetrics" + "format": "date-time", + "description": "ISO 8601 timestamp of when the file was purged, or null if not yet deleted" }, "created_at": { "type": "string", @@ -10352,240 +5652,199 @@ "format": "date-time" } }, - "required": [ - "uuid", - "media_type", - "operation_type", - "status", - "model_version", - "source_media_url", - "created_at", - "updated_at" - ], - "title": "WatermarkApplyItem" + "title": "DetectUuidGetResponsesContentApplicationJsonSchemaItem" }, - "WatermarkApplyResponse": { + "Deepfake_Detection_getDetection_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/WatermarkApplyItem" + "$ref": "#/components/schemas/DetectUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "required": [ - "success", - "item" - ], - "title": "WatermarkApplyResponse" - }, - "WatermarkDetectPostParametersPrefer": { - "type": "string", - "enum": [ - "wait" - ], - "title": "WatermarkDetectPostParametersPrefer" + "title": "Deepfake Detection_getDetection_Response_200" }, - "WatermarkDetectRequest": { + "Deepfake_Detection_deleteDetection_Response_200": { "type": "object", "properties": { - "url": { - "type": "string", - "format": "uri", - "description": "Public HTTPS URL to the audio, image, or video source." + "success": { + "type": "boolean" }, - "custom_message": { - "type": "string", - "maxLength": 64, - "default": "resembleai", - "description": "Message used when applying the image/video watermark. Ignored for audio." + "message": { + "type": "string" } }, - "required": [ - "url" - ], - "title": "WatermarkDetectRequest" - }, - "WatermarkDetectItemMediaType": { - "type": "string", - "enum": [ - "audio", - "image", - "video" - ], - "title": "WatermarkDetectItemMediaType" - }, - "WatermarkDetectItemOperationType": { - "type": "string", - "enum": [ - "detect" - ], - "title": "WatermarkDetectItemOperationType" + "title": "Deepfake Detection_deleteDetection_Response_200" }, - "WatermarkDetectItemStatus": { + "DetectBatchStatus": { "type": "string", "enum": [ - "pending", "processing", "completed", + "partially_failed", "failed" ], - "title": "WatermarkDetectItemStatus" - }, - "WatermarkDetectItemModelVersion": { - "type": "string", - "enum": [ - "perth_v2" - ], - "description": "Present for image/video. Audio versions are reported in metrics.model_results.", - "title": "WatermarkDetectItemModelVersion" - }, - "WatermarkDetectItemMetrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" - }, - { - "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" - } - ], - "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape.", - "title": "WatermarkDetectItemMetrics" + "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n", + "title": "DetectBatchStatus" }, - "WatermarkDetectItem": { + "DetectBatch": { "type": "object", "properties": { "uuid": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/WatermarkDetectItemMediaType" - }, - "operation_type": { - "$ref": "#/components/schemas/WatermarkDetectItemOperationType" + "type": "string", + "description": "Batch UUID." }, "status": { - "$ref": "#/components/schemas/WatermarkDetectItemStatus" - }, - "model_version": { - "$ref": "#/components/schemas/WatermarkDetectItemModelVersion", - "description": "Present for image/video. Audio versions are reported in metrics.model_results." + "$ref": "#/components/schemas/DetectBatchStatus", + "description": "Aggregate status across all child detects.\n - `processing` — at least one child detect is still running.\n - `completed` — every child detect completed successfully.\n - `partially_failed` — at least one succeeded and at least one failed.\n - `failed` — every child detect failed.\n" }, - "source_media_url": { - "type": "string", - "format": "uri" + "total_files": { + "type": "integer", + "description": "Number of files in the batch (1–50)." }, - "metrics": { - "oneOf": [ - { - "$ref": "#/components/schemas/WatermarkDetectItemMetrics" - }, - { - "type": "null" - } - ], - "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape." + "completed_count": { + "type": "integer", + "description": "Number of child detects that have completed successfully." }, - "watermarked_media": { - "type": [ - "string", - "null" - ], - "format": "uri", - "description": "Detection does not produce output media." + "failed_count": { + "type": "integer", + "description": "Number of child detects that have failed." }, "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { - "type": "string", - "format": "date-time" + "detect_uuids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "UUIDs of the child detects. Use `GET /detect/{uuid}` to retrieve per-file results." } }, - "required": [ - "uuid", - "media_type", - "operation_type", - "status", - "source_media_url", - "created_at", - "updated_at" - ], - "title": "WatermarkDetectItem" + "description": "Aggregate state for a batch detection job. Returned by `POST /detect/batch` and `GET /detect/batch/{uuid}`.", + "title": "DetectBatch" }, - "WatermarkDetectResponse": { + "Deepfake_Detection_createDetectBatch_Response_202": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/WatermarkDetectItem" + "$ref": "#/components/schemas/DetectBatch" } }, - "required": [ - "success", - "item" + "title": "Deepfake Detection_createDetectBatch_Response_202" + }, + "Deepfake_Detection_getDetectBatch_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/DetectBatch" + } + }, + "title": "Deepfake Detection_getDetectBatch_Response_200" + }, + "DetectFeedbackType": { + "type": "string", + "enum": [ + "correct", + "should_be_ai_generated", + "should_be_authentic", + "should_be_non_ai", + "should_be_neutral", + "skipped" + ], + "description": "What the verdict should have been.", + "title": "DetectFeedbackType" + }, + "DetectFeedbackVote": { + "type": "string", + "enum": [ + "up", + "down" ], - "title": "WatermarkDetectResponse" + "description": "Derived from `type` — `correct` is `up`, everything else is `down`. Never independent of `type`.", + "title": "DetectFeedbackVote" }, - "TextDetectItemStatus": { + "DetectFeedbackVerdict": { "type": "string", "enum": [ - "processing", - "completed", - "failed" + "ai_generated", + "authentic" ], - "description": "`processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored.", - "title": "TextDetectItemStatus" + "description": "What the model said, snapshotted when the feedback was submitted. `null` when the\ndetection landed somewhere indeterminate. `should_be_neutral` and `should_be_non_ai`\nhave no counterpart here — this field records only the two decided model outcomes.\n", + "title": "DetectFeedbackVerdict" }, - "TextDetectItemPrediction": { + "DetectFeedbackMediaType": { "type": "string", "enum": [ - "ai", - "human", - "uncertain" + "audio", + "video", + "image", + "text" ], - "description": "Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing.", - "title": "TextDetectItemPrediction" + "description": "Media type of the detect.", + "title": "DetectFeedbackMediaType" }, - "TextDetectItem": { + "DetectFeedback": { "type": "object", "properties": { - "uuid": { - "type": "string" + "detect_uuid": { + "type": "string", + "description": "The detect this answer is attached to." }, - "status": { - "$ref": "#/components/schemas/TextDetectItemStatus", - "description": "`processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored." + "type": { + "$ref": "#/components/schemas/DetectFeedbackType", + "description": "What the verdict should have been." }, - "prediction": { + "vote": { + "$ref": "#/components/schemas/DetectFeedbackVote", + "description": "Derived from `type` — `correct` is `up`, everything else is `down`. Never independent of `type`." + }, + "verdict": { "oneOf": [ { - "$ref": "#/components/schemas/TextDetectItemPrediction" + "$ref": "#/components/schemas/DetectFeedbackVerdict" }, { "type": "null" } ], - "description": "Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing." + "description": "What the model said, snapshotted when the feedback was submitted. `null` when the\ndetection landed somewhere indeterminate. `should_be_neutral` and `should_be_non_ai`\nhave no counterpart here — this field records only the two decided model outcomes.\n" }, - "confidence": { + "score": { "type": [ "number", "null" ], "format": "double", - "description": "Confidence in the reported `prediction`, from 0 to 1. Null while processing." + "description": "The model's headline confidence, 0.0–1.0, or `null`. For video, the higher of the\naudio and video confidences.\n" }, - "text_content": { + "media_type": { + "$ref": "#/components/schemas/DetectFeedbackMediaType", + "description": "Media type of the detect." + }, + "comment": { "type": [ "string", "null" ], - "description": "The submitted text." + "description": "The reviewer's free-text comment, or `null`." + }, + "credit": { + "type": "integer", + "description": "Credits awarded for this answer. Written by Resemble, never by the submitter; `0` on a fresh row." + }, + "source": { + "type": "string", + "description": "Attribution string recorded for this answer. Defaults to `api`." }, "created_at": { "type": "string", @@ -10593,1221 +5852,1454 @@ }, "updated_at": { "type": "string", - "format": "date-time" + "format": "date-time", + "description": "Moves when the answer is revised; `created_at` does not." } }, - "required": [ - "uuid", - "status", - "created_at", - "updated_at" - ], - "title": "TextDetectItem" + "description": "A reviewer's answer about a detection verdict, stored with a snapshot of what the\nmodel said at the time the answer was submitted. Returned by\n`POST /detect/{uuid}/feedback` and `GET /detect/{uuid}/feedback`.\n", + "title": "DetectFeedback" }, - "TextDetectListResponse": { + "Deepfake_Detection_getDetectFeedback_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "page": { - "type": "integer" - }, - "num_pages": { - "type": "integer" - }, - "page_size": { - "type": "integer" - }, - "total_count": { - "type": "integer" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TextDetectItem" - } + "item": { + "$ref": "#/components/schemas/DetectFeedback" } }, - "required": [ - "success", - "page", - "num_pages", - "page_size", - "total_count", - "items" - ], - "title": "TextDetectListResponse" + "title": "Deepfake Detection_getDetectFeedback_Response_200" }, - "TextDetectPostParametersPrefer": { + "DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType": { "type": "string", "enum": [ - "wait" + "correct", + "should_be_ai_generated", + "should_be_authentic", + "should_be_non_ai", + "should_be_neutral", + "skipped" ], - "title": "TextDetectPostParametersPrefer" + "description": "What the verdict should have been.\n - `correct` — the verdict was right.\n - `should_be_ai_generated` — we said authentic; it is AI-generated.\n - `should_be_authentic` — we said AI-generated; it is genuine and unaltered.\n - `should_be_non_ai` — no model generated it, but it may still be edited, spliced, or a human impersonation.\n - `should_be_neutral` — neither call is right; the media is genuinely ambiguous.\n - `skipped` — the verdict was wrong, but the reviewer didn't say how.\n", + "title": "DetectUuidFeedbackPostRequestBodyContentApplicationJsonSchemaType" }, - "TextDetectRequestThinking": { + "Deepfake_Detection_createDetectFeedback_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/DetectFeedback" + } + }, + "title": "Deepfake Detection_createDetectFeedback_Response_200" + }, + "Deepfake_Detection_deleteDetectFeedback_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + } + }, + "title": "Deepfake Detection_deleteDetectFeedback_Response_200" + }, + "DetectAgentTier": { "type": "string", "enum": [ - "low", - "medium", - "high" + "triage", + "investigation", + "forensic" ], - "default": "low", - "description": "How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.", - "title": "TextDetectRequestThinking" + "description": "Managed investigation depth. Informational and read-only.", + "title": "DetectAgentTier" }, - "TextDetectRequest": { + "DetectAgentCapabilities": { "type": "object", "properties": { - "text": { + "media": { + "type": "boolean" + }, + "reverse_search": { + "type": "boolean" + }, + "identity": { + "type": "boolean" + }, + "grounding": { + "type": "boolean" + }, + "structured": { + "type": "boolean" + }, + "tools": { + "type": "boolean" + }, + "knowledge": { + "type": "boolean" + } + }, + "required": [ + "media", + "reverse_search", + "identity", + "grounding", + "structured", + "tools", + "knowledge" + ], + "description": "Read-only feature flags for a managed Detect Agent.", + "title": "DetectAgentCapabilities" + }, + "DetectAgent": { + "type": "object", + "properties": { + "id": { "type": "string", - "minLength": 1, - "maxLength": 100000, - "description": "The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length." + "description": "Stable Detect Agent identifier. Currently the same as `uuid` and `preset_id`." }, - "thinking": { - "$ref": "#/components/schemas/TextDetectRequestThinking", - "description": "How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency." + "uuid": { + "type": "string", + "description": "Stable identifier used by the run and history endpoints." }, - "threshold": { - "type": "number", - "format": "double", - "description": "Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`." + "preset_id": { + "type": "string", + "description": "Resemble-managed Detect Agent identifier." + }, + "name": { + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Verification workflow handled by the Detect Agent." + }, + "tier": { + "$ref": "#/components/schemas/DetectAgentTier", + "description": "Managed investigation depth. Informational and read-only." + }, + "memory_preview": { + "type": "string", + "description": "Read-only preview of patterns learned from previous investigations." + }, + "capabilities": { + "$ref": "#/components/schemas/DetectAgentCapabilities" + }, + "tagline": { + "type": [ + "string", + "null" + ], + "description": "Short description derived from the Detect Agent's managed instructions." + }, + "activated": { + "type": "boolean", + "description": "Whether this team has initialized backing state for the Detect Agent by running it." }, - "callback_url": { - "type": "string", - "format": "uri", - "description": "POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed." + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Team backing-state creation time, or null before the first investigation." + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "Team backing-state update time, or null before the first investigation." } }, "required": [ - "text" + "id", + "uuid", + "preset_id", + "name", + "tier", + "memory_preview", + "capabilities", + "activated" ], - "title": "TextDetectRequest" + "description": "A Resemble-managed Detect Agent available to the authenticated team.", + "title": "DetectAgent" }, - "TextDetectResponse": { + "Detect_Agents_listDetectAgents_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/TextDetectItem" + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectAgent" + } + }, + "count": { + "type": "integer" } }, "required": [ "success", - "item" - ], - "title": "TextDetectResponse" - }, - "DetectMusicPostParametersPrefer": { - "type": "string", - "enum": [ - "wait" + "items", + "count" ], - "title": "DetectMusicPostParametersPrefer" + "title": "Detect Agents_listDetectAgents_Response_200" }, - "MusicDetectItemStatus": { + "DetectAgentRunSummaryStatus": { "type": "string", "enum": [ - "processing", + "running", "completed", - "failed" - ], - "description": "`processing` until inference returns, `completed` once `metrics` is populated, or `failed` if the analysis errored. Failed analyses are not billed.", - "title": "MusicDetectItemStatus" - }, - "MusicDetectItemMediaType": { - "type": "string", - "enum": [ - "audio" + "error" ], - "title": "MusicDetectItemMediaType" + "title": "DetectAgentRunSummaryStatus" }, - "MusicDetectMetricsLabel": { - "type": "string", - "enum": [ - "fake", - "real" - ], - "description": "`fake` when the track is classified as AI-generated music, `real` when it is classified as human-produced.", - "title": "MusicDetectMetricsLabel" + "DetectAgentRunResultVerdict": { + "type": "object", + "properties": { + "forced": { + "type": "boolean" + }, + "excerpt": { + "type": "string" + } + }, + "title": "DetectAgentRunResultVerdict" }, - "MusicDetectMetrics": { + "DetectAgentRunResult": { "type": "object", "properties": { - "label": { - "$ref": "#/components/schemas/MusicDetectMetricsLabel", - "description": "`fake` when the track is classified as AI-generated music, `real` when it is classified as human-produced." + "verdict": { + "oneOf": [ + { + "$ref": "#/components/schemas/DetectAgentRunResultVerdict" + }, + { + "type": "null" + } + ] }, - "aggregated_score": { - "type": "number", - "format": "double", - "description": "Overall likelihood that the track is AI-generated, from 0 to 1." + "recommended_action": { + "type": [ + "string", + "null" + ] }, - "score": { - "type": "array", - "items": { - "type": "number", - "format": "double" - }, - "description": "Per-window likelihood that the audio is AI-generated, from 0 to 1. A window that could not be scored (for example, silence) is `null`." + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double" }, - "duration": { - "type": "number", - "format": "double", - "description": "Duration of the analyzed audio in seconds." + "label": { + "type": [ + "string", + "null" + ] }, - "consistency": { - "type": "number", - "format": "double", - "description": "How consistent the per-window scores are across the track, from 0 to 100." + "score": { + "type": [ + "number", + "null" + ], + "format": "double" }, - "image": { - "type": "string", - "description": "Base64-encoded heatmap image. Present only when `visualize` was `true`." + "agent_ran": { + "type": [ + "boolean", + "null" + ] } }, - "description": "Music detection verdict. Empty while the detection is processing or when it failed.", - "title": "MusicDetectMetrics" - }, - "MusicDetectItemExtraParamsDetector": { - "type": "string", - "enum": [ - "music" - ], - "title": "MusicDetectItemExtraParamsDetector" + "description": "Compact result summary derived from the investigation transcript.", + "title": "DetectAgentRunResult" }, - "MusicDetectItemExtraParams": { + "DetectAgentRunSummaryInputs": { "type": "object", "properties": { - "detector": { - "$ref": "#/components/schemas/MusicDetectItemExtraParamsDetector" + "query": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "filename": { + "type": "string" + }, + "check_urls": { + "type": "string" } }, - "description": "Request metadata. Music detections always include `detector` set to `music`.", - "title": "MusicDetectItemExtraParams" + "description": "Submitted investigation inputs. Null-valued fields are omitted.", + "title": "DetectAgentRunSummaryInputs" }, - "MusicDetectItem": { + "DetectAgentRunSummary": { "type": "object", "properties": { "uuid": { - "type": "string" + "type": "string", + "format": "uuid", + "description": "Investigation run identifier." }, - "name": { + "status": { + "$ref": "#/components/schemas/DetectAgentRunSummaryStatus" + }, + "result": { + "$ref": "#/components/schemas/DetectAgentRunResult" + }, + "inputs": { + "$ref": "#/components/schemas/DetectAgentRunSummaryInputs", + "description": "Submitted investigation inputs. Null-valued fields are omitted." + }, + "has_media": { + "type": "boolean", + "description": "Whether primary uploaded media is attached to this run." + }, + "created_at": { "type": [ "string", "null" ], - "description": "Display name for the detection." + "format": "date-time" + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" + } + }, + "required": [ + "uuid", + "status", + "result", + "inputs", + "has_media" + ], + "title": "DetectAgentRunSummary" + }, + "Detect_Agents_listDetectAgentInvestigationRuns_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DetectAgentRunSummary" + } + }, + "count": { + "type": "integer", + "minimum": 0, + "maximum": 100 + } + }, + "required": [ + "success", + "items", + "count" + ], + "title": "Detect Agents_listDetectAgentInvestigationRuns_Response_200" + }, + "DetectAgentRun": { + "type": "object", + "properties": { + "uuid": { + "type": "string", + "format": "uuid", + "description": "Investigation run identifier." }, "status": { - "$ref": "#/components/schemas/MusicDetectItemStatus", - "description": "`processing` until inference returns, `completed` once `metrics` is populated, or `failed` if the analysis errored. Failed analyses are not billed." + "$ref": "#/components/schemas/DetectAgentRunSummaryStatus" }, - "media_type": { - "$ref": "#/components/schemas/MusicDetectItemMediaType" + "result": { + "$ref": "#/components/schemas/DetectAgentRunResult" }, - "metrics": { - "$ref": "#/components/schemas/MusicDetectMetrics" + "inputs": { + "$ref": "#/components/schemas/DetectAgentRunSummaryInputs", + "description": "Submitted investigation inputs. Null-valued fields are omitted." }, - "duration": { + "has_media": { + "type": "boolean", + "description": "Whether primary uploaded media is attached to this run." + }, + "created_at": { "type": [ - "number", + "string", "null" ], - "format": "double", - "description": "Duration of the submitted audio in seconds." + "format": "date-time" }, - "url": { + "updated_at": { "type": [ "string", "null" ], - "description": "URL to the stored audio file." + "format": "date-time" }, - "filename": { + "transcript": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "description": "Public investigation events. Internal cost events are omitted." + }, + "config_snapshot": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Exact managed configuration used for the investigation." + }, + "memory_before": { + "type": "string" + }, + "memory_after": { + "type": "string" + }, + "error": { "type": [ "string", "null" - ], - "description": "Original filename." + ] }, - "error_message": { + "media_url": { "type": [ "string", "null" ], - "description": "Reason the analysis failed. Null unless `status` is `failed`." - }, - "extra_params": { - "$ref": "#/components/schemas/MusicDetectItemExtraParams", - "description": "Request metadata. Music detections always include `detector` set to `music`." - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" + "description": "Relative URL for uploaded primary media, or null when the run used a public URL." } }, "required": [ "uuid", "status", - "media_type" + "result", + "inputs", + "has_media" ], - "title": "MusicDetectItem" + "title": "DetectAgentRun" }, - "MusicDetectResponse": { + "Detect_Agents_getDetectAgentInvestigationRun_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/MusicDetectItem" + "$ref": "#/components/schemas/DetectAgentRun" } }, "required": [ "success", "item" ], - "title": "MusicDetectResponse" + "title": "Detect Agents_getDetectAgentInvestigationRun_Response_200" }, - "SignalSubmissionInputModality": { + "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType": { "type": "string", "enum": [ - "text", "audio", "video", "image" ], - "title": "SignalSubmissionInputModality" + "description": "Explicit media type (auto-detected if not provided)", + "title": "IntelligencePostRequestBodyContentApplicationJsonSchemaMediaType" }, - "SignalSubmissionVerdict": { + "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType": { "type": "string", "enum": [ - "safe", - "suspicious", - "fraud" + "audio", + "video", + "image" ], - "title": "SignalSubmissionVerdict" + "description": "Type of media analyzed", + "title": "IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType" }, - "SignalCategoryScore": { + "IntelligencePostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "name": { + "uuid": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" + }, + "media_type": { + "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItemMediaType", + "description": "Type of media analyzed" + } + }, + "title": "IntelligencePostResponsesContentApplicationJsonSchemaItem" + }, + "Intelligence_runIntelligence_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/IntelligencePostResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Intelligence_runIntelligence_Response_200" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType": { + "type": "string", + "enum": [ + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" + ], + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudType" + }, + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "reasoning": { + "type": "string" + } + }, + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment": { + "type": "string", + "enum": [ + "real_person", + "not_real_person", + "inconclusive" + ], + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness": { + "type": "object", + "properties": { + "assessment": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessment" + }, + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "indicators": { + "type": "string" + } + }, + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered": { + "type": "object", + "properties": { + "detected": { + "type": "boolean" + }, + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 + }, + "alterations": { + "type": "string" + } + }, + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" + }, + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription": { + "type": "object", + "properties": { + "speaker_info": { + "type": "string" + }, + "language": { + "type": "string" + }, + "dialect": { + "type": "string" + }, + "emotion": { + "type": "string" + }, + "speaking_style": { + "type": "string" + }, + "context": { + "type": "string" + }, + "message": { + "type": "string" + }, + "abnormalities": { + "type": "string" + }, + "transcription": { + "type": "string" + }, + "translation": { + "type": [ + "string", + "null" + ] + }, + "misinformation": { "type": "string" }, - "icon": { - "type": [ - "string", - "null" - ], - "description": "Single emoji associated with the category." + "fraud": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraud" + }, + "liveness": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLiveness" }, - "score": { - "type": "number", - "format": "double", - "description": "Similarity score from 0 to 1." + "digitally_altered": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionDigitallyAltered" } }, - "required": [ - "name", - "score" - ], - "title": "SignalCategoryScore" + "description": "Structured intelligence analysis", + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription" }, - "SignalScoreItemInputModality": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType": { "type": "string", "enum": [ - "text", "audio", "video", "image" ], - "title": "SignalScoreItemInputModality" - }, - "SignalScoreItemVerdict": { - "type": "string", - "enum": [ - "safe", - "suspicious", - "fraud" - ], - "title": "SignalScoreItemVerdict" + "description": "Type of media analyzed", + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType" }, - "SignalTopMatch": { + "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "category": { + "uuid": { + "type": "string" + }, + "description": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescription", + "description": "Structured intelligence analysis" + }, + "created_at": { "type": "string", - "description": "Category the matched example belongs to." + "format": "date-time" }, - "text": { + "detect_uuid": { "type": "string", - "description": "The individual training example that matched." + "description": "UUID of the associated detect object" }, - "score": { - "type": "number", - "format": "double" + "media_type": { + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaType", + "description": "Type of media analyzed" } }, - "title": "SignalTopMatch" + "title": "IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" }, - "SignalScoreItem": { + "Intelligence_listIntelligences_Response_200": { "type": "object", "properties": { - "id": { - "type": "integer", - "description": "Submission identifier, used with `DELETE /signal/{id}`." - }, - "input_modality": { - "$ref": "#/components/schemas/SignalScoreItemInputModality" - }, - "verdict": { - "$ref": "#/components/schemas/SignalScoreItemVerdict" - }, - "top_category": { - "$ref": "#/components/schemas/SignalCategoryScore" + "success": { + "type": "boolean" }, - "category_scores": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SignalCategoryScore" - }, - "description": "Highest-scoring categories, including the top category." + "page": { + "type": "integer" }, - "benign_score": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "How strongly the content matched benign, non-fraud content." + "num_pages": { + "type": "integer" }, - "margin_over_second": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Gap between the top category score and the runner-up." + "page_size": { + "type": "integer" }, - "examples": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Sample phrases from the top category, useful for explaining the verdict." + "total_count": { + "type": "integer" }, - "top_matches": { + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/SignalTopMatch" + "$ref": "#/components/schemas/IntelligencesGetResponsesContentApplicationJsonSchemaItemsItems" } + } + }, + "title": "Intelligence_listIntelligences_Response_200" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType": { + "type": "string", + "enum": [ + "none", + "vishing", + "impersonation", + "romance_scam", + "tech_support_scam", + "financial_fraud", + "extortion", + "political_manipulation", + "synthetic_media_fraud", + "insurance_fraud", + "employment_fraud", + "other" + ], + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudType" }, - "duration_seconds": { - "type": [ - "number", - "null" - ], + "confidence": { + "type": "number", "format": "double", - "description": "Media duration for audio and video. Null for text and image." + "minimum": 0, + "maximum": 100 }, - "created_at": { - "type": "string", - "format": "date-time" + "reasoning": { + "type": "string" } }, - "required": [ - "input_modality", - "verdict" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment": { + "type": "string", + "enum": [ + "real_person", + "not_real_person", + "inconclusive" ], - "title": "SignalScoreItem" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" }, - "SignalSubmission": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness": { "type": "object", "properties": { - "id": { - "type": "integer" + "assessment": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessment" }, - "input_modality": { - "$ref": "#/components/schemas/SignalSubmissionInputModality" + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 }, - "filename": { - "type": [ - "string", - "null" - ], - "description": "Original filename for file submissions." + "indicators": { + "type": "string" + } + }, + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered": { + "type": "object", + "properties": { + "detected": { + "type": "boolean" }, - "content_type": { - "type": [ - "string", - "null" - ], - "description": "MIME type for file submissions." + "confidence": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 100 }, - "text_preview": { - "type": [ - "string", - "null" - ], - "description": "Truncated copy of the submitted text. Null for file submissions." + "alterations": { + "type": "string" + } + }, + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription": { + "type": "object", + "properties": { + "speaker_info": { + "type": "string" }, - "verdict": { - "$ref": "#/components/schemas/SignalSubmissionVerdict" + "language": { + "type": "string" }, - "top_category": { - "$ref": "#/components/schemas/SignalCategoryScore" + "dialect": { + "type": "string" }, - "benign_score": { - "type": [ - "number", - "null" - ], - "format": "double" + "emotion": { + "type": "string" }, - "margin_over_second": { - "type": [ - "number", - "null" - ], - "format": "double" + "speaking_style": { + "type": "string" + }, + "context": { + "type": "string" + }, + "message": { + "type": "string" }, - "response": { - "$ref": "#/components/schemas/SignalScoreItem" + "abnormalities": { + "type": "string" }, - "created_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "SignalSubmission" - }, - "SignalSubmissionListResponse": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "transcription": { + "type": "string" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SignalSubmission" - } + "translation": { + "type": [ + "string", + "null" + ] }, - "page": { - "type": "integer" + "misinformation": { + "type": "string" }, - "per_page": { - "type": "integer" + "fraud": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraud" }, - "total_count": { - "type": "integer" + "liveness": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLiveness" }, - "total_pages": { - "type": "integer" + "digitally_altered": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionDigitallyAltered" } }, - "required": [ - "success", - "items" + "description": "Structured intelligence analysis", + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription" + }, + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType": { + "type": "string", + "enum": [ + "audio", + "video", + "image" ], - "title": "SignalSubmissionListResponse" + "description": "Type of media analyzed", + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType" }, - "SignalError": { + "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "message": { + "uuid": { "type": "string" }, - "max_bytes": { - "type": "integer", - "description": "Present on 413 responses." + "description": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescription", + "description": "Structured intelligence analysis" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" + }, + "media_type": { + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaType", + "description": "Type of media analyzed" } }, - "title": "SignalError" + "title": "IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" }, - "SignalScoreResponse": { + "Intelligence_getIntelligence_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/SignalScoreItem" + "$ref": "#/components/schemas/IntelligencesUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "required": [ - "success", - "item" - ], - "title": "SignalScoreResponse" + "title": "Intelligence_getIntelligence_Response_200" }, - "SignalSuccessResponse": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "required": [ - "success" + "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" ], - "title": "SignalSuccessResponse" - }, - "SignalSettings": { - "type": "object", - "properties": { - "use_builtin_categories": { - "type": "boolean", - "description": "When false, scoring uses only the team's custom categories." - } - }, - "title": "SignalSettings" + "description": "Current status of the question", + "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus" }, - "SignalBuiltInCategory": { + "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "id": { - "type": "integer" + "uuid": { + "type": "string", + "description": "UUID of the question" }, - "name": { - "type": "string" + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detection report" }, - "icon": { + "query": { + "type": "string", + "description": "The submitted question" + }, + "answer": { "type": [ "string", "null" - ] + ], + "description": "The generated answer (null until completed)" }, - "scenario_count": { - "type": "integer" + "status": { + "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatus", + "description": "Current status of the question" }, - "example_texts": { - "type": "array", - "items": { - "type": "string" - } + "error_message": { + "type": [ + "string", + "null" + ], + "description": "Error details when status is failed" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" } }, - "title": "SignalBuiltInCategory" - }, - "SignalCustomCategoryStatus": { - "type": "string", - "enum": [ - "pending", - "embedding", - "ready", - "needs_more_examples", - "failed" - ], - "title": "SignalCustomCategoryStatus" - }, - "SignalCustomCategoryOverlapsItems": { - "type": "object", - "properties": {}, - "title": "SignalCustomCategoryOverlapsItems" + "title": "DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" }, - "SignalScenario": { + "Detect_Intelligence_askDetectIntelligenceQuestion_Response_202": { "type": "object", "properties": { - "id": { - "type": "integer" - }, - "text": { - "type": "string" + "success": { + "type": "boolean" }, - "embedded": { - "type": "boolean", - "description": "Whether this example has finished embedding." + "item": { + "$ref": "#/components/schemas/DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem" } }, - "title": "SignalScenario" + "title": "Detect Intelligence_askDetectIntelligenceQuestion_Response_202" }, - "SignalCustomCategory": { + "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "description": "Current status of the question", + "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus" + }, + "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "id": { - "type": "integer" + "uuid": { + "type": "string", + "description": "UUID of the question" }, - "name": { - "type": "string" + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detection report" }, - "description": { - "type": [ - "string", - "null" - ] + "query": { + "type": "string", + "description": "The submitted question" }, - "icon": { + "answer": { "type": [ "string", "null" - ] - }, - "enabled": { - "type": "boolean", - "description": "Whether the category is included in scoring." + ], + "description": "The generated answer (null until completed)" }, "status": { - "$ref": "#/components/schemas/SignalCustomCategoryStatus" - }, - "embed_error": { - "type": [ - "string", - "null" - ], - "description": "Error message when `status` is `failed`." + "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatus", + "description": "Current status of the question" }, - "embedded_at": { + "error_message": { "type": [ "string", "null" ], + "description": "Error details when status is failed" + }, + "created_at": { + "type": "string", "format": "date-time" }, - "scenario_count": { - "type": "integer" + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "title": "DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + }, + "Detect_Intelligence_getDetectIntelligenceQuestion_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean" }, - "embedding_model_version": { + "item": { + "$ref": "#/components/schemas/DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + } + }, + "title": "Detect Intelligence_getDetectIntelligenceQuestion_Response_200" + }, + "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" + }, + "error_message": { "type": [ "string", "null" ] - }, - "overlaps": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SignalCustomCategoryOverlapsItems" - }, - "description": "Calibration warnings where this category was confused with another." - }, - "scenarios": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SignalScenario" - } } }, - "title": "SignalCustomCategory" - }, - "SignalCalibrationWarningsItems": { - "type": "object", - "properties": {}, - "title": "SignalCalibrationWarningsItems" + "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" }, - "SignalCalibration": { + "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "status": { + "uuid": { "type": "string" }, - "calibrated_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" + "results": { + "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItemsResults" }, - "overall_recall": { - "type": [ - "number", - "null" - ], - "format": "double" + "created_at": { + "type": "string", + "format": "date-time" }, - "warnings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SignalCalibrationWarningsItems" - } + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" } }, - "description": "Null until the team's categories have been calibrated.", - "title": "SignalCalibration" + "title": "AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" }, - "SignalCustomCategoryListResponse": { + "Audio_Source_Tracing_listAudioSourceTracings_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "settings": { - "$ref": "#/components/schemas/SignalSettings" + "page": { + "type": "integer" }, - "built_in_categories": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SignalBuiltInCategory" - } + "num_pages": { + "type": "integer" }, - "custom_categories": { + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, + "items": { "type": "array", "items": { - "$ref": "#/components/schemas/SignalCustomCategory" + "$ref": "#/components/schemas/AudioSourceTracingsGetResponsesContentApplicationJsonSchemaItemsItems" } - }, - "calibration": { - "$ref": "#/components/schemas/SignalCalibration" } }, - "required": [ - "success" - ], - "title": "SignalCustomCategoryListResponse" + "title": "Audio Source Tracing_listAudioSourceTracings_Response_200" }, - "SignalCustomCategoryCreateRequest": { + "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults": { "type": "object", "properties": { - "name": { + "label": { "type": "string", - "description": "Category name. Must be unique within the team." - }, - "scenarios": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Example phrases that define the pattern. Maximum 50 entries, each up to 2000 characters. A newline-separated string is also accepted." + "description": "Identified source (e.g., resemble_ai, elevenlabs) or \"real\" if audio is not synthetic" }, - "description": { + "error_message": { + "type": [ + "string", + "null" + ] + } + }, + "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" + }, + "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "uuid": { "type": "string" }, - "icon": { + "results": { + "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults" + }, + "created_at": { "type": "string", - "description": "Single emoji." + "format": "date-time" }, - "enabled": { - "type": "boolean", - "default": true + "detect_uuid": { + "type": "string", + "description": "UUID of the associated detect object" } }, - "required": [ - "name", - "scenarios" - ], - "title": "SignalCustomCategoryCreateRequest" + "title": "AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" }, - "SignalCustomCategoryResponse": { + "Audio_Source_Tracing_getAudioSourceTracing_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/SignalCustomCategory" + "$ref": "#/components/schemas/AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem" } }, - "required": [ - "success", - "item" + "title": "Audio Source Tracing_getAudioSourceTracing_Response_200" + }, + "IdentitySummaryVisibility": { + "type": "string", + "enum": [ + "team", + "global" ], - "title": "SignalCustomCategoryResponse" + "title": "IdentitySummaryVisibility" }, - "SignalCustomCategoryUpdateRequest": { + "IdentitySummaryIdentityType": { + "type": "string", + "enum": [ + "person", + "brand" + ], + "title": "IdentitySummaryIdentityType" + }, + "IdentitySummary": { "type": "object", "properties": { + "uuid": { + "type": "string" + }, "name": { "type": "string" }, - "scenarios": { - "type": "array", - "items": { - "type": "string" - } + "created_at": { + "type": "string", + "format": "date-time" }, - "description": { - "type": "string" + "audio_url": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "URL of the first voice sample, if any" }, - "icon": { - "type": "string" + "visibility": { + "$ref": "#/components/schemas/IdentitySummaryVisibility" }, - "enabled": { - "type": "boolean" - } - }, - "description": "Any subset of the create parameters. Supplying `scenarios` replaces the existing set and re-triggers embedding.", - "title": "SignalCustomCategoryUpdateRequest" - }, - "SignalSettingsUpdateRequest": { - "type": "object", - "properties": { - "use_builtin_categories": { - "type": "boolean", - "description": "When false, scoring uses only the team's custom categories." - } - }, - "title": "SignalSettingsUpdateRequest" - }, - "SignalSettingsResponse": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "identity_type": { + "$ref": "#/components/schemas/IdentitySummaryIdentityType" }, - "settings": { - "$ref": "#/components/schemas/SignalSettings" + "notes": { + "type": [ + "string", + "null" + ] + }, + "voice_profile_id": { + "type": [ + "string", + "null" + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "project_count": { + "type": "integer" } }, - "required": [ - "success", - "settings" - ], - "title": "SignalSettingsResponse" + "description": "Identity summary returned by the list and simple-create endpoints", + "title": "IdentitySummary" }, - "Secure_Uploads_createSecureUpload_Response_200": { + "Identity_listIdentities_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "token": { - "type": "string", - "description": "JWT referencing the uploaded file. Valid for 1 hour. Pass this value as `media_token` on downstream requests." - } - }, - "title": "Secure Uploads_createSecureUpload_Response_200" - }, - "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision": { - "type": "string", - "enum": [ - "MULAW", - "PCM_16", - "PCM_24", - "PCM_32" - ], - "default": "PCM_32", - "description": "Audio precision for WAV output", - "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision" - }, - "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat": { - "type": "string", - "enum": [ - "wav", - "mp3" - ], - "default": "wav", - "description": "Audio output format", - "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat" - }, - "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate": { - "type": "string", - "enum": [ - "8000", - "16000", - "22050", - "32000", - "44100", - "48000" - ], - "description": "Audio sample rate in Hz", - "title": "SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate" - }, - "AudioTimestamps": { - "type": "object", - "properties": { - "graph_chars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Grapheme characters" + "page": { + "type": "integer" }, - "graph_times": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "description": "Grapheme timestamps [start, end] in seconds" + "num_pages": { + "type": "integer" }, - "phon_chars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Phoneme characters" + "page_size": { + "type": "integer" }, - "phon_times": { + "total_count": { + "type": "integer" + }, + "items": { "type": "array", "items": { - "type": "array", - "items": { - "type": "number", - "format": "double" - } - }, - "description": "Phoneme timestamps [start, end] in seconds" + "$ref": "#/components/schemas/IdentitySummary" + } } }, - "title": "AudioTimestamps" + "title": "Identity_listIdentities_Response_200" }, - "Text-to-Speech_synthesize_Response_200": { + "IdentityCreateIdentityRequest0": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "audio_content": { + "name": { "type": "string", - "format": "byte", - "description": "Base64-encoded audio bytes" - }, - "audio_timestamps": { - "$ref": "#/components/schemas/AudioTimestamps" - }, - "duration": { - "type": "number", - "format": "double", - "description": "Audio duration in seconds" - }, - "synth_duration": { - "type": "number", - "format": "double", - "description": "Raw synthesis time" - }, - "output_format": { - "type": "string" - }, - "sample_rate": { - "type": "integer" + "description": "Speaker name/identifier" }, - "title": { - "type": "string" + "url": { + "type": "string", + "format": "uri", + "description": "URL to an audio sample (one of url, audio, signed_id is required)" }, - "issues": { - "type": "array", - "items": { - "type": "string" - } + "signed_id": { + "type": "string", + "description": "Signed ID from a secure upload" } }, - "title": "Text-to-Speech_synthesize_Response_200" + "required": [ + "name" + ], + "title": "IdentityCreateIdentityRequest0" }, - "StreamPostRequestBodyContentApplicationJsonSchemaPrecision": { + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType": { "type": "string", "enum": [ - "MULAW", - "PCM_16", - "PCM_24", - "PCM_32" + "person", + "brand" ], - "default": "PCM_32", - "description": "Audio precision", - "title": "StreamPostRequestBodyContentApplicationJsonSchemaPrecision" + "default": "person", + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" }, - "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate": { + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility": { "type": "string", "enum": [ - "8000", - "16000", - "22050", - "32000", - "44100", - "48000" + "team", + "global" ], - "description": "Audio sample rate in Hz", - "title": "StreamPostRequestBodyContentApplicationJsonSchemaSampleRate" + "default": "team", + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" }, - "SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems": { + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity": { "type": "object", "properties": { - "uuid": { + "name": { "type": "string", - "format": "uuid" + "maxLength": 120 }, - "status": { - "type": "string" + "identity_type": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" }, - "duration_seconds": { - "type": "number", - "format": "double" + "visibility": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" }, - "created_at": { - "type": "string", - "format": "date-time" + "notes": { + "type": "string" }, - "updated_at": { - "type": "string", - "format": "date-time" + "voice_profile_id": { + "type": "string" } }, - "title": "SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "name" + ], + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" }, - "SpeechToTextGetResponsesContentApplicationJsonSchemaMeta": { + "IdentityCreateIdentityRequest1": { "type": "object", "properties": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" + "identity": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" + } + }, + "required": [ + "identity" + ], + "title": "IdentityCreateIdentityRequest1" + }, + "Identity_createIdentity_Request": { + "oneOf": [ + { + "$ref": "#/components/schemas/IdentityCreateIdentityRequest0" }, - "total_pages": { - "type": "integer" + { + "$ref": "#/components/schemas/IdentityCreateIdentityRequest1" + } + ], + "title": "Identity_createIdentity_Request" + }, + "Identity_createIdentity_Response_200": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "description": "Whether the voice was enrolled for matching immediately" }, - "total_items": { - "type": "integer" + "item": { + "$ref": "#/components/schemas/IdentitySummary" } }, - "title": "SpeechToTextGetResponsesContentApplicationJsonSchemaMeta" + "title": "Identity_createIdentity_Response_200" }, - "Speech-to-Text_listTranscripts_Response_200": { + "Identity_deleteIdentity_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems" - } - }, - "meta": { - "$ref": "#/components/schemas/SpeechToTextGetResponsesContentApplicationJsonSchemaMeta" } }, - "title": "Speech-to-Text_listTranscripts_Response_200" + "title": "Identity_deleteIdentity_Response_200" }, - "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus": { + "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality": { "type": "string", "enum": [ - "pending", - "processing", - "completed", - "failed" + "voice", + "face", + "video" + ], + "title": "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" + }, + "IdentityIdentityType": { + "type": "string", + "enum": [ + "person", + "brand" + ], + "title": "IdentityIdentityType" + }, + "IdentityVisibility": { + "type": "string", + "enum": [ + "team", + "global" ], - "title": "SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus" + "title": "IdentityVisibility" }, - "SpeechToTextPostResponsesContentApplicationJsonSchemaItem": { + "IdentityAttachment": { "type": "object", "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "status": { - "$ref": "#/components/schemas/SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus" + "id": { + "type": "integer" }, - "privacy_mode": { - "type": "boolean", - "description": "Whether the transcript was created with zero retention" + "filename": { + "type": "string" }, - "created_at": { - "type": "string", - "format": "date-time" + "byte_size": { + "type": "integer" }, - "updated_at": { - "type": "string", - "format": "date-time" + "content_type": { + "type": "string" } }, - "title": "SpeechToTextPostResponsesContentApplicationJsonSchemaItem" + "description": "A reference media file attached to an identity", + "title": "IdentityAttachment" + }, + "IdentityEmbeddingsItemsModality": { + "type": "string", + "enum": [ + "voice", + "face", + "video" + ], + "title": "IdentityEmbeddingsItemsModality" }, - "Speech-to-Text_createTranscript_Response_200": { + "IdentityEmbeddingsItems": { "type": "object", "properties": { - "success": { - "type": "boolean" + "modality": { + "$ref": "#/components/schemas/IdentityEmbeddingsItemsModality" }, - "item": { - "$ref": "#/components/schemas/SpeechToTextPostResponsesContentApplicationJsonSchemaItem" + "status": { + "type": "string" + }, + "attachment_count": { + "type": "integer" + }, + "computed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, - "title": "Speech-to-Text_createTranscript_Response_200" - }, - "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus": { - "type": "string", - "enum": [ - "pending", - "processing", - "completed", - "failed" - ], - "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus" + "title": "IdentityEmbeddingsItems" }, - "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems": { + "IdentityProjectsItems": { "type": "object", "properties": { - "text": { + "uuid": { "type": "string" }, - "start_time": { - "type": "number", - "format": "double" - }, - "end_time": { - "type": "number", - "format": "double" - }, - "speaker_id": { + "name": { "type": "string" } }, - "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems" + "title": "IdentityProjectsItems" }, - "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem": { + "Identity": { "type": "object", "properties": { "uuid": { - "type": "string", - "format": "uuid" - }, - "status": { - "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus" - }, - "text": { - "type": "string", - "description": "Absent for zero-retention transcripts after the content purge" - }, - "words": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems" - } - }, - "duration_seconds": { - "type": "number", - "format": "double" - }, - "file_url": { - "type": "string", - "format": "uri", - "description": "Absent once the media has been deleted (zero retention)" - }, - "query": { "type": "string" }, - "answer": { + "name": { "type": "string" }, - "privacy_mode": { - "type": "boolean", - "description": "Whether the transcript was created with zero retention" + "identity_type": { + "$ref": "#/components/schemas/IdentityIdentityType" }, - "file_deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the uploaded media was permanently deleted (zero retention)" + "visibility": { + "$ref": "#/components/schemas/IdentityVisibility" }, - "content_deleted_at": { - "type": "string", - "format": "date-time", - "description": "When the transcript content was permanently purged (zero retention)" + "notes": { + "type": [ + "string", + "null" + ] + }, + "voice_profile_id": { + "type": [ + "string", + "null" + ] }, "created_at": { "type": "string", @@ -11816,123 +7308,239 @@ "updated_at": { "type": "string", "format": "date-time" + }, + "project_count": { + "type": "integer" + }, + "voice_samples": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityAttachment" + } + }, + "face_photos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityAttachment" + } + }, + "reference_videos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityAttachment" + } + }, + "embeddings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityEmbeddingsItems" + }, + "description": "Per-modality embedding processing status" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdentityProjectsItems" + } } }, - "title": "SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem" + "description": "A multimodal identity profile", + "title": "Identity" }, - "Speech-to-Text_getTranscript_Response_200": { + "Identity_deleteIdentityAttachment_Response_204": { "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Speech-to-Text_getTranscript_Response_200" + "properties": {}, + "description": "Empty response body", + "title": "Identity_deleteIdentityAttachment_Response_204" + }, + "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality": { + "type": "string", + "enum": [ + "audio", + "image" + ], + "description": "Inferred from the media's content type when omitted (defaults to audio)", + "title": "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality" + }, + "IdentitySearchPostResponsesContentApplicationJsonSchemaModality": { + "type": "string", + "enum": [ + "audio", + "image" + ], + "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaModality" }, - "SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem": { + "IdentitySearchPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "uuid": { - "type": "string", - "format": "uuid" - }, - "transcript_uuid": { - "type": "string", - "format": "uuid" - }, - "query": { + "name": { "type": "string" }, - "status": { - "type": "string" + "distance": { + "type": "number", + "format": "double" }, - "created_at": { - "type": "string", - "format": "date-time" + "score_type": { + "type": "string" } }, - "title": "SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem" + "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaItem" }, - "Speech-to-Text_askTranscriptQuestion_Response_200": { + "Identity_searchIdentities_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, + "modality": { + "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + }, "item": { - "$ref": "#/components/schemas/SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem" + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaItem" + }, + "description": "Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type \"cosine\".\n" } }, - "title": "Speech-to-Text_askTranscriptQuestion_Response_200" + "title": "Identity_searchIdentities_Response_200" + }, + "WatermarkApplyPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "WatermarkApplyPostParametersPrefer" + }, + "WatermarkApplyRequestOutputFormat": { + "type": "string", + "enum": [ + "default", + "source" + ], + "default": "default", + "description": "`default` returns WAV (audio), PNG (image), or MP4 (video). `source` returns the source's format (for example JPEG, AVIF, M4A, or MOV) when it can be reproduced, otherwise the default.", + "title": "WatermarkApplyRequestOutputFormat" }, - "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems": { + "WatermarkApplyRequest": { "type": "object", "properties": { - "uuid": { + "url": { "type": "string", - "format": "uuid" - }, - "query": { - "type": "string" + "format": "uri", + "description": "Public HTTPS URL to the audio, image, or video source." }, - "answer": { - "type": "string" + "output_format": { + "$ref": "#/components/schemas/WatermarkApplyRequestOutputFormat", + "description": "`default` returns WAV (audio), PNG (image), or MP4 (video). `source` returns the source's format (for example JPEG, AVIF, M4A, or MOV) when it can be reproduced, otherwise the default." }, - "status": { - "type": "string" + "strength": { + "type": "number", + "format": "double", + "minimum": 0, + "maximum": 1, + "default": 0.2, + "description": "Watermark strength for image/video. Ignored for audio." }, - "created_at": { + "custom_message": { "type": "string", - "format": "date-time" + "maxLength": 64, + "default": "resembleai", + "description": "Message to embed in image/video. Ignored for audio." } }, - "title": "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "url" + ], + "title": "WatermarkApplyRequest" }, - "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta": { - "type": "object", - "properties": {}, - "title": "SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta" + "WatermarkApplyItemMediaType": { + "type": "string", + "enum": [ + "audio", + "image", + "video" + ], + "description": "Detected media type of the source file.", + "title": "WatermarkApplyItemMediaType" + }, + "WatermarkApplyItemOperationType": { + "type": "string", + "enum": [ + "apply" + ], + "title": "WatermarkApplyItemOperationType" + }, + "WatermarkApplyItemStatus": { + "type": "string", + "enum": [ + "pending", + "processing", + "completed", + "failed" + ], + "title": "WatermarkApplyItemStatus" + }, + "WatermarkApplyItemModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "title": "WatermarkApplyItemModelVersion" }, - "Speech-to-Text_listTranscriptQuestions_Response_200": { + "WatermarkApplyMetrics": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "strength": { + "type": "number", + "format": "double" + }, + "custom_message": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta" + "message_bits_length": { + "type": [ + "integer", + "null" + ] } }, - "title": "Speech-to-Text_listTranscriptQuestions_Response_200" + "description": "Apply metadata for image/video. Audio apply metrics are null.", + "title": "WatermarkApplyMetrics" }, - "SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem": { + "WatermarkApplyItem": { "type": "object", "properties": { "uuid": { - "type": "string", - "format": "uuid" - }, - "transcript_uuid": { - "type": "string", - "format": "uuid" - }, - "query": { "type": "string" }, - "answer": { - "type": "string" + "media_type": { + "$ref": "#/components/schemas/WatermarkApplyItemMediaType", + "description": "Detected media type of the source file." + }, + "operation_type": { + "$ref": "#/components/schemas/WatermarkApplyItemOperationType" }, "status": { - "type": "string" + "$ref": "#/components/schemas/WatermarkApplyItemStatus" + }, + "model_version": { + "$ref": "#/components/schemas/WatermarkApplyItemModelVersion" + }, + "source_media_url": { + "type": "string", + "format": "uri" + }, + "watermarked_media": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "Signed output URL when processing is complete. The file is WAV, PNG, or MP4 unless the request set `output_format` to `source`." + }, + "metrics": { + "$ref": "#/components/schemas/WatermarkApplyMetrics" }, "created_at": { "type": "string", @@ -11943,21 +7551,78 @@ "format": "date-time" } }, - "title": "SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + "required": [ + "uuid", + "media_type", + "operation_type", + "status", + "model_version", + "source_media_url", + "created_at", + "updated_at" + ], + "title": "WatermarkApplyItem" }, - "Speech-to-Text_getTranscriptQuestion_Response_200": { + "WatermarkApplyResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/WatermarkApplyItem" + } + }, + "required": [ + "success", + "item" + ], + "title": "WatermarkApplyResponse" + }, + "WatermarkDetectPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "WatermarkDetectPostParametersPrefer" + }, + "WatermarkDetectRequest": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "description": "Public HTTPS URL to the audio, image, or video source." + }, + "custom_message": { + "type": "string", + "maxLength": 64, + "default": "resembleai", + "description": "Message used when applying the image/video watermark. Ignored for audio." } }, - "title": "Speech-to-Text_getTranscriptQuestion_Response_200" + "required": [ + "url" + ], + "title": "WatermarkDetectRequest" + }, + "WatermarkDetectItemMediaType": { + "type": "string", + "enum": [ + "audio", + "image", + "video" + ], + "title": "WatermarkDetectItemMediaType" + }, + "WatermarkDetectItemOperationType": { + "type": "string", + "enum": [ + "detect" + ], + "title": "WatermarkDetectItemOperationType" }, - "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus": { + "WatermarkDetectItemStatus": { "type": "string", "enum": [ "pending", @@ -11965,194 +7630,161 @@ "completed", "failed" ], - "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" + "title": "WatermarkDetectItemStatus" + }, + "WatermarkDetectItemModelVersion": { + "type": "string", + "enum": [ + "perth_v2" + ], + "description": "Present for image/video. Audio versions are reported in metrics.model_results.", + "title": "WatermarkDetectItemModelVersion" + }, + "WatermarkDetectItemMetrics": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkAudioDetectionMetrics" + }, + { + "$ref": "#/components/schemas/WatermarkVisionDetectionMetrics" + } + ], + "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape.", + "title": "WatermarkDetectItemMetrics" }, - "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems": { + "WatermarkDetectItem": { "type": "object", "properties": { "uuid": { "type": "string" }, - "status": { - "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus" - }, - "error_message": { - "type": [ - "string", - "null" - ] - }, - "remove_noise": { - "type": "boolean", - "description": "Whether background noise removal was applied." + "media_type": { + "$ref": "#/components/schemas/WatermarkDetectItemMediaType" }, - "normalize": { - "type": "boolean", - "description": "Whether loudness normalization was applied." + "operation_type": { + "$ref": "#/components/schemas/WatermarkDetectItemOperationType" }, - "studio_sound": { - "type": "boolean", - "description": "Whether studio-quality enhancement was applied." + "status": { + "$ref": "#/components/schemas/WatermarkDetectItemStatus" }, - "original_audio_url": { - "type": "string", - "format": "uri" + "model_version": { + "$ref": "#/components/schemas/WatermarkDetectItemModelVersion", + "description": "Present for image/video. Audio versions are reported in metrics.model_results." }, - "enhanced_audio_url": { + "source_media_url": { "type": "string", "format": "uri" - } - }, - "title": "AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Audio_Enhancement_listAudioEnhancements_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "page": { - "type": "integer" }, - "num_pages": { - "type": "integer" + "metrics": { + "oneOf": [ + { + "$ref": "#/components/schemas/WatermarkDetectItemMetrics" + }, + { + "type": "null" + } + ], + "description": "Null while processing. New results use the media-specific versioned schema; historical audio results can use a flat shape." }, - "page_size": { - "type": "integer" + "watermarked_media": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "Detection does not produce output media." }, - "total_count": { - "type": "integer" + "created_at": { + "type": "string", + "format": "date-time" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "updated_at": { + "type": "string", + "format": "date-time" } }, - "title": "Audio Enhancement_listAudioEnhancements_Response_200" + "required": [ + "uuid", + "media_type", + "operation_type", + "status", + "source_media_url", + "created_at", + "updated_at" + ], + "title": "WatermarkDetectItem" }, - "ListAudioEnhancementsRequestBadRequestError": { + "WatermarkDetectResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, - "message": { - "type": "string" + "item": { + "$ref": "#/components/schemas/WatermarkDetectItem" } }, - "title": "ListAudioEnhancementsRequestBadRequestError" + "required": [ + "success", + "item" + ], + "title": "WatermarkDetectResponse" }, - "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus": { + "TextDetectItemStatus": { "type": "string", "enum": [ - "pending" + "processing", + "completed", + "failed" ], - "title": "AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus" - }, - "Audio_Enhancement_createAudioEnhancement_Response_202": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "uuid": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus" - } - }, - "title": "Audio Enhancement_createAudioEnhancement_Response_202" - }, - "CreateAudioEnhancementRequestBadRequestError": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - }, - "title": "CreateAudioEnhancementRequestBadRequestError" - }, - "CreateAudioEnhancementRequestForbiddenError": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - }, - "title": "CreateAudioEnhancementRequestForbiddenError" + "description": "`processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored.", + "title": "TextDetectItemStatus" }, - "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus": { + "TextDetectItemPrediction": { "type": "string", "enum": [ - "pending", - "processing", - "completed", - "failed" + "ai", + "human", + "uncertain" ], - "title": "AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus" + "description": "Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing.", + "title": "TextDetectItemPrediction" }, - "Audio_Enhancement_getAudioEnhancement_Response_200": { + "TextDetectItem": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, "uuid": { "type": "string" }, "status": { - "$ref": "#/components/schemas/AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus" + "$ref": "#/components/schemas/TextDetectItemStatus", + "description": "`processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored." + }, + "prediction": { + "oneOf": [ + { + "$ref": "#/components/schemas/TextDetectItemPrediction" + }, + { + "type": "null" + } + ], + "description": "Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing." }, - "enhanced_audio_url": { + "confidence": { "type": [ - "string", + "number", "null" ], - "format": "uri", - "description": "Download URL. Only present when status is completed. This is a temporary signed URL." + "format": "double", + "description": "Confidence in the reported `prediction`, from 0 to 1. Null while processing." }, - "error_message": { + "text_content": { "type": [ "string", "null" ], - "description": "Human-readable error. Only present when status is failed." - } - }, - "title": "Audio Enhancement_getAudioEnhancement_Response_200" - }, - "GetAudioEnhancementRequestNotFoundError": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - }, - "title": "GetAudioEnhancementRequestNotFoundError" - }, - "VoicesGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "status": { - "type": "string" + "description": "The submitted text." }, "created_at": { "type": "string", @@ -12161,80 +7793,17 @@ "updated_at": { "type": "string", "format": "date-time" - }, - "default_language": { - "type": "string" - }, - "voice_type": { - "type": "string" - }, - "voice_status": { - "type": "string" - }, - "supported_languages": { - "type": "array", - "items": { - "type": "string" - } - }, - "component_status": { - "type": "object", - "properties": { - "text_to_speech": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusTextToSpeech" - }, - "fill": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusFill" - }, - "voice_conversion": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusVoiceConversion" - } - }, - "title": "VoicesComponentStatus" - }, - "api_support": { - "type": "object", - "properties": { - "sync": { - "type": "boolean" - }, - "async": { - "type": "boolean" - }, - "direct_synthesis": { - "type": "boolean" - }, - "streaming": { - "type": "boolean" - } - }, - "title": "VoicesApiSupport" - }, - "source": { - "type": "string" } }, - "title": "VoicesGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "uuid", + "status", + "created_at", + "updated_at" + ], + "title": "TextDetectItem" }, - "Voices_listVoices_Response_200": { + "TextDetectListResponse": { "type": "object", "properties": { "success": { @@ -12249,1008 +7818,864 @@ "page_size": { "type": "integer" }, + "total_count": { + "type": "integer" + }, "items": { "type": "array", "items": { - "$ref": "#/components/schemas/VoicesGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/TextDetectItem" } } }, - "title": "Voices_listVoices_Response_200" + "required": [ + "success", + "page", + "num_pages", + "page_size", + "total_count", + "items" + ], + "title": "TextDetectListResponse" }, - "VoicesPostResponsesContentApplicationJsonSchemaItem": { + "TextDetectPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "TextDetectPostParametersPrefer" + }, + "TextDetectRequestThinking": { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ], + "default": "low", + "description": "How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.", + "title": "TextDetectRequestThinking" + }, + "TextDetectRequest": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "status": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { + "text": { "type": "string", - "format": "date-time" - }, - "default_language": { - "type": "string" - }, - "voice_type": { - "type": "string" - }, - "voice_status": { - "type": "string" - }, - "supported_languages": { - "type": "array", - "items": { - "type": "string" - } + "minLength": 1, + "maxLength": 100000, + "description": "The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length." }, - "component_status": { - "type": "object", - "properties": { - "text_to_speech": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusTextToSpeech" - }, - "fill": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusFill" - }, - "voice_conversion": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusVoiceConversion" - } - }, - "title": "VoicesComponentStatus" + "thinking": { + "$ref": "#/components/schemas/TextDetectRequestThinking", + "description": "How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency." }, - "api_support": { - "type": "object", - "properties": { - "sync": { - "type": "boolean" - }, - "async": { - "type": "boolean" - }, - "direct_synthesis": { - "type": "boolean" - }, - "streaming": { - "type": "boolean" - } - }, - "title": "VoicesApiSupport" + "threshold": { + "type": "number", + "format": "double", + "description": "Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`." }, - "source": { - "type": "string" + "callback_url": { + "type": "string", + "format": "uri", + "description": "POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed." } }, - "title": "VoicesPostResponsesContentApplicationJsonSchemaItem" + "required": [ + "text" + ], + "title": "TextDetectRequest" }, - "Voices_createVoice_Response_200": { + "TextDetectResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/VoicesPostResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/TextDetectItem" } }, - "title": "Voices_createVoice_Response_200" + "required": [ + "success", + "item" + ], + "title": "TextDetectResponse" }, - "VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem": { + "DetectMusicPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "DetectMusicPostParametersPrefer" + }, + "MusicDetectItemStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "failed" + ], + "description": "`processing` until inference returns, `completed` once `metrics` is populated, or `failed` if the analysis errored. Failed analyses are not billed.", + "title": "MusicDetectItemStatus" + }, + "MusicDetectItemMediaType": { + "type": "string", + "enum": [ + "audio" + ], + "title": "MusicDetectItemMediaType" + }, + "MusicDetectMetricsLabel": { + "type": "string", + "enum": [ + "fake", + "real" + ], + "description": "`fake` when the track is classified as AI-generated music, `real` when it is classified as human-produced.", + "title": "MusicDetectMetricsLabel" + }, + "MusicDetectMetrics": { "type": "object", "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "status": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "default_language": { - "type": "string" - }, - "voice_type": { - "type": "string" + "label": { + "$ref": "#/components/schemas/MusicDetectMetricsLabel", + "description": "`fake` when the track is classified as AI-generated music, `real` when it is classified as human-produced." }, - "voice_status": { - "type": "string" + "aggregated_score": { + "type": "number", + "format": "double", + "description": "Overall likelihood that the track is AI-generated, from 0 to 1." }, - "supported_languages": { + "score": { "type": "array", "items": { - "type": "string" - } - }, - "component_status": { - "type": "object", - "properties": { - "text_to_speech": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusTextToSpeech" - }, - "fill": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusFill" - }, - "voice_conversion": { - "type": "object", - "properties": { - "status": { - "type": "string" - } - }, - "title": "VoicesComponentStatusVoiceConversion" - } + "type": "number", + "format": "double" }, - "title": "VoicesComponentStatus" + "description": "Per-window likelihood that the audio is AI-generated, from 0 to 1. A window that could not be scored (for example, silence) is `null`." }, - "api_support": { - "type": "object", - "properties": { - "sync": { - "type": "boolean" - }, - "async": { - "type": "boolean" - }, - "direct_synthesis": { - "type": "boolean" - }, - "streaming": { - "type": "boolean" - } - }, - "title": "VoicesApiSupport" + "duration": { + "type": "number", + "format": "double", + "description": "Duration of the analyzed audio in seconds." }, - "source": { - "type": "string" - } - }, - "title": "VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem" - }, - "Voices_getVoice_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "consistency": { + "type": "number", + "format": "double", + "description": "How consistent the per-window scores are across the track, from 0 to 100." }, - "item": { - "$ref": "#/components/schemas/VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem" + "image": { + "type": "string", + "description": "Base64-encoded heatmap image. Present only when `visualize` was `true`." } }, - "title": "Voices_getVoice_Response_200" + "description": "Music detection verdict. Empty while the detection is processing or when it failed.", + "title": "MusicDetectMetrics" }, - "Voices_deleteVoice_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Voices_deleteVoice_Response_200" + "MusicDetectItemExtraParamsDetector": { + "type": "string", + "enum": [ + "music" + ], + "title": "MusicDetectItemExtraParamsDetector" }, - "Voices_buildVoice_Response_200": { + "MusicDetectItemExtraParams": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" + "detector": { + "$ref": "#/components/schemas/MusicDetectItemExtraParamsDetector" } }, - "title": "Voices_buildVoice_Response_200" - }, - "VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems" + "description": "Request metadata. Music detections always include `detector` set to `music`.", + "title": "MusicDetectItemExtraParams" }, - "Recordings_listRecordings_Response_200": { + "MusicDetectItem": { "type": "object", "properties": { - "success": { - "type": "boolean" + "uuid": { + "type": "string" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "name": { + "type": [ + "string", + "null" + ], + "description": "Display name for the detection." + }, + "status": { + "$ref": "#/components/schemas/MusicDetectItemStatus", + "description": "`processing` until inference returns, `completed` once `metrics` is populated, or `failed` if the analysis errored. Failed analyses are not billed." + }, + "media_type": { + "$ref": "#/components/schemas/MusicDetectItemMediaType" + }, + "metrics": { + "$ref": "#/components/schemas/MusicDetectMetrics" + }, + "duration": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Duration of the submitted audio in seconds." + }, + "url": { + "type": [ + "string", + "null" + ], + "description": "URL to the stored audio file." + }, + "filename": { + "type": [ + "string", + "null" + ], + "description": "Original filename." + }, + "error_message": { + "type": [ + "string", + "null" + ], + "description": "Reason the analysis failed. Null unless `status` is `failed`." + }, + "extra_params": { + "$ref": "#/components/schemas/MusicDetectItemExtraParams", + "description": "Request metadata. Music detections always include `detector` set to `music`." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" } }, - "title": "Recordings_listRecordings_Response_200" - }, - "VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem" + "required": [ + "uuid", + "status", + "media_type" + ], + "title": "MusicDetectItem" }, - "Recordings_createRecording_Response_200": { + "MusicDetectResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/MusicDetectItem" } }, - "title": "Recordings_createRecording_Response_200" + "required": [ + "success", + "item" + ], + "title": "MusicDetectResponse" }, - "VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem" + "SignalSubmissionInputModality": { + "type": "string", + "enum": [ + "text", + "audio", + "video", + "image" + ], + "title": "SignalSubmissionInputModality" + }, + "SignalSubmissionVerdict": { + "type": "string", + "enum": [ + "safe", + "suspicious", + "fraud" + ], + "title": "SignalSubmissionVerdict" }, - "Recordings_getRecording_Response_200": { + "SignalCategoryScore": { "type": "object", "properties": { - "success": { - "type": "boolean" + "name": { + "type": "string" }, - "item": { - "$ref": "#/components/schemas/VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem" + "icon": { + "type": [ + "string", + "null" + ], + "description": "Single emoji associated with the category." + }, + "score": { + "type": "number", + "format": "double", + "description": "Similarity score from 0 to 1." } }, - "title": "Recordings_getRecording_Response_200" + "required": [ + "name", + "score" + ], + "title": "SignalCategoryScore" }, - "Recordings_deleteRecording_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Recordings_deleteRecording_Response_200" + "SignalScoreItemInputModality": { + "type": "string", + "enum": [ + "text", + "audio", + "video", + "image" + ], + "title": "SignalScoreItemInputModality" }, - "VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem" + "SignalScoreItemVerdict": { + "type": "string", + "enum": [ + "safe", + "suspicious", + "fraud" + ], + "title": "SignalScoreItemVerdict" }, - "Recordings_updateRecording_Response_200": { + "SignalTopMatch": { "type": "object", "properties": { - "success": { - "type": "boolean" + "category": { + "type": "string", + "description": "Category the matched example belongs to." }, - "item": { - "$ref": "#/components/schemas/VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem" + "text": { + "type": "string", + "description": "The individual training example that matched." + }, + "score": { + "type": "number", + "format": "double" } }, - "title": "Recordings_updateRecording_Response_200" - }, - "TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems" + "title": "SignalTopMatch" }, - "Term_Substitutions_listTermSubstitutions_Response_200": { + "SignalScoreItem": { "type": "object", "properties": { - "success": { - "type": "boolean" + "id": { + "type": "integer", + "description": "Submission identifier, used with `DELETE /signal/{id}`." }, - "items": { + "input_modality": { + "$ref": "#/components/schemas/SignalScoreItemInputModality" + }, + "verdict": { + "$ref": "#/components/schemas/SignalScoreItemVerdict" + }, + "top_category": { + "$ref": "#/components/schemas/SignalCategoryScore" + }, + "category_scores": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SignalCategoryScore" + }, + "description": "Highest-scoring categories, including the top category." + }, + "benign_score": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "How strongly the content matched benign, non-fraud content." + }, + "margin_over_second": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Gap between the top category score and the runner-up." + }, + "examples": { "type": "array", "items": { - "$ref": "#/components/schemas/TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems" + "type": "string" + }, + "description": "Sample phrases from the top category, useful for explaining the verdict." + }, + "top_matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SignalTopMatch" } - } - }, - "title": "Term Substitutions_listTermSubstitutions_Response_200" - }, - "TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem" - }, - "Term_Substitutions_createTermSubstitution_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Term Substitutions_createTermSubstitution_Response_200" - }, - "TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem" - }, - "Term_Substitutions_getTermSubstitution_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "duration_seconds": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Media duration for audio and video. Null for text and image." }, - "item": { - "$ref": "#/components/schemas/TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Term Substitutions_getTermSubstitution_Response_200" - }, - "Term_Substitutions_deleteTermSubstitution_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "created_at": { + "type": "string", + "format": "date-time" } }, - "title": "Term Substitutions_deleteTermSubstitution_Response_200" - }, - "PronunciationsGetParametersStatus": { - "type": "string", - "enum": [ - "pending", - "ready", - "failed" - ], - "title": "PronunciationsGetParametersStatus" - }, - "CustomPronunciationStatus": { - "type": "string", - "enum": [ - "pending", - "ready", - "failed" + "required": [ + "input_modality", + "verdict" ], - "description": "Processing status. Only \"ready\" pronunciations are applied during synthesis.", - "title": "CustomPronunciationStatus" + "title": "SignalScoreItem" }, - "CustomPronunciation": { + "SignalSubmission": { "type": "object", "properties": { - "uuid": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the pronunciation" + "id": { + "type": "integer" }, - "word": { - "type": "string", - "description": "The word or phrase this pronunciation applies to" + "input_modality": { + "$ref": "#/components/schemas/SignalSubmissionInputModality" }, - "status": { - "$ref": "#/components/schemas/CustomPronunciationStatus", - "description": "Processing status. Only \"ready\" pronunciations are applied during synthesis." + "filename": { + "type": [ + "string", + "null" + ], + "description": "Original filename for file submissions." }, - "active": { - "type": "boolean", - "description": "Whether this pronunciation is active and will be applied during synthesis" + "content_type": { + "type": [ + "string", + "null" + ], + "description": "MIME type for file submissions." + }, + "text_preview": { + "type": [ + "string", + "null" + ], + "description": "Truncated copy of the submitted text. Null for file submissions." + }, + "verdict": { + "$ref": "#/components/schemas/SignalSubmissionVerdict" + }, + "top_category": { + "$ref": "#/components/schemas/SignalCategoryScore" + }, + "benign_score": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "margin_over_second": { + "type": [ + "number", + "null" + ], + "format": "double" }, - "audio_url": { - "type": "string", - "format": "uri", - "description": "URL to the uploaded reference audio" + "response": { + "$ref": "#/components/schemas/SignalScoreItem" }, "created_at": { "type": "string", "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "title": "CustomPronunciation" - }, - "Custom_Pronunciations_listPronunciations_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomPronunciation" - } - } - }, - "title": "Custom Pronunciations_listPronunciations_Response_200" - }, - "Custom_Pronunciations_createPronunciation_Response_201": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/CustomPronunciation" } }, - "title": "Custom Pronunciations_createPronunciation_Response_201" - }, - "PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems": { - "type": "object", - "properties": {}, - "title": "PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems" + "title": "SignalSubmission" }, - "Custom_Pronunciations_bulkCreatePronunciations_Response_201": { + "SignalSubmissionListResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, - "total_created": { - "type": "integer", - "description": "Number of pronunciations successfully created" - }, - "total_errors": { - "type": "integer", - "description": "Number of files that failed validation" - }, "items": { "type": "array", "items": { - "$ref": "#/components/schemas/CustomPronunciation" + "$ref": "#/components/schemas/SignalSubmission" } }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems" - } - } - }, - "title": "Custom Pronunciations_bulkCreatePronunciations_Response_201" - }, - "Custom_Pronunciations_getPronunciation_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "page": { + "type": "integer" }, - "item": { - "$ref": "#/components/schemas/CustomPronunciation" - } - }, - "title": "Custom Pronunciations_getPronunciation_Response_200" - }, - "Custom_Pronunciations_deletePronunciation_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Custom Pronunciations_deletePronunciation_Response_200" - }, - "Custom_Pronunciations_updatePronunciation_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "per_page": { + "type": "integer" }, - "item": { - "$ref": "#/components/schemas/CustomPronunciation" - } - }, - "title": "Custom Pronunciations_updatePronunciation_Response_200" - }, - "VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Voice_Settings_Presets_listVoiceSettingsPresets_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "total_count": { + "type": "integer" }, - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems" - } + "total_pages": { + "type": "integer" } }, - "title": "Voice Settings Presets_listVoiceSettingsPresets_Response_200" - }, - "VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData": { - "type": "object", - "properties": {}, - "title": "VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData" + "required": [ + "success", + "items" + ], + "title": "SignalSubmissionListResponse" }, - "Voice_Settings_Presets_createVoiceSettingsPreset_Response_201": { + "SignalError": { "type": "object", "properties": { "success": { "type": "boolean" }, - "data": { - "$ref": "#/components/schemas/VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData" - }, "message": { "type": "string" + }, + "max_bytes": { + "type": "integer", + "description": "Present on 413 responses." } }, - "title": "Voice Settings Presets_createVoiceSettingsPreset_Response_201" - }, - "VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData": { - "type": "object", - "properties": {}, - "title": "VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData" + "title": "SignalError" }, - "Voice_Settings_Presets_getVoiceSettingsPreset_Response_200": { + "SignalScoreResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, - "data": { - "$ref": "#/components/schemas/VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData" + "item": { + "$ref": "#/components/schemas/SignalScoreItem" } }, - "title": "Voice Settings Presets_getVoiceSettingsPreset_Response_200" + "required": [ + "success", + "item" + ], + "title": "SignalScoreResponse" }, - "Voice_Settings_Presets_deleteVoiceSettingsPreset_Response_200": { + "SignalSuccessResponse": { "type": "object", "properties": { "success": { "type": "boolean" } }, - "title": "Voice Settings Presets_deleteVoiceSettingsPreset_Response_200" - }, - "VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData": { - "type": "object", - "properties": {}, - "title": "VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData" + "required": [ + "success" + ], + "title": "SignalSuccessResponse" }, - "Voice_Settings_Presets_updateVoiceSettingsPreset_Response_200": { + "SignalSettings": { "type": "object", "properties": { - "success": { - "type": "boolean" - }, - "data": { - "$ref": "#/components/schemas/VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData" + "use_builtin_categories": { + "type": "boolean", + "description": "When false, scoring uses only the team's custom categories." } }, - "title": "Voice Settings Presets_updateVoiceSettingsPreset_Response_200" + "title": "SignalSettings" }, - "ProjectsGetResponsesContentApplicationJsonSchemaItemsItems": { + "SignalBuiltInCategory": { "type": "object", "properties": { - "uuid": { - "type": "string" + "id": { + "type": "integer" }, "name": { "type": "string" }, - "description": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "is_collaborative": { - "type": "boolean" + "icon": { + "type": [ + "string", + "null" + ] }, - "is_archived": { - "type": "boolean" - } - }, - "title": "ProjectsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Projects_listProjects_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "scenario_count": { + "type": "integer" }, - "items": { + "example_texts": { "type": "array", "items": { - "$ref": "#/components/schemas/ProjectsGetResponsesContentApplicationJsonSchemaItemsItems" + "type": "string" } } }, - "title": "Projects_listProjects_Response_200" - }, - "ProjectsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - }, - "title": "ProjectsPostResponsesContentApplicationJsonSchemaItem" + "title": "SignalBuiltInCategory" }, - "Projects_createProject_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "item": { - "$ref": "#/components/schemas/ProjectsPostResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Projects_createProject_Response_200" + "SignalCustomCategoryStatus": { + "type": "string", + "enum": [ + "pending", + "embedding", + "ready", + "needs_more_examples", + "failed" + ], + "title": "SignalCustomCategoryStatus" }, - "ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem": { + "SignalCustomCategoryOverlapsItems": { "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "is_collaborative": { - "type": "boolean" - }, - "is_archived": { - "type": "boolean" - } - }, - "title": "ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem" + "properties": {}, + "title": "SignalCustomCategoryOverlapsItems" }, - "Projects_getProject_Response_200": { + "SignalScenario": { "type": "object", "properties": { - "success": { - "type": "boolean" + "id": { + "type": "integer" }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem" + "text": { + "type": "string" + }, + "embedded": { + "type": "boolean", + "description": "Whether this example has finished embedding." } }, - "title": "Projects_getProject_Response_200" + "title": "SignalScenario" }, - "ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem": { + "SignalCustomCategory": { "type": "object", "properties": { - "uuid": { - "type": "string" + "id": { + "type": "integer" }, "name": { "type": "string" }, "description": { - "type": "string" + "type": [ + "string", + "null" + ] }, - "created_at": { - "type": "string", - "format": "date-time" + "icon": { + "type": [ + "string", + "null" + ] }, - "updated_at": { - "type": "string", + "enabled": { + "type": "boolean", + "description": "Whether the category is included in scoring." + }, + "status": { + "$ref": "#/components/schemas/SignalCustomCategoryStatus" + }, + "embed_error": { + "type": [ + "string", + "null" + ], + "description": "Error message when `status` is `failed`." + }, + "embedded_at": { + "type": [ + "string", + "null" + ], "format": "date-time" }, - "is_collaborative": { - "type": "boolean" + "scenario_count": { + "type": "integer" }, - "is_archived": { - "type": "boolean" - } - }, - "title": "ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" - }, - "Projects_updateProject_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "embedding_model_version": { + "type": [ + "string", + "null" + ] }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Projects_updateProject_Response_200" - }, - "Projects_deleteProject_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Projects_deleteProject_Response_200" - }, - "ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems" - }, - "Clips_listClips_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "overlaps": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SignalCustomCategoryOverlapsItems" + }, + "description": "Calibration warnings where this category was confused with another." }, - "items": { + "scenarios": { "type": "array", "items": { - "$ref": "#/components/schemas/ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/SignalScenario" } } }, - "title": "Clips_listClips_Response_200" + "title": "SignalCustomCategory" }, - "ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem": { + "SignalCalibrationWarningsItems": { "type": "object", "properties": {}, - "title": "ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem" + "title": "SignalCalibrationWarningsItems" }, - "Clips_getClip_Response_200": { + "SignalCalibration": { "type": "object", "properties": { - "success": { - "type": "boolean" + "status": { + "type": "string" }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Clips_getClip_Response_200" - }, - "Clips_deleteClip_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - }, - "title": "Clips_deleteClip_Response_200" - }, - "ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem" - }, - "Clips_updateClip_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "calibrated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "item": { - "$ref": "#/components/schemas/ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem" + "overall_recall": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SignalCalibrationWarningsItems" + } } }, - "title": "Clips_updateClip_Response_200" - }, - "DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems" + "description": "Null until the team's categories have been calibrated.", + "title": "SignalCalibration" }, - "Duets_listDuetVoices_Response_200": { + "SignalCustomCategoryListResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, - "items": { + "settings": { + "$ref": "#/components/schemas/SignalSettings" + }, + "built_in_categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SignalBuiltInCategory" + } + }, + "custom_categories": { "type": "array", "items": { - "$ref": "#/components/schemas/DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/SignalCustomCategory" } + }, + "calibration": { + "$ref": "#/components/schemas/SignalCalibration" } }, - "title": "Duets_listDuetVoices_Response_200" - }, - "DuetVoicesPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "DuetVoicesPostResponsesContentApplicationJsonSchemaItem" + "required": [ + "success" + ], + "title": "SignalCustomCategoryListResponse" }, - "Duets_createDuetVoice_Response_200": { + "SignalCustomCategoryCreateRequest": { "type": "object", "properties": { - "success": { - "type": "boolean" + "name": { + "type": "string", + "description": "Category name. Must be unique within the team." }, - "item": { - "$ref": "#/components/schemas/DuetVoicesPostResponsesContentApplicationJsonSchemaItem" + "scenarios": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Example phrases that define the pattern. Maximum 50 entries, each up to 2000 characters. A newline-separated string is also accepted." + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string", + "description": "Single emoji." + }, + "enabled": { + "type": "boolean", + "default": true } }, - "title": "Duets_createDuetVoice_Response_200" - }, - "DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem" + "required": [ + "name", + "scenarios" + ], + "title": "SignalCustomCategoryCreateRequest" }, - "Duets_updateDuetVoice_Response_200": { + "SignalCustomCategoryResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "item": { - "$ref": "#/components/schemas/DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem" - } - }, - "title": "Duets_updateDuetVoice_Response_200" - }, - "Duets_deleteDuetVoice_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" + "$ref": "#/components/schemas/SignalCustomCategory" } }, - "title": "Duets_deleteDuetVoice_Response_200" - }, - "DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems": { - "type": "object", - "properties": {}, - "title": "DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems" + "required": [ + "success", + "item" + ], + "title": "SignalCustomCategoryResponse" }, - "Duets_listDuetVoicePairs_Response_200": { + "SignalCustomCategoryUpdateRequest": { "type": "object", "properties": { - "success": { - "type": "boolean" + "name": { + "type": "string" }, - "items": { + "scenarios": { "type": "array", "items": { - "$ref": "#/components/schemas/DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems" + "type": "string" } - } - }, - "title": "Duets_listDuetVoicePairs_Response_200" - }, - "DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": {}, - "title": "DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem" - }, - "Duets_createDuetVoicePair_Response_200": { - "type": "object", - "properties": { - "success": { - "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem" + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "enabled": { + "type": "boolean" } }, - "title": "Duets_createDuetVoicePair_Response_200" - }, - "DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker": { - "type": "string", - "enum": [ - "0", - "1" - ], - "description": "Speaker index (0 or 1)", - "title": "DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker" + "description": "Any subset of the create parameters. Supplying `scenarios` replaces the existing set and re-triggers embedding.", + "title": "SignalCustomCategoryUpdateRequest" }, - "DuetPostRequestBodyContentApplicationJsonSchemaScriptItems": { + "SignalSettingsUpdateRequest": { "type": "object", "properties": { - "speaker": { - "$ref": "#/components/schemas/DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker", - "description": "Speaker index (0 or 1)" - }, - "text": { - "type": "string", - "description": "Text for this speaker" + "use_builtin_categories": { + "type": "boolean", + "description": "When false, scoring uses only the team's custom categories." } }, - "required": [ - "speaker", - "text" - ], - "title": "DuetPostRequestBodyContentApplicationJsonSchemaScriptItems" + "title": "SignalSettingsUpdateRequest" }, - "DuetPostResponsesContentApplicationJsonSchemaItem": { + "SignalSettingsResponse": { "type": "object", "properties": { - "uuid": { - "type": "string" + "success": { + "type": "boolean" }, - "status": { - "type": "string" + "settings": { + "$ref": "#/components/schemas/SignalSettings" } }, - "title": "DuetPostResponsesContentApplicationJsonSchemaItem" + "required": [ + "success", + "settings" + ], + "title": "SignalSettingsResponse" }, - "Duets_generateDuet_Response_200": { + "Secure_Uploads_createSecureUpload_Response_200": { "type": "object", "properties": { "success": { "type": "boolean" }, - "item": { - "$ref": "#/components/schemas/DuetPostResponsesContentApplicationJsonSchemaItem" + "token": { + "type": "string", + "description": "JWT referencing the uploaded file. Valid for 1 hour. Pass this value as `media_token` on downstream requests." } }, - "title": "Duets_generateDuet_Response_200" + "title": "Secure Uploads_createSecureUpload_Response_200" }, "AccountGetResponsesContentApplicationJsonSchemaItem": { "type": "object", @@ -13922,111 +9347,411 @@ "type": "string", "description": "Human-readable authorization or eligibility error." }, - "error_code": { + "error_code": { + "type": [ + "string", + "null" + ], + "description": "Machine-readable error code when one is available." + } + }, + "required": [ + "error" + ], + "title": "BillingForbiddenError" + }, + "BillingProductQuantityChange": { + "type": "object", + "properties": { + "product_slug": { + "type": "string", + "description": "Product slug returned by the subscription response." + }, + "new_quantity": { + "type": "number", + "format": "double", + "minimum": 0, + "description": "Desired absolute total, not an increment or decrement." + } + }, + "required": [ + "product_slug", + "new_quantity" + ], + "title": "BillingProductQuantityChange" + }, + "BillingUpdateProductsRequest": { + "type": "object", + "properties": { + "changes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BillingProductQuantityChange" + } + } + }, + "required": [ + "changes" + ], + "title": "BillingUpdateProductsRequest" + }, + "BillingPaymentActionRequired": { + "type": "object", + "properties": { + "requires_action": { + "type": "boolean" + }, + "client_secret": { + "type": "string", + "description": "Client secret used to complete the required payment authentication." + } + }, + "required": [ + "requires_action", + "client_secret" + ], + "title": "BillingPaymentActionRequired" + }, + "BillingValidationErrors": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "errors" + ], + "title": "BillingValidationErrors" + }, + "UpdateBillingSubscriptionProductsRequestUnprocessableEntityError": { + "oneOf": [ + { + "$ref": "#/components/schemas/BillingError" + }, + { + "$ref": "#/components/schemas/BillingValidationErrors" + } + ], + "title": "UpdateBillingSubscriptionProductsRequestUnprocessableEntityError" + }, + "BillingConfirmPaymentRequest": { + "type": "object", + "properties": { + "payment_intent_id": { + "type": "string", + "description": "Payment intent identifier completed by the customer." + } + }, + "required": [ + "payment_intent_id" + ], + "title": "BillingConfirmPaymentRequest" + }, + "ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError": { + "oneOf": [ + { + "$ref": "#/components/schemas/BillingError" + }, + { + "$ref": "#/components/schemas/BillingValidationErrors" + } + ], + "title": "ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError" + }, + "BillingChangePlanRequest": { + "type": "object", + "properties": { + "plan_slug": { + "type": "string" + }, + "product_quantities": { + "type": "object", + "additionalProperties": { + "type": "number", + "format": "double", + "minimum": 0 + }, + "description": "Optional map of product slugs to desired quantities on the new plan." + } + }, + "required": [ + "plan_slug" + ], + "title": "BillingChangePlanRequest" + }, + "ChangeBillingPlanRequestUnprocessableEntityError": { + "oneOf": [ + { + "$ref": "#/components/schemas/BillingError" + }, + { + "$ref": "#/components/schemas/BillingValidationErrors" + } + ], + "title": "ChangeBillingPlanRequestUnprocessableEntityError" + }, + "BillingWallet": { + "type": "object", + "properties": { + "balance_cents": { + "type": "number", + "format": "double" + }, + "balance_dollars": { + "type": "number", + "format": "double" + }, + "cash_balance_cents": { + "type": "number", + "format": "double" + }, + "cash_balance_dollars": { + "type": "number", + "format": "double" + }, + "promotional_balance_cents": { + "type": "number", + "format": "double" + }, + "promotional_balance_dollars": { + "type": "number", + "format": "double" + }, + "lifetime_loaded_cents": { + "type": "number", + "format": "double" + }, + "lifetime_loaded_dollars": { + "type": "number", + "format": "double" + }, + "lifetime_consumed_cents": { + "type": "number", + "format": "double" + }, + "lifetime_consumed_dollars": { + "type": "number", + "format": "double" + }, + "low_balance": { + "type": "boolean" + } + }, + "title": "BillingWallet" + }, + "BillingWalletResponse": { + "type": "object", + "properties": { + "wallet": { + "$ref": "#/components/schemas/BillingWallet" + } + }, + "title": "BillingWalletResponse" + }, + "BillingWalletTransactionTransactionType": { + "type": "string", + "enum": [ + "credit_purchase", + "trial_credit", + "promotion_bonus", + "usage_deduction", + "refund", + "manual_adjustment", + "subscription_renewal_credit", + "promotional_credit_adjustment", + "plan_change", + "plan_subscription", + "subscription_cancellation" + ], + "title": "BillingWalletTransactionTransactionType" + }, + "BillingWalletTransaction": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "transaction_type": { + "$ref": "#/components/schemas/BillingWalletTransactionTransactionType" + }, + "amount_cents": { + "type": "number", + "format": "double", + "description": "Positive for credits and negative for debits." + }, + "balance_after_cents": { + "type": "number", + "format": "double" + }, + "description": { "type": [ "string", "null" - ], - "description": "Machine-readable error code when one is available." + ] + }, + "metadata": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "created_at": { + "type": "string", + "format": "date-time" } }, - "required": [ - "error" - ], - "title": "BillingForbiddenError" + "title": "BillingWalletTransaction" }, - "BillingProductQuantityChange": { + "BillingPagination": { "type": "object", "properties": { - "product_slug": { - "type": "string", - "description": "Product slug returned by the subscription response." + "page": { + "type": "integer" }, - "new_quantity": { - "type": "number", - "format": "double", - "minimum": 0, - "description": "Desired absolute total, not an increment or decrement." + "per_page": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, + "total_pages": { + "type": "integer" } }, - "required": [ - "product_slug", - "new_quantity" - ], - "title": "BillingProductQuantityChange" + "title": "BillingPagination" }, - "BillingUpdateProductsRequest": { + "BillingTransactionsResponse": { "type": "object", "properties": { - "changes": { + "transactions": { "type": "array", "items": { - "$ref": "#/components/schemas/BillingProductQuantityChange" + "$ref": "#/components/schemas/BillingWalletTransaction" } + }, + "pagination": { + "$ref": "#/components/schemas/BillingPagination" } }, "required": [ - "changes" + "transactions" ], - "title": "BillingUpdateProductsRequest" + "title": "BillingTransactionsResponse" }, - "BillingPaymentActionRequired": { + "BillingAutoReloadSetting": { "type": "object", "properties": { - "requires_action": { + "enabled": { "type": "boolean" }, - "client_secret": { - "type": "string", - "description": "Client secret used to complete the required payment authentication." + "reload_amount_cents": { + "type": "integer" + }, + "reload_amount_dollars": { + "type": "number", + "format": "double" + }, + "minimum_balance_threshold_cents": { + "type": "integer" + }, + "minimum_balance_threshold_dollars": { + "type": "number", + "format": "double" + }, + "maximum_monthly_spend_cents": { + "type": "integer" + }, + "maximum_monthly_spend_dollars": { + "type": "number", + "format": "double" + }, + "current_month_spend_cents": { + "type": "integer" + }, + "current_month_spend_dollars": { + "type": "number", + "format": "double" + }, + "remaining_monthly_allowance_cents": { + "type": "integer" + }, + "remaining_monthly_allowance_dollars": { + "type": "number", + "format": "double" + }, + "has_payment_method": { + "type": "boolean" + }, + "can_reload": { + "type": "boolean" } }, - "required": [ - "requires_action", - "client_secret" - ], - "title": "BillingPaymentActionRequired" + "title": "BillingAutoReloadSetting" }, - "BillingValidationErrors": { + "BillingAutoReloadResponse": { "type": "object", "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" - } + "auto_reload": { + "oneOf": [ + { + "$ref": "#/components/schemas/BillingAutoReloadSetting" + }, + { + "type": "null" + } + ] + }, + "minimum_reload_amount_cents": { + "type": "integer" + }, + "maximum_reload_amount_cents": { + "type": "integer" } }, - "required": [ - "errors" - ], - "title": "BillingValidationErrors" + "title": "BillingAutoReloadResponse" }, - "UpdateBillingSubscriptionProductsRequestUnprocessableEntityError": { - "oneOf": [ - { - "$ref": "#/components/schemas/BillingError" + "BillingUpdateAutoReloadRequest": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" }, - { - "$ref": "#/components/schemas/BillingValidationErrors" + "reload_amount_cents": { + "type": "integer", + "minimum": 0 + }, + "minimum_balance_threshold_cents": { + "type": "integer", + "minimum": 0 + }, + "maximum_monthly_spend_cents": { + "type": "integer", + "minimum": 0 } + }, + "required": [ + "enabled", + "reload_amount_cents", + "minimum_balance_threshold_cents", + "maximum_monthly_spend_cents" ], - "title": "UpdateBillingSubscriptionProductsRequestUnprocessableEntityError" + "title": "BillingUpdateAutoReloadRequest" }, - "BillingConfirmPaymentRequest": { + "Billing_Wallet_updateBillingAutoReload_Response_200": { "type": "object", "properties": { - "payment_intent_id": { - "type": "string", - "description": "Payment intent identifier completed by the customer." + "auto_reload": { + "$ref": "#/components/schemas/BillingAutoReloadSetting" } }, - "required": [ - "payment_intent_id" - ], - "title": "BillingConfirmPaymentRequest" + "title": "Billing Wallet_updateBillingAutoReload_Response_200" }, - "ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError": { + "UpdateBillingAutoReloadRequestUnprocessableEntityError": { "oneOf": [ { "$ref": "#/components/schemas/BillingError" @@ -14035,329 +9760,421 @@ "$ref": "#/components/schemas/BillingValidationErrors" } ], - "title": "ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError" + "title": "UpdateBillingAutoReloadRequestUnprocessableEntityError" }, - "BillingChangePlanRequest": { + "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "plan_slug": { - "type": "string" + "detect": { + "type": "number" }, - "product_quantities": { - "type": "object", - "additionalProperties": { - "type": "number", - "format": "double", - "minimum": 0 - }, - "description": "Optional map of product slugs to desired quantities on the new plan." + "synth": { + "type": "string" } }, - "required": [ - "plan_slug" - ], - "title": "BillingChangePlanRequest" + "title": "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" }, - "ChangeBillingPlanRequestUnprocessableEntityError": { - "oneOf": [ - { - "$ref": "#/components/schemas/BillingError" + "Account_getBillingUsage_Response_200": { + "properties": { + "success": { + "type": "boolean" }, - { - "$ref": "#/components/schemas/BillingValidationErrors" + "items": { + "$ref": "#/components/schemas/AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" } - ], - "title": "ChangeBillingPlanRequestUnprocessableEntityError" + } }, - "BillingWallet": { + "ProjectsGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "balance_cents": { - "type": "number", - "format": "double" - }, - "balance_dollars": { - "type": "number", - "format": "double" - }, - "cash_balance_cents": { - "type": "number", - "format": "double" - }, - "cash_balance_dollars": { - "type": "number", - "format": "double" - }, - "promotional_balance_cents": { - "type": "number", - "format": "double" - }, - "promotional_balance_dollars": { - "type": "number", - "format": "double" + "uuid": { + "type": "string" }, - "lifetime_loaded_cents": { - "type": "number", - "format": "double" + "name": { + "type": "string" }, - "lifetime_loaded_dollars": { - "type": "number", - "format": "double" + "description": { + "type": "string" }, - "lifetime_consumed_cents": { - "type": "number", - "format": "double" + "created_at": { + "type": "string", + "format": "date-time" }, - "lifetime_consumed_dollars": { - "type": "number", - "format": "double" + "updated_at": { + "type": "string", + "format": "date-time" }, - "low_balance": { + "is_collaborative": { + "type": "boolean" + }, + "is_archived": { "type": "boolean" } }, - "title": "BillingWallet" + "title": "ProjectsGetResponsesContentApplicationJsonSchemaItemsItems" }, - "BillingWalletResponse": { + "ProjectsPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "wallet": { - "$ref": "#/components/schemas/BillingWallet" + "uuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "is_collaborative": { + "type": "boolean" + }, + "is_archived": { + "type": "boolean" } }, - "title": "BillingWalletResponse" - }, - "BillingWalletTransactionTransactionType": { - "type": "string", - "enum": [ - "credit_purchase", - "trial_credit", - "promotion_bonus", - "usage_deduction", - "refund", - "manual_adjustment", - "subscription_renewal_credit", - "promotional_credit_adjustment", - "plan_change", - "plan_subscription", - "subscription_cancellation" - ], - "title": "BillingWalletTransactionTransactionType" + "title": "ProjectsPostResponsesContentApplicationJsonSchemaItem" }, - "BillingWalletTransaction": { + "ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "transaction_type": { - "$ref": "#/components/schemas/BillingWalletTransactionTransactionType" - }, - "amount_cents": { - "type": "number", - "format": "double", - "description": "Positive for credits and negative for debits." + "uuid": { + "type": "string" }, - "balance_after_cents": { - "type": "number", - "format": "double" + "name": { + "type": "string" }, "description": { - "type": [ - "string", - "null" - ] - }, - "metadata": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } + "type": "string" }, "created_at": { "type": "string", "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "is_collaborative": { + "type": "boolean" + }, + "is_archived": { + "type": "boolean" } }, - "title": "BillingWalletTransaction" + "title": "ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem" }, - "BillingPagination": { + "ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "page": { - "type": "integer" + "uuid": { + "type": "string" }, - "per_page": { - "type": "integer" + "name": { + "type": "string" }, - "total_count": { - "type": "integer" + "description": { + "type": "string" }, - "total_pages": { - "type": "integer" + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "is_collaborative": { + "type": "boolean" + }, + "is_archived": { + "type": "boolean" } }, - "title": "BillingPagination" + "title": "ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem" }, - "BillingTransactionsResponse": { + "VoicesGetResponsesContentApplicationJsonSchemaItemsItems": { "type": "object", "properties": { - "transactions": { + "uuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "default_language": { + "type": "string" + }, + "voice_type": { + "type": "string" + }, + "voice_status": { + "type": "string" + }, + "supported_languages": { "type": "array", "items": { - "$ref": "#/components/schemas/BillingWalletTransaction" + "type": "string" } }, - "pagination": { - "$ref": "#/components/schemas/BillingPagination" + "component_status": { + "type": "object", + "properties": { + "text_to_speech": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusTextToSpeech" + }, + "fill": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusFill" + }, + "voice_conversion": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusVoiceConversion" + } + }, + "title": "VoicesComponentStatus" + }, + "api_support": { + "type": "object", + "properties": { + "sync": { + "type": "boolean" + }, + "async": { + "type": "boolean" + }, + "direct_synthesis": { + "type": "boolean" + }, + "streaming": { + "type": "boolean" + } + }, + "title": "VoicesApiSupport" + }, + "source": { + "type": "string" } }, - "required": [ - "transactions" - ], - "title": "BillingTransactionsResponse" + "title": "VoicesGetResponsesContentApplicationJsonSchemaItemsItems" }, - "BillingAutoReloadSetting": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "reload_amount_cents": { - "type": "integer" - }, - "reload_amount_dollars": { - "type": "number", - "format": "double" - }, - "minimum_balance_threshold_cents": { - "type": "integer" + "VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "uuid": { + "type": "string" }, - "minimum_balance_threshold_dollars": { - "type": "number", - "format": "double" + "name": { + "type": "string" }, - "maximum_monthly_spend_cents": { - "type": "integer" + "status": { + "type": "string" }, - "maximum_monthly_spend_dollars": { - "type": "number", - "format": "double" + "created_at": { + "type": "string", + "format": "date-time" }, - "current_month_spend_cents": { - "type": "integer" + "updated_at": { + "type": "string", + "format": "date-time" }, - "current_month_spend_dollars": { - "type": "number", - "format": "double" + "default_language": { + "type": "string" }, - "remaining_monthly_allowance_cents": { - "type": "integer" + "voice_type": { + "type": "string" }, - "remaining_monthly_allowance_dollars": { - "type": "number", - "format": "double" + "voice_status": { + "type": "string" }, - "has_payment_method": { - "type": "boolean" + "supported_languages": { + "type": "array", + "items": { + "type": "string" + } }, - "can_reload": { - "type": "boolean" - } - }, - "title": "BillingAutoReloadSetting" - }, - "BillingAutoReloadResponse": { - "type": "object", - "properties": { - "auto_reload": { - "oneOf": [ - { - "$ref": "#/components/schemas/BillingAutoReloadSetting" + "component_status": { + "type": "object", + "properties": { + "text_to_speech": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusTextToSpeech" }, - { - "type": "null" + "fill": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusFill" + }, + "voice_conversion": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusVoiceConversion" } - ] + }, + "title": "VoicesComponentStatus" }, - "minimum_reload_amount_cents": { - "type": "integer" + "api_support": { + "type": "object", + "properties": { + "sync": { + "type": "boolean" + }, + "async": { + "type": "boolean" + }, + "direct_synthesis": { + "type": "boolean" + }, + "streaming": { + "type": "boolean" + } + }, + "title": "VoicesApiSupport" }, - "maximum_reload_amount_cents": { - "type": "integer" + "source": { + "type": "string" } }, - "title": "BillingAutoReloadResponse" + "title": "VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem" }, - "BillingUpdateAutoReloadRequest": { + "VoicesPostResponsesContentApplicationJsonSchemaItem": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "uuid": { + "type": "string" }, - "reload_amount_cents": { - "type": "integer", - "minimum": 0 + "name": { + "type": "string" }, - "minimum_balance_threshold_cents": { - "type": "integer", - "minimum": 0 + "status": { + "type": "string" }, - "maximum_monthly_spend_cents": { - "type": "integer", - "minimum": 0 - } - }, - "required": [ - "enabled", - "reload_amount_cents", - "minimum_balance_threshold_cents", - "maximum_monthly_spend_cents" - ], - "title": "BillingUpdateAutoReloadRequest" - }, - "Billing_Wallet_updateBillingAutoReload_Response_200": { - "type": "object", - "properties": { - "auto_reload": { - "$ref": "#/components/schemas/BillingAutoReloadSetting" - } - }, - "title": "Billing Wallet_updateBillingAutoReload_Response_200" - }, - "UpdateBillingAutoReloadRequestUnprocessableEntityError": { - "oneOf": [ - { - "$ref": "#/components/schemas/BillingError" + "created_at": { + "type": "string", + "format": "date-time" }, - { - "$ref": "#/components/schemas/BillingValidationErrors" - } - ], - "title": "UpdateBillingAutoReloadRequestUnprocessableEntityError" - }, - "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem": { - "type": "object", - "properties": { - "detect": { - "type": "number" + "updated_at": { + "type": "string", + "format": "date-time" }, - "synth": { + "default_language": { "type": "string" - } - }, - "title": "AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" - }, - "Account_getBillingUsage_Response_200": { - "properties": { - "success": { - "type": "boolean" }, - "items": { - "$ref": "#/components/schemas/AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem" + "voice_type": { + "type": "string" + }, + "voice_status": { + "type": "string" + }, + "supported_languages": { + "type": "array", + "items": { + "type": "string" + } + }, + "component_status": { + "type": "object", + "properties": { + "text_to_speech": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusTextToSpeech" + }, + "fill": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusFill" + }, + "voice_conversion": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + }, + "title": "VoicesComponentStatusVoiceConversion" + } + }, + "title": "VoicesComponentStatus" + }, + "api_support": { + "type": "object", + "properties": { + "sync": { + "type": "boolean" + }, + "async": { + "type": "boolean" + }, + "direct_synthesis": { + "type": "boolean" + }, + "streaming": { + "type": "boolean" + } + }, + "title": "VoicesApiSupport" + }, + "source": { + "type": "string" } - } + }, + "title": "VoicesPostResponsesContentApplicationJsonSchemaItem" } }, "securitySchemes": {