From 6294af9028df6a7328ccde0b82644450cc20acf3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 22 Jul 2026 16:24:26 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...entityClient.CreateIdentityAttachment.g.cs | 105 + ...entityClient.DeleteIdentityAttachment.g.cs | 36 + ...entityClient.CreateIdentityAttachment.g.cs | 1726 +++++++++++++++++ ...entityClient.DeleteIdentityAttachment.g.cs | 482 +++++ ...rters.IdentityEmbeddingsItemsModality.g.cs | 53 + ...entityEmbeddingsItemsModalityNullable.g.cs | 60 + ...I.JsonConverters.IdentityIdentityType.g.cs | 53 + ...nverters.IdentityIdentityTypeNullable.g.cs | 60 + ...ontentMultipartFormDataSchemaModality.g.cs | 53 + ...ltipartFormDataSchemaModalityNullable.g.cs | 60 + ...eAI.JsonConverters.IdentityVisibility.g.cs | 53 + ...Converters.IdentityVisibilityNullable.g.cs | 60 + .../ResembleAI.JsonSerializerContext.g.cs | 630 +++++- ...ResembleAI.JsonSerializerContextTypes.g.cs | 470 +++-- ....CreateIdentityAttachmentRequest.Json.g.cs | 141 ++ ...odels.CreateIdentityAttachmentRequest.g.cs | 70 + .../ResembleAI.Models.Identity.Json.g.cs | 141 ++ .../Generated/ResembleAI.Models.Identity.g.cs | 165 ++ ...mbleAI.Models.IdentityAttachment.Json.g.cs | 141 ++ .../ResembleAI.Models.IdentityAttachment.g.cs | 71 + ...eteIdentityAttachmentResponse204.Json.g.cs | 141 ++ ...tyDeleteIdentityAttachmentResponse204.g.cs | 19 + ...I.Models.IdentityEmbeddingsItems.Json.g.cs | 141 ++ ...mbleAI.Models.IdentityEmbeddingsItems.g.cs | 72 + ...odels.IdentityEmbeddingsItemsModality.g.cs | 57 + ...esembleAI.Models.IdentityIdentityType.g.cs | 51 + ...eAI.Models.IdentityProjectsItems.Json.g.cs | 141 ++ ...sembleAI.Models.IdentityProjectsItems.g.cs | 53 + ...ontentMultipartFormDataSchemaModality.g.cs | 57 + .../ResembleAI.Models.IdentityVisibility.g.cs | 51 + src/libs/ResembleAI/openapi.yaml | 330 ++++ 31 files changed, 5539 insertions(+), 204 deletions(-) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentityAttachment.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentityAttachment.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentityAttachment.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentityAttachment.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModality.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityType.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityTypeNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibility.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibilityNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItems.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItems.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItemsModality.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityIdentityType.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityVisibility.g.cs diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentityAttachment.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentityAttachment.g.cs new file mode 100644 index 0000000..9161102 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentityAttachment.g.cs @@ -0,0 +1,105 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface IIdentityClient + { + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// 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 CreateIdentityAttachmentAsync( + string uuid, + + global::ResembleAI.CreateIdentityAttachmentRequest request, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// 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> CreateIdentityAttachmentAsResponseAsync( + string uuid, + + global::ResembleAI.CreateIdentityAttachmentRequest request, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// + /// The media file to attach + /// + /// + /// The media file to attach + /// + /// 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 CreateIdentityAttachmentAsync( + string uuid, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + byte[] file, + string filename, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// + /// The media file to attach + /// + /// + /// The media file to attach + /// + /// 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 CreateIdentityAttachmentAsync( + string uuid, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + global::System.IO.Stream file, + string filename, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// + /// The media file to attach + /// + /// + /// The media file to attach + /// + /// 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> CreateIdentityAttachmentAsResponseAsync( + string uuid, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + global::System.IO.Stream file, + string filename, + 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.IIdentityClient.DeleteIdentityAttachment.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentityAttachment.g.cs new file mode 100644 index 0000000..35ef0f5 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentityAttachment.g.cs @@ -0,0 +1,36 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface IIdentityClient + { + /// + /// Remove reference media
+ /// Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed 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 DeleteIdentityAttachmentAsync( + string uuid, + int attachmentId, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Remove reference media
+ /// Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed 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> DeleteIdentityAttachmentAsResponseAsync( + string uuid, + int attachmentId, + 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.IdentityClient.CreateIdentityAttachment.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentityAttachment.g.cs new file mode 100644 index 0000000..f09d717 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentityAttachment.g.cs @@ -0,0 +1,1726 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial class IdentityClient + { + + private static readonly global::ResembleAI.AutoSDKServer[] s_CreateIdentityAttachmentServers = 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_CreateIdentityAttachmentSecurityRequirement0 = + 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_CreateIdentityAttachmentSecurityRequirements = + new global::ResembleAI.EndPointSecurityRequirement[] + { s_CreateIdentityAttachmentSecurityRequirement0, + }; + partial void PrepareCreateIdentityAttachmentArguments( + global::System.Net.Http.HttpClient httpClient, + ref string uuid, + global::ResembleAI.CreateIdentityAttachmentRequest request); + partial void PrepareCreateIdentityAttachmentRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string uuid, + global::ResembleAI.CreateIdentityAttachmentRequest request); + partial void ProcessCreateIdentityAttachmentResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateIdentityAttachmentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// 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 CreateIdentityAttachmentAsync( + string uuid, + + global::ResembleAI.CreateIdentityAttachmentRequest request, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateIdentityAttachmentAsResponseAsync( + uuid: uuid, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// 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> CreateIdentityAttachmentAsResponseAsync( + string uuid, + + global::ResembleAI.CreateIdentityAttachmentRequest request, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateIdentityAttachmentArguments( + httpClient: HttpClient, + uuid: ref uuid, + request: request); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateIdentityAttachmentSecurityRequirements, + operationName: "CreateIdentityAttachmentAsync"); + + 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: $"/identity/{uuid}/attachments", + baseUri: ResolveBaseUri( + servers: s_CreateIdentityAttachmentServers, + 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(uuid ?? string.Empty), + name: "\"uuid\""); + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Modality.ToValueString()), + name: "\"modality\""); + + 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; + } + + __httpRequest.Content = __httpRequestContent; + + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateIdentityAttachmentRequest( + 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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessCreateIdentityAttachmentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Missing or invalid modality, or missing file + 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)); + } + // Identity 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)); + } + // Face photo limit reached (a person identity accepts at most 5 face photos) + 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); + ProcessCreateIdentityAttachmentResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.Identity.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.Identity.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(); + } + } + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// + /// The media file to attach + /// + /// + /// The media file to attach + /// + /// 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 CreateIdentityAttachmentAsync( + string uuid, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + byte[] file, + string filename, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ResembleAI.CreateIdentityAttachmentRequest + { + Modality = modality, + File = file, + Filename = filename, + }; + + return await CreateIdentityAttachmentAsync( + uuid: uuid, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// + /// The media file to attach + /// + /// + /// The media file to attach + /// + /// 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 CreateIdentityAttachmentAsync( + string uuid, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + global::System.IO.Stream file, + string filename, + 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.CreateIdentityAttachmentRequest + { + Modality = modality, + File = global::System.Array.Empty(), + Filename = filename, + }; + PrepareArguments( + client: HttpClient); + PrepareCreateIdentityAttachmentArguments( + httpClient: HttpClient, + uuid: ref uuid, + request: request); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateIdentityAttachmentSecurityRequirements, + operationName: "CreateIdentityAttachmentAsync"); + + 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: $"/identity/{uuid}/attachments", + baseUri: ResolveBaseUri( + servers: s_CreateIdentityAttachmentServers, + 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(uuid ?? string.Empty), + name: "\"uuid\""); + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Modality.ToValueString()), + name: "\"modality\""); + + 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; + } + + __httpRequest.Content = __httpRequestContent; + + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateIdentityAttachmentRequest( + 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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessCreateIdentityAttachmentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Missing or invalid modality, or missing file + 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)); + } + // Identity 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)); + } + // Face photo limit reached (a person identity accepts at most 5 face photos) + 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); + ProcessCreateIdentityAttachmentResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::ResembleAI.Identity.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.Identity.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(); + } + } + /// + /// Add reference media
+ /// Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready. + ///
+ /// + /// + /// + /// The media file to attach + /// + /// + /// The media file to attach + /// + /// 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> CreateIdentityAttachmentAsResponseAsync( + string uuid, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + global::System.IO.Stream file, + string filename, + 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.CreateIdentityAttachmentRequest + { + Modality = modality, + File = global::System.Array.Empty(), + Filename = filename, + }; + PrepareArguments( + client: HttpClient); + PrepareCreateIdentityAttachmentArguments( + httpClient: HttpClient, + uuid: ref uuid, + request: request); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateIdentityAttachmentSecurityRequirements, + operationName: "CreateIdentityAttachmentAsync"); + + 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: $"/identity/{uuid}/attachments", + baseUri: ResolveBaseUri( + servers: s_CreateIdentityAttachmentServers, + 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(uuid ?? string.Empty), + name: "\"uuid\""); + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Modality.ToValueString()), + name: "\"modality\""); + + 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; + } + + __httpRequest.Content = __httpRequestContent; + + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateIdentityAttachmentRequest( + 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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessCreateIdentityAttachmentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateIdentityAttachment", + methodName: "CreateIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Missing or invalid modality, or missing file + 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)); + } + // Identity 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)); + } + // Face photo limit reached (a person identity accepts at most 5 face photos) + 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); + ProcessCreateIdentityAttachmentResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.Identity.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.Identity.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.IdentityClient.DeleteIdentityAttachment.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentityAttachment.g.cs new file mode 100644 index 0000000..8ee0d00 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentityAttachment.g.cs @@ -0,0 +1,482 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial class IdentityClient + { + + private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteIdentityAttachmentServers = 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_DeleteIdentityAttachmentSecurityRequirement0 = + 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_DeleteIdentityAttachmentSecurityRequirements = + new global::ResembleAI.EndPointSecurityRequirement[] + { s_DeleteIdentityAttachmentSecurityRequirement0, + }; + partial void PrepareDeleteIdentityAttachmentArguments( + global::System.Net.Http.HttpClient httpClient, + ref string uuid, + ref int attachmentId); + partial void PrepareDeleteIdentityAttachmentRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string uuid, + int attachmentId); + partial void ProcessDeleteIdentityAttachmentResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteIdentityAttachmentResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Remove reference media
+ /// Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed 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 DeleteIdentityAttachmentAsync( + string uuid, + int attachmentId, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteIdentityAttachmentAsResponseAsync( + uuid: uuid, + attachmentId: attachmentId, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Remove reference media
+ /// Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed 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> DeleteIdentityAttachmentAsResponseAsync( + string uuid, + int attachmentId, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteIdentityAttachmentArguments( + httpClient: HttpClient, + uuid: ref uuid, + attachmentId: ref attachmentId); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteIdentityAttachmentSecurityRequirements, + operationName: "DeleteIdentityAttachmentAsync"); + + 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: $"/identity/{uuid}/attachments/{attachmentId}", + baseUri: ResolveBaseUri( + servers: s_DeleteIdentityAttachmentServers, + 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); + PrepareDeleteIdentityAttachmentRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + uuid: uuid!, + attachmentId: attachmentId!); + + 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: "DeleteIdentityAttachment", + methodName: "DeleteIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments/{attachmentId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "DeleteIdentityAttachment", + methodName: "DeleteIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments/{attachmentId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "DeleteIdentityAttachment", + methodName: "DeleteIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments/{attachmentId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessDeleteIdentityAttachmentResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteIdentityAttachment", + methodName: "DeleteIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments/{attachmentId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteIdentityAttachment", + methodName: "DeleteIdentityAttachmentAsync", + pathTemplate: "$\"/identity/{uuid}/attachments/{attachmentId}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Identity or attachment 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); + ProcessDeleteIdentityAttachmentResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204.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.IdentityDeleteIdentityAttachmentResponse204.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.JsonConverters.IdentityEmbeddingsItemsModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModality.g.cs new file mode 100644 index 0000000..18e5006 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityEmbeddingsItemsModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityEmbeddingsItemsModality 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.IdentityEmbeddingsItemsModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityEmbeddingsItemsModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityEmbeddingsItemsModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityEmbeddingsItemsModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentityEmbeddingsItemsModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullable.g.cs new file mode 100644 index 0000000..1c8454b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityEmbeddingsItemsModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityEmbeddingsItemsModality? 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.IdentityEmbeddingsItemsModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityEmbeddingsItemsModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityEmbeddingsItemsModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityEmbeddingsItemsModality? 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.IdentityEmbeddingsItemsModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityType.g.cs new file mode 100644 index 0000000..a55259d --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityIdentityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityIdentityType 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.IdentityIdentityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityIdentityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityIdentityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityIdentityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentityIdentityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityTypeNullable.g.cs new file mode 100644 index 0000000..e12ea53 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityIdentityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityIdentityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityIdentityType? 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.IdentityIdentityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityIdentityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityIdentityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityIdentityType? 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.IdentityIdentityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs new file mode 100644 index 0000000..f51c745 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality 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.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullable.g.cs new file mode 100644 index 0000000..0b65a73 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? 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.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? 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.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibility.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibility.g.cs new file mode 100644 index 0000000..be1434f --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibility.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityVisibility 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.IdentityVisibilityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityVisibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityVisibility); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityVisibility value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentityVisibilityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibilityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibilityNullable.g.cs new file mode 100644 index 0000000..874f833 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityVisibilityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityVisibility? 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.IdentityVisibilityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityVisibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityVisibility?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityVisibility? 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.IdentityVisibilityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs index f51b73d..fd71b53 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs @@ -225,6 +225,22 @@ namespace ResembleAI 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), @@ -299,7 +315,9 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.JsonSerializerContextTypes))] + [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.Text.Json.JsonElement?))] [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")] @@ -562,6 +580,18 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityCreateIdentityRequest), TypeInfoPropertyName = "IdentityCreateIdentityRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityCreateIdentityResponse200))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityDeleteIdentityResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality), TypeInfoPropertyName = "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityIdentityType), TypeInfoPropertyName = "IdentityIdentityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityVisibility), TypeInfoPropertyName = "IdentityVisibility2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityAttachment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityEmbeddingsItemsModality), TypeInfoPropertyName = "IdentityEmbeddingsItemsModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityEmbeddingsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityProjectsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Identity))] + [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(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality), TypeInfoPropertyName = "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality), TypeInfoPropertyName = "IdentitySearchPostResponsesContentApplicationJsonSchemaModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem))] @@ -726,6 +756,7 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.RunIntelligenceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AskDetectIntelligenceQuestionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.CreateIdentityAttachmentRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SearchIdentitiesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.ApplyWatermarkRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectWatermarkRequest))] @@ -749,6 +780,406 @@ namespace ResembleAI [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.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(double?))] + [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.StreamPostRequestBodyContentApplicationJsonSchemaPrecision?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaPrecision2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate?), TypeInfoPropertyName = "NullableStreamPostRequestBodyContentApplicationJsonSchemaSampleRate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [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.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine?), TypeInfoPropertyName = "NullableAudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngine2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine?), TypeInfoPropertyName = "NullableAudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngine2")] + [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.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariables2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaTurnMode?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaTurnMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsPostRequestBodyContentApplicationJsonSchemaSearchMode?), TypeInfoPropertyName = "NullableAgentsPostRequestBodyContentApplicationJsonSchemaSearchMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode?), TypeInfoPropertyName = "NullableAgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType?), TypeInfoPropertyName = "NullableAgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType?), TypeInfoPropertyName = "NullableAgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider?), TypeInfoPropertyName = "NullablePhoneNumbersPostRequestBodyContentApplicationJsonSchemaProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetParametersSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetParametersSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableKnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] + [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")] + 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, + Converters = new global::System.Type[] + { + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter), + + typeof(global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter), + + typeof(global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter), + + 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.DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter), + + 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.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectBatchStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter), + + 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.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter), + + typeof(global::ResembleAI.JsonConverters.CustomPronunciationStatusNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter), + + typeof(global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter), + + typeof(global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter), + + typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), + + typeof(global::ResembleAI.JsonConverters.UnixTimestampJsonConverter), + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsAudioSourceTracingObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectGetResponsesContentApplicationJsonSchemaItemsItemsIntelligenceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemModality2")] + [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.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceObject2")] + [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.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescription?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescription2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectUuidGetResponsesContentApplicationJsonSchemaItemAudioSourceTracingObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfDetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectBatchStatus?), TypeInfoPropertyName = "NullableDetectBatchStatus2")] + [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.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetricsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableWatermarkDetectPostParametersPrefer2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetricsObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark?), TypeInfoPropertyName = "NullableWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.OneOf?), TypeInfoPropertyName = "NullableOneOfWatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsObject2")] + [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::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -777,6 +1208,9 @@ 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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -793,7 +1227,201 @@ 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))] + 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 = global::System.Text.Json.Serialization.Metadata.JsonTypeInfoResolver.Combine( + SourceGenerationContextChunk0.Default, + + SourceGenerationContextChunk1.Default + ); + + 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); + } + + 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, + }; + options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormatNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaPrecisionNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.StreamPostRequestBodyContentApplicationJsonSchemaSampleRateNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsEnhancementEngineNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostRequestBodyContentMultipartFormDataSchemaEnhancementEngineNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaAsrUserInputAudioFormatNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaTurnModeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsUuidPatchRequestBodyContentApplicationJsonSchemaSearchModeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidToolsPostRequestBodyContentApplicationJsonSchemaToolTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsAgentUuidWebhooksPostRequestBodyContentApplicationJsonSchemaWebhookTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.PhoneNumbersPostRequestBodyContentApplicationJsonSchemaProviderNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetParametersSourceTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsSourceTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsPostRequestBodyContentApplicationJsonSchemaSourceTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemSourceTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.KnowledgeItemsUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectGetResponsesContentApplicationJsonSchemaItemsItemsModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessmentNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectBatchStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectBatchStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostRequestBodyContentApplicationJsonSchemaMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencePostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionFraudTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsDescriptionLivenessAssessmentNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesGetResponsesContentApplicationJsonSchemaItemsItemsMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionFraudTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemDescriptionLivenessAssessmentNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IntelligencesUuidGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectsUuidIntelligenceQuestionUuidGetResponsesContentApplicationJsonSchemaItemStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryVisibilityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryVisibilityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityIdentityTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityIdentityTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityVisibilityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityVisibilityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostParametersPreferNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostParametersPreferNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.PronunciationsGetParametersStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.CustomPronunciationStatusJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.CustomPronunciationStatusNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeakerNullableJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.AgentsPostRequestBodyContentApplicationJsonSchemaDynamicVariablesJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); + + return options; + } } } \ 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 5ece016..7c3e6ab 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs @@ -1076,751 +1076,803 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type262 { get; set; } + public global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? Type262 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type263 { get; set; } + public global::ResembleAI.IdentityIdentityType? Type263 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type264 { get; set; } + public global::ResembleAI.IdentityVisibility? Type264 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type265 { get; set; } + public global::ResembleAI.IdentityAttachment? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type266 { get; set; } + public global::ResembleAI.IdentityEmbeddingsItemsModality? Type266 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type267 { get; set; } + public global::ResembleAI.IdentityEmbeddingsItems? Type267 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Type268 { get; set; } + public global::ResembleAI.IdentityProjectsItems? Type268 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? Type269 { get; set; } + public global::ResembleAI.Identity? Type269 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyWatermarkResponse200? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type273 { get; set; } + public global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204? Type273 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type274 { get; set; } + public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type274 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? Type275 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type275 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type276 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type276 { get; set; } /// /// /// - public global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? Type277 { get; set; } + public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type277 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type278 { get; set; } + public global::System.Collections.Generic.Dictionary? Type278 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? Type279 { get; set; } + public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type279 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? Type280 { get; set; } + public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Type280 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? Type281 { get; set; } + public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? Type281 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type282 { get; set; } + public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? Type282 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectWatermarkResponse200? Type283 { get; set; } + public global::ResembleAI.OneOf? Type283 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type284 { get; set; } + public global::ResembleAI.WatermarkApplyWatermarkResponse200? Type284 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? Type285 { get; set; } + public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type286 { get; set; } + public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type286 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type287 { get; set; } + public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? Type287 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? Type288 { get; set; } + public global::ResembleAI.OneOf? Type288 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type289 { get; set; } + public global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? Type289 { get; set; } /// /// /// - public global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? Type290 { get; set; } + public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type290 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type291 { get; set; } + public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? Type291 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type292 { get; set; } + public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? Type292 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type293 { get; set; } + public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? Type293 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type294 { get; set; } + public global::ResembleAI.OneOf? Type294 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type295 { get; set; } + public global::ResembleAI.WatermarkDetectWatermarkResponse200? Type295 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type296 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type296 { get; set; } /// /// /// - public global::ResembleAI.VoicesListVoicesResponse200? Type297 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::System.Collections.Generic.Dictionary? Type298 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type299 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type299 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type300 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? Type300 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type301 { get; set; } + public global::ResembleAI.OneOf? Type301 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type302 { get; set; } + public global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? Type302 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type303 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type303 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type304 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type304 { get; set; } /// /// /// - public global::ResembleAI.VoicesCreateVoiceResponse200? Type305 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type305 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type306 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type306 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type307 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type307 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type308 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type308 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type309 { get; set; } + public global::ResembleAI.VoicesListVoicesResponse200? Type309 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type311 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type311 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetVoiceResponse200? Type312 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type312 { get; set; } /// /// /// - public global::ResembleAI.VoicesDeleteVoiceResponse200? Type313 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type313 { get; set; } /// /// /// - public global::ResembleAI.VoicesBuildVoiceResponse200? Type314 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type314 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type315 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type315 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type316 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::ResembleAI.VoicesCreateVoiceResponse200? Type317 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type318 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type318 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type319 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type319 { get; set; } /// /// /// - public global::ResembleAI.RecordingsListRecordingsResponse200? Type320 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type320 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type321 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type321 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type322 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type322 { get; set; } /// /// /// - public global::ResembleAI.RecordingsCreateRecordingResponse200? Type323 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type323 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type324 { get; set; } + public global::ResembleAI.VoicesGetVoiceResponse200? Type324 { get; set; } /// /// /// - public global::ResembleAI.RecordingsGetRecordingResponse200? Type325 { get; set; } + public global::ResembleAI.VoicesDeleteVoiceResponse200? Type325 { get; set; } /// /// /// - public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type326 { get; set; } + public global::ResembleAI.VoicesBuildVoiceResponse200? Type326 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type327 { get; set; } + public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type327 { get; set; } /// /// /// - public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type328 { get; set; } + public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type328 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type329 { get; set; } + public global::System.Collections.Generic.IList? Type329 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type330 { get; set; } + public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type331 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type332 { get; set; } + public global::ResembleAI.RecordingsListRecordingsResponse200? Type332 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type333 { get; set; } + public global::System.Collections.Generic.IList? Type333 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type334 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type334 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type335 { get; set; } + public global::ResembleAI.RecordingsCreateRecordingResponse200? Type335 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type336 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type336 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsGetParametersStatus? Type337 { get; set; } + public global::ResembleAI.RecordingsGetRecordingResponse200? Type337 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationStatus? Type338 { get; set; } + public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type338 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciation? Type339 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type339 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type340 { get; set; } + public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type341 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type342 { get; set; } + public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type342 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type343 { get; set; } + public global::System.Collections.Generic.IList? Type343 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type344 { get; set; } + public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type344 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type345 { get; set; } + public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type345 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type346 { get; set; } + public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type346 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type347 { get; set; } + public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type347 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type348 { get; set; } + public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type348 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type349 { get; set; } + public global::ResembleAI.PronunciationsGetParametersStatus? Type349 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type350 { get; set; } + public global::ResembleAI.CustomPronunciationStatus? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::ResembleAI.CustomPronunciation? Type351 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type352 { get; set; } + public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type352 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type353 { get; set; } + public global::System.Collections.Generic.IList? Type353 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type354 { get; set; } + public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type354 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type355 { get; set; } + public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type355 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type356 { get; set; } + public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type356 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type358 { get; set; } + public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type358 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type359 { get; set; } + public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type359 { get; set; } /// /// /// - public global::ResembleAI.ProjectsListProjectsResponse200? Type360 { get; set; } + public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type360 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type361 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type361 { get; set; } /// /// /// - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type362 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type362 { get; set; } /// /// /// - public global::ResembleAI.ProjectsCreateProjectResponse200? Type363 { get; set; } + public global::System.Collections.Generic.IList? Type363 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type364 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type364 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetProjectResponse200? Type365 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type365 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type366 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type366 { get; set; } /// /// /// - public global::ResembleAI.ProjectsUpdateProjectResponse200? Type367 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type367 { get; set; } /// /// /// - public global::ResembleAI.ProjectsDeleteProjectResponse200? Type368 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type368 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type369 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type369 { get; set; } /// /// /// - public global::ResembleAI.ClipsListClipsResponse200? Type370 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type371 { get; set; } + public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type371 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type372 { get; set; } + public global::ResembleAI.ProjectsListProjectsResponse200? Type372 { get; set; } /// /// /// - public global::ResembleAI.ClipsGetClipResponse200? Type373 { get; set; } + public global::System.Collections.Generic.IList? Type373 { get; set; } /// /// /// - public global::ResembleAI.ClipsDeleteClipResponse200? Type374 { get; set; } + public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type374 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type375 { get; set; } + public global::ResembleAI.ProjectsCreateProjectResponse200? Type375 { get; set; } /// /// /// - public global::ResembleAI.ClipsUpdateClipResponse200? Type376 { get; set; } + public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type376 { get; set; } /// /// /// - public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type377 { get; set; } + public global::ResembleAI.ProjectsGetProjectResponse200? Type377 { get; set; } /// /// /// - public global::ResembleAI.AccountGetAccountResponse200? Type378 { get; set; } + public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type378 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type379 { get; set; } + public global::ResembleAI.ProjectsUpdateProjectResponse200? Type379 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamsResponse200? Type380 { get; set; } + public global::ResembleAI.ProjectsDeleteProjectResponse200? Type380 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type381 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type381 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type382 { get; set; } + public global::ResembleAI.ClipsListClipsResponse200? Type382 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamResponse200? Type383 { get; set; } + public global::System.Collections.Generic.IList? Type383 { get; set; } /// /// /// - public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type384 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type384 { get; set; } /// /// /// - public global::ResembleAI.AccountGetBillingUsageResponse200? Type385 { get; set; } + public global::ResembleAI.ClipsGetClipResponse200? Type385 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type386 { get; set; } + public global::ResembleAI.ClipsDeleteClipResponse200? Type386 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicesResponse200? Type387 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type387 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type388 { get; set; } + public global::ResembleAI.ClipsUpdateClipResponse200? Type388 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type389 { get; set; } + public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type389 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type390 { get; set; } + public global::ResembleAI.AccountGetAccountResponse200? Type390 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type391 { get; set; } + public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type391 { get; set; } /// /// /// - public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type392 { get; set; } + public global::ResembleAI.AccountGetTeamsResponse200? Type392 { get; set; } /// /// /// - public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type393 { get; set; } + public global::System.Collections.Generic.IList? Type393 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type394 { get; set; } + public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type394 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type395 { get; set; } + public global::ResembleAI.AccountGetTeamResponse200? Type395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type396 { get; set; } + public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type396 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type397 { get; set; } + public global::ResembleAI.AccountGetBillingUsageResponse200? Type397 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type398 { get; set; } + public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type398 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type399 { get; set; } + public global::ResembleAI.DuetsListDuetVoicesResponse200? Type399 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type400 { get; set; } + public global::System.Collections.Generic.IList? Type400 { get; set; } /// /// /// - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type401 { get; set; } + public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type401 { get; set; } /// /// /// - public global::ResembleAI.DuetsGenerateDuetResponse200? Type402 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type402 { get; set; } /// /// /// - public global::ResembleAI.SynthesizeRequest? Type403 { get; set; } + public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type403 { get; set; } /// /// /// - public global::ResembleAI.StreamSynthesizeRequest? Type404 { get; set; } + public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type404 { get; set; } /// /// /// - public global::ResembleAI.CreateTranscriptRequest? Type405 { get; set; } + public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type405 { get; set; } /// /// /// - public global::ResembleAI.AskTranscriptQuestionRequest? Type406 { get; set; } + public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type406 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequest? Type407 { get; set; } + public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type407 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentRequest? Type408 { get; set; } + public global::System.Collections.Generic.IList? Type408 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type409 { get; set; } + public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type409 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentRequest? Type410 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type410 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type411 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type411 { get; set; } /// /// /// - public global::ResembleAI.DispatchAgentRequest? Type412 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type412 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentToolRequest? Type413 { get; set; } + public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type413 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentToolRequest? Type414 { get; set; } + public global::ResembleAI.DuetsGenerateDuetResponse200? Type414 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentWebhookRequest? Type415 { get; set; } + public global::ResembleAI.SynthesizeRequest? Type415 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentWebhookRequest? Type416 { get; set; } + public global::ResembleAI.StreamSynthesizeRequest? Type416 { get; set; } /// /// /// - public global::ResembleAI.CreatePhoneNumberRequest? Type417 { get; set; } + public global::ResembleAI.CreateTranscriptRequest? Type417 { get; set; } /// /// /// - public global::ResembleAI.CreateKnowledgeItemRequest? Type418 { get; set; } + public global::ResembleAI.AskTranscriptQuestionRequest? Type418 { get; set; } /// /// /// - public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type419 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequest? Type419 { get; set; } /// /// /// - public global::ResembleAI.CreateSecureUploadRequest? Type420 { get; set; } + public global::ResembleAI.CreateAgentRequest? Type420 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectionRequest? Type421 { get; set; } + public global::System.Collections.Generic.IList? Type421 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectBatchRequest? Type422 { get; set; } + public global::ResembleAI.UpdateAgentRequest? Type422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type423 { get; set; } + public global::System.Collections.Generic.IList? Type423 { get; set; } /// /// /// - public global::ResembleAI.RunIntelligenceRequest? Type424 { get; set; } + public global::ResembleAI.DispatchAgentRequest? Type424 { get; set; } /// /// /// - public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type425 { get; set; } + public global::ResembleAI.CreateAgentToolRequest? Type425 { get; set; } /// /// /// - public global::ResembleAI.SearchIdentitiesRequest? Type426 { get; set; } + public global::ResembleAI.UpdateAgentToolRequest? Type426 { get; set; } /// /// /// - public global::ResembleAI.ApplyWatermarkRequest? Type427 { get; set; } + public global::ResembleAI.CreateAgentWebhookRequest? Type427 { get; set; } /// /// /// - public global::ResembleAI.DetectWatermarkRequest? Type428 { get; set; } + public global::ResembleAI.UpdateAgentWebhookRequest? Type428 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceRequest? Type429 { get; set; } + public global::ResembleAI.CreatePhoneNumberRequest? Type429 { get; set; } /// /// /// - public global::ResembleAI.BuildVoiceRequest? Type430 { get; set; } + public global::ResembleAI.CreateKnowledgeItemRequest? Type430 { get; set; } /// /// /// - public global::ResembleAI.GenerateVoiceDesignRequest? Type431 { get; set; } + public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type431 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceFromCandidateRequest? Type432 { get; set; } + public global::ResembleAI.CreateSecureUploadRequest? Type432 { get; set; } /// /// /// - public global::ResembleAI.CreateRecordingRequest? Type433 { get; set; } + public global::ResembleAI.CreateDetectionRequest? Type433 { get; set; } /// /// /// - public global::ResembleAI.UpdateRecordingRequest? Type434 { get; set; } + public global::ResembleAI.CreateDetectBatchRequest? Type434 { get; set; } /// /// /// - public global::ResembleAI.CreateTermSubstitutionRequest? Type435 { get; set; } + public global::System.Collections.Generic.IList? Type435 { get; set; } /// /// /// - public global::ResembleAI.CreatePronunciationRequest? Type436 { get; set; } + public global::ResembleAI.RunIntelligenceRequest? Type436 { get; set; } /// /// /// - public global::ResembleAI.BulkCreatePronunciationsRequest? Type437 { get; set; } + public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type437 { get; set; } /// /// /// - public global::ResembleAI.UpdatePronunciationRequest? Type438 { get; set; } + public global::ResembleAI.CreateIdentityAttachmentRequest? Type438 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type439 { get; set; } + public global::ResembleAI.SearchIdentitiesRequest? Type439 { get; set; } /// /// /// - public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type440 { get; set; } + public global::ResembleAI.ApplyWatermarkRequest? Type440 { get; set; } /// /// /// - public global::ResembleAI.CreateProjectRequest? Type441 { get; set; } + public global::ResembleAI.DetectWatermarkRequest? Type441 { get; set; } /// /// /// - public global::ResembleAI.UpdateProjectRequest? Type442 { get; set; } + public global::ResembleAI.CreateVoiceRequest? Type442 { get; set; } /// /// /// - public global::ResembleAI.UpdateClipRequest? Type443 { get; set; } + public global::ResembleAI.BuildVoiceRequest? Type443 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoiceRequest? Type444 { get; set; } + public global::ResembleAI.GenerateVoiceDesignRequest? Type444 { get; set; } /// /// /// - public global::ResembleAI.UpdateDuetVoiceRequest? Type445 { get; set; } + public global::ResembleAI.CreateVoiceFromCandidateRequest? Type445 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoicePairRequest? Type446 { get; set; } + public global::ResembleAI.CreateRecordingRequest? Type446 { get; set; } /// /// /// - public global::ResembleAI.GenerateDuetRequest? Type447 { get; set; } + public global::ResembleAI.UpdateRecordingRequest? Type447 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type448 { get; set; } + public global::ResembleAI.CreateTermSubstitutionRequest? Type448 { get; set; } + /// + /// + /// + public global::ResembleAI.CreatePronunciationRequest? Type449 { get; set; } + /// + /// + /// + public global::ResembleAI.BulkCreatePronunciationsRequest? Type450 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdatePronunciationRequest? Type451 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type452 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type453 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateProjectRequest? Type454 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateProjectRequest? Type455 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateClipRequest? Type456 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoiceRequest? Type457 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateDuetVoiceRequest? Type458 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoicePairRequest? Type459 { get; set; } + /// + /// + /// + public global::ResembleAI.GenerateDuetRequest? Type460 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type461 { get; set; } /// /// @@ -1937,66 +1989,78 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType29 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType30 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.Json.g.cs new file mode 100644 index 0000000..360f4a9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class CreateIdentityAttachmentRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.CreateIdentityAttachmentRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.CreateIdentityAttachmentRequest), + jsonSerializerContext) as global::ResembleAI.CreateIdentityAttachmentRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.CreateIdentityAttachmentRequest? 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.CreateIdentityAttachmentRequest? 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.CreateIdentityAttachmentRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateIdentityAttachmentRequest; + } + + /// + /// Deserializes a 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.CreateIdentityAttachmentRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.g.cs new file mode 100644 index 0000000..e4dcf31 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityAttachmentRequest.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class CreateIdentityAttachmentRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modality")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality Modality { get; set; } + + /// + /// The media file to attach + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + [global::System.Text.Json.Serialization.JsonRequired] + public required byte[] File { get; set; } + + /// + /// The media file to attach + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Filename { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.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 media file to attach + /// + /// + /// The media file to attach + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateIdentityAttachmentRequest( + global::ResembleAI.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality modality, + byte[] file, + string filename) + { + this.Modality = modality; + this.File = file ?? throw new global::System.ArgumentNullException(nameof(file)); + this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateIdentityAttachmentRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.Json.g.cs new file mode 100644 index 0000000..4673653 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class Identity + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.Identity? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.Identity), + jsonSerializerContext) as global::ResembleAI.Identity; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.Identity? 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.Identity? 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.Identity), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.Identity; + } + + /// + /// Deserializes a 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.Identity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.g.cs new file mode 100644 index 0000000..5b9621a --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.Identity.g.cs @@ -0,0 +1,165 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// A multimodal identity profile + /// + public sealed partial class Identity + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + public string? Uuid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("identity_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentityIdentityTypeJsonConverter))] + public global::ResembleAI.IdentityIdentityType? IdentityType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentityVisibilityJsonConverter))] + public global::ResembleAI.IdentityVisibility? Visibility { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("notes")] + public string? Notes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice_profile_id")] + public string? VoiceProfileId { 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; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project_count")] + public int? ProjectCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice_samples")] + public global::System.Collections.Generic.IList? VoiceSamples { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("face_photos")] + public global::System.Collections.Generic.IList? FacePhotos { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reference_videos")] + public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } + + /// + /// Per-modality embedding processing status + /// + [global::System.Text.Json.Serialization.JsonPropertyName("embeddings")] + public global::System.Collections.Generic.IList? Embeddings { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("projects")] + public global::System.Collections.Generic.IList? Projects { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// Per-modality embedding processing status + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public Identity( + string? uuid, + string? name, + global::ResembleAI.IdentityIdentityType? identityType, + global::ResembleAI.IdentityVisibility? visibility, + string? notes, + string? voiceProfileId, + global::System.DateTime? createdAt, + global::System.DateTime? updatedAt, + int? projectCount, + global::System.Collections.Generic.IList? voiceSamples, + global::System.Collections.Generic.IList? facePhotos, + global::System.Collections.Generic.IList? referenceVideos, + global::System.Collections.Generic.IList? embeddings, + global::System.Collections.Generic.IList? projects) + { + this.Uuid = uuid; + this.Name = name; + this.IdentityType = identityType; + this.Visibility = visibility; + this.Notes = notes; + this.VoiceProfileId = voiceProfileId; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + this.ProjectCount = projectCount; + this.VoiceSamples = voiceSamples; + this.FacePhotos = facePhotos; + this.ReferenceVideos = referenceVideos; + this.Embeddings = embeddings; + this.Projects = projects; + } + + /// + /// Initializes a new instance of the class. + /// + public Identity() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.Json.g.cs new file mode 100644 index 0000000..4e20559 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityAttachment + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityAttachment? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityAttachment), + jsonSerializerContext) as global::ResembleAI.IdentityAttachment; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityAttachment? 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.IdentityAttachment? 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.IdentityAttachment), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityAttachment; + } + + /// + /// Deserializes a 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.IdentityAttachment.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.g.cs new file mode 100644 index 0000000..2164be2 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityAttachment.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// A reference media file attached to an identity + /// + public sealed partial class IdentityAttachment + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("byte_size")] + public int? ByteSize { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content_type")] + public string? ContentType { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.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 IdentityAttachment( + int? id, + string? filename, + int? byteSize, + string? contentType) + { + this.Id = id; + this.Filename = filename; + this.ByteSize = byteSize; + this.ContentType = contentType; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentityAttachment() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.Json.g.cs new file mode 100644 index 0000000..0004b94 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityDeleteIdentityAttachmentResponse204 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityDeleteIdentityAttachmentResponse204? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204), + jsonSerializerContext) as global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204? 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.IdentityDeleteIdentityAttachmentResponse204? 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.IdentityDeleteIdentityAttachmentResponse204), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityDeleteIdentityAttachmentResponse204; + } + + /// + /// Deserializes a 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.IdentityDeleteIdentityAttachmentResponse204.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.g.cs new file mode 100644 index 0000000..2417e83 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityAttachmentResponse204.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Empty response body + /// + public sealed partial class IdentityDeleteIdentityAttachmentResponse204 + { + + /// + /// Additional properties that are not explicitly defined 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.IdentityEmbeddingsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItems.Json.g.cs new file mode 100644 index 0000000..5bbd7df --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityEmbeddingsItems + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityEmbeddingsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityEmbeddingsItems), + jsonSerializerContext) as global::ResembleAI.IdentityEmbeddingsItems; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityEmbeddingsItems? 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.IdentityEmbeddingsItems? 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.IdentityEmbeddingsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityEmbeddingsItems; + } + + /// + /// Deserializes a 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.IdentityEmbeddingsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItems.g.cs new file mode 100644 index 0000000..1334dae --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItems.g.cs @@ -0,0 +1,72 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class IdentityEmbeddingsItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modality")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentityEmbeddingsItemsModalityJsonConverter))] + public global::ResembleAI.IdentityEmbeddingsItemsModality? Modality { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + public string? Status { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("attachment_count")] + public int? AttachmentCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("computed_at")] + public global::System.DateTime? ComputedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.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 IdentityEmbeddingsItems( + global::ResembleAI.IdentityEmbeddingsItemsModality? modality, + string? status, + int? attachmentCount, + global::System.DateTime? computedAt) + { + this.Modality = modality; + this.Status = status; + this.AttachmentCount = attachmentCount; + this.ComputedAt = computedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentityEmbeddingsItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItemsModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItemsModality.g.cs new file mode 100644 index 0000000..08912fc --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityEmbeddingsItemsModality.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentityEmbeddingsItemsModality + { + /// + /// + /// + Face, + /// + /// + /// + Video, + /// + /// + /// + Voice, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentityEmbeddingsItemsModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentityEmbeddingsItemsModality value) + { + return value switch + { + IdentityEmbeddingsItemsModality.Face => "face", + IdentityEmbeddingsItemsModality.Video => "video", + IdentityEmbeddingsItemsModality.Voice => "voice", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentityEmbeddingsItemsModality? ToEnum(string value) + { + return value switch + { + "face" => IdentityEmbeddingsItemsModality.Face, + "video" => IdentityEmbeddingsItemsModality.Video, + "voice" => IdentityEmbeddingsItemsModality.Voice, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityIdentityType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityIdentityType.g.cs new file mode 100644 index 0000000..a49fc1d --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityIdentityType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentityIdentityType + { + /// + /// + /// + Brand, + /// + /// + /// + Person, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentityIdentityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentityIdentityType value) + { + return value switch + { + IdentityIdentityType.Brand => "brand", + IdentityIdentityType.Person => "person", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentityIdentityType? ToEnum(string value) + { + return value switch + { + "brand" => IdentityIdentityType.Brand, + "person" => IdentityIdentityType.Person, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.Json.g.cs new file mode 100644 index 0000000..364aa21 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityProjectsItems + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityProjectsItems? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityProjectsItems), + jsonSerializerContext) as global::ResembleAI.IdentityProjectsItems; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityProjectsItems? 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.IdentityProjectsItems? 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.IdentityProjectsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityProjectsItems; + } + + /// + /// Deserializes a 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.IdentityProjectsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.g.cs new file mode 100644 index 0000000..5a9894e --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityProjectsItems.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class IdentityProjectsItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + public string? Uuid { get; set; } + + /// + /// + /// + [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. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IdentityProjectsItems( + string? uuid, + string? name) + { + this.Uuid = uuid; + this.Name = name; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentityProjectsItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs new file mode 100644 index 0000000..cb00585 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality + { + /// + /// + /// + Face, + /// + /// + /// + Video, + /// + /// + /// + Voice, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality value) + { + return value switch + { + IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.Face => "face", + IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.Video => "video", + IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.Voice => "voice", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality? ToEnum(string value) + { + return value switch + { + "face" => IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.Face, + "video" => IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.Video, + "voice" => IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality.Voice, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityVisibility.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityVisibility.g.cs new file mode 100644 index 0000000..3351fdf --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityVisibility.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentityVisibility + { + /// + /// + /// + Global, + /// + /// + /// + Team, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentityVisibilityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentityVisibility value) + { + return value switch + { + IdentityVisibility.Global => "global", + IdentityVisibility.Team => "team", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentityVisibility? ToEnum(string value) + { + return value switch + { + "global" => IdentityVisibility.Global, + "team" => IdentityVisibility.Team, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/openapi.yaml b/src/libs/ResembleAI/openapi.yaml index c2fac6e..a443128 100644 --- a/src/libs/ResembleAI/openapi.yaml +++ b/src/libs/ResembleAI/openapi.yaml @@ -3795,6 +3795,170 @@ } ] }, + "/identity/{uuid}/attachments": { + "post": { + "operationId": "create-identity-attachment", + "summary": "Add reference media", + "description": "Attach a reference media file (voice sample, face photo, or reference video) to an identity. The modality's embedding recomputes asynchronously; the media becomes searchable once its embedding status is ready.\n", + "tags": [ + "identity" + ], + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "Media attached; returns the updated identity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Identity" + } + } + } + }, + "400": { + "description": "Missing or invalid modality, or missing file", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Identity not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "422": { + "description": "Face photo limit reached (a person identity accepts at most 5 face photos)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "modality": { + "$ref": "#/components/schemas/IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" + }, + "file": { + "type": "string", + "format": "binary", + "description": "The media file to attach" + } + }, + "required": [ + "modality", + "file" + ] + } + } + } + } + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/identity/{uuid}/attachments/{attachment_id}": { + "delete": { + "operationId": "delete-identity-attachment", + "summary": "Remove reference media", + "description": "Detach a reference media file from an identity. The affected modality's embedding recomputes without the removed file.\n", + "tags": [ + "identity" + ], + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "attachment_id", + "in": "path", + "description": "The id of an entry in the identity's voice_samples, face_photos, or reference_videos array", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "API token from https://app.resemble.ai/account/api", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Media removed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Identity_deleteIdentityAttachment_Response_204" + } + } + } + }, + "404": { + "description": "Identity or attachment not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, "/identity/search": { "post": { "operationId": "search-identities", @@ -10391,6 +10555,172 @@ }, "title": "Identity_deleteIdentity_Response_200" }, + "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality": { + "type": "string", + "enum": [ + "voice", + "face", + "video" + ], + "title": "IdentityUuidAttachmentsPostRequestBodyContentMultipartFormDataSchemaModality" + }, + "IdentityIdentityType": { + "type": "string", + "enum": [ + "person", + "brand" + ], + "title": "IdentityIdentityType" + }, + "IdentityVisibility": { + "type": "string", + "enum": [ + "team", + "global" + ], + "title": "IdentityVisibility" + }, + "IdentityAttachment": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "filename": { + "type": "string" + }, + "byte_size": { + "type": "integer" + }, + "content_type": { + "type": "string" + } + }, + "description": "A reference media file attached to an identity", + "title": "IdentityAttachment" + }, + "IdentityEmbeddingsItemsModality": { + "type": "string", + "enum": [ + "voice", + "face", + "video" + ], + "title": "IdentityEmbeddingsItemsModality" + }, + "IdentityEmbeddingsItems": { + "type": "object", + "properties": { + "modality": { + "$ref": "#/components/schemas/IdentityEmbeddingsItemsModality" + }, + "status": { + "type": "string" + }, + "attachment_count": { + "type": "integer" + }, + "computed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" + } + }, + "title": "IdentityEmbeddingsItems" + }, + "IdentityProjectsItems": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "title": "IdentityProjectsItems" + }, + "Identity": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "identity_type": { + "$ref": "#/components/schemas/IdentityIdentityType" + }, + "visibility": { + "$ref": "#/components/schemas/IdentityVisibility" + }, + "notes": { + "type": [ + "string", + "null" + ] + }, + "voice_profile_id": { + "type": [ + "string", + "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" + } + } + }, + "description": "A multimodal identity profile", + "title": "Identity" + }, + "Identity_deleteIdentityAttachment_Response_204": { + "type": "object", + "properties": {}, + "description": "Empty response body", + "title": "Identity_deleteIdentityAttachment_Response_204" + }, "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality": { "type": "string", "enum": [