From aebcfcb89537180d5859201f5d28ceca6acc81a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 22 Jul 2026 03:21:29 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...mbleAI.IIdentityClient.CreateIdentity.g.cs | 14 +- ...mbleAI.IIdentityClient.DeleteIdentity.g.cs | 32 ++ ...mbleAI.IIdentityClient.ListIdentities.g.cs | 24 +- ...leAI.IIdentityClient.SearchIdentities.g.cs | 24 +- ....ITextToSpeechClient.StreamSynthesize.g.cs | 12 +- ...mbleAI.ITextToSpeechClient.Synthesize.g.cs | 10 +- ...embleAI.IdentityClient.CreateIdentity.g.cs | 61 ++- ...embleAI.IdentityClient.DeleteIdentity.g.cs | 473 ++++++++++++++++++ ...embleAI.IdentityClient.ListIdentities.g.cs | 52 +- ...bleAI.IdentityClient.SearchIdentities.g.cs | 103 +++- ...verters.IdentityCreateIdentityRequest.g.cs | 155 ++++++ ...nJsonSchemaOneOf1IdentityIdentityType.g.cs | 53 ++ ...emaOneOf1IdentityIdentityTypeNullable.g.cs | 60 +++ ...ionJsonSchemaOneOf1IdentityVisibility.g.cs | 53 ++ ...chemaOneOf1IdentityVisibilityNullable.g.cs | 60 +++ ...yContentApplicationJsonSchemaModality.g.cs | 53 ++ ...ApplicationJsonSchemaModalityNullable.g.cs | 60 +++ ...sContentApplicationJsonSchemaModality.g.cs | 53 ++ ...ApplicationJsonSchemaModalityNullable.g.cs | 60 +++ ...onverters.IdentitySummaryIdentityType.g.cs | 53 ++ ...s.IdentitySummaryIdentityTypeNullable.g.cs | 60 +++ ...nConverters.IdentitySummaryVisibility.g.cs | 53 ++ ...ers.IdentitySummaryVisibilityNullable.g.cs | 60 +++ .../ResembleAI.JsonSerializerContext.g.cs | 50 +- ...ResembleAI.JsonSerializerContextTypes.g.cs | 456 +++++++++-------- ...s.IdentityCreateIdentityRequest.Json.g.cs} | 26 +- ....Models.IdentityCreateIdentityRequest.g.cs | 295 +++++++++++ ....IdentityCreateIdentityRequest0.Json.g.cs} | 26 +- ...Models.IdentityCreateIdentityRequest0.g.cs | 69 +++ ...s.IdentityCreateIdentityRequest1.Json.g.cs | 141 ++++++ ...odels.IdentityCreateIdentityRequest1.g.cs} | 29 +- ...els.IdentityCreateIdentityResponse200.g.cs | 16 +- ...dentityDeleteIdentityResponse200.Json.g.cs | 141 ++++++ ...els.IdentityDeleteIdentityResponse200.g.cs | 44 ++ ...ontentApplicationJsonSchemaItemsItems.g.cs | 19 - ...els.IdentityListIdentitiesResponse200.g.cs | 40 +- ...licationJsonSchemaOneOf1Identity.Json.g.cs | 141 ++++++ ...ntApplicationJsonSchemaOneOf1Identity.g.cs | 87 ++++ ...nJsonSchemaOneOf1IdentityIdentityType.g.cs | 51 ++ ...ionJsonSchemaOneOf1IdentityVisibility.g.cs | 51 ++ ...s.IdentitySearchIdentitiesResponse200.g.cs | 22 +- ...ySearchIdentitiesResponse200Item.Json.g.cs | 141 ++++++ ...ntitySearchIdentitiesResponse200Item.g.cs} | 4 +- ...yContentApplicationJsonSchemaModality.g.cs | 51 ++ ...ontentApplicationJsonSchemaItem.Json.g.cs} | 26 +- ...onsesContentApplicationJsonSchemaItem.g.cs | 62 +++ ...tentApplicationJsonSchemaMatchesItems.g.cs | 19 - ...sContentApplicationJsonSchemaModality.g.cs | 51 ++ ...sembleAI.Models.IdentitySummary.Json.g.cs} | 26 +- .../ResembleAI.Models.IdentitySummary.g.cs | 129 +++++ ...AI.Models.IdentitySummaryIdentityType.g.cs | 51 ++ ...leAI.Models.IdentitySummaryVisibility.g.cs | 51 ++ ...mbleAI.Models.SearchIdentitiesRequest.g.cs | 49 +- ...mbleAI.Models.StreamSynthesizeRequest.g.cs | 11 - .../ResembleAI.Models.SynthesizeRequest.g.cs | 11 - ...I.TextToSpeechClient.StreamSynthesize.g.cs | 13 +- ...embleAI.TextToSpeechClient.Synthesize.g.cs | 11 +- src/libs/ResembleAI/openapi.yaml | 400 +++++++++++++-- 58 files changed, 3949 insertions(+), 499 deletions(-) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentity.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentity.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityCreateIdentityRequest.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityType.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullable.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibility.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibilityNullable.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.Json.g.cs => ResembleAI.Models.IdentityCreateIdentityRequest.Json.g.cs} (83%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs => ResembleAI.Models.IdentityCreateIdentityRequest0.Json.g.cs} (83%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.Json.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.CreateIdentityRequest.g.cs => ResembleAI.Models.IdentityCreateIdentityRequest1.g.cs} (51%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.Json.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.Json.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.g.cs => ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.g.cs} (66%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.Json.g.cs => ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.Json.g.cs} (91%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.g.cs delete mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs rename src/libs/ResembleAI/Generated/{ResembleAI.Models.CreateIdentityRequest.Json.g.cs => ResembleAI.Models.IdentitySummary.Json.g.cs} (87%) create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryIdentityType.g.cs create mode 100644 src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryVisibility.g.cs diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentity.g.cs index d5eeb9a..a305cca 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentity.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.CreateIdentity.g.cs @@ -6,7 +6,7 @@ public partial interface IIdentityClient { /// /// Create identity
- /// Create a new speaker identity + /// Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -14,12 +14,12 @@ public partial interface IIdentityClient /// global::System.Threading.Tasks.Task CreateIdentityAsync( - global::ResembleAI.CreateIdentityRequest request, + global::ResembleAI.IdentityCreateIdentityRequest request, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Create identity
- /// Create a new speaker identity + /// Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -27,21 +27,17 @@ public partial interface IIdentityClient /// global::System.Threading.Tasks.Task> CreateIdentityAsResponseAsync( - global::ResembleAI.CreateIdentityRequest request, + global::ResembleAI.IdentityCreateIdentityRequest request, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Create identity
- /// Create a new speaker identity + /// Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility). ///
- /// - /// /// 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 CreateIdentityAsync( - string audioUrl, - string? name = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentity.g.cs new file mode 100644 index 0000000..1b6cda4 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.DeleteIdentity.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface IIdentityClient + { + /// + /// Delete identity
+ /// Delete an identity and withdraw its enrollment from matching + ///
+ /// + /// 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 DeleteIdentityAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete identity
+ /// Delete an identity and withdraw its enrollment from matching + ///
+ /// + /// 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> DeleteIdentityAsResponseAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.ListIdentities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.ListIdentities.g.cs index 8e63458..eb2e313 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.ListIdentities.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.ListIdentities.g.cs @@ -6,22 +6,42 @@ public partial interface IIdentityClient { /// /// List identities
- /// List all speaker identities + /// List the team's identities, newest first ///
+ /// + /// Default Value: 1 + /// + /// + /// Default Value: 10 + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListIdentitiesAsync( + int? page = default, + int? pageSize = default, + string? search = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// List identities
- /// List all speaker identities + /// List the team's identities, newest first ///
+ /// + /// Default Value: 1 + /// + /// + /// Default Value: 10 + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task> ListIdentitiesAsResponseAsync( + int? page = default, + int? pageSize = default, + string? search = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.SearchIdentities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.SearchIdentities.g.cs index 9274303..f72ce01 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.SearchIdentities.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IIdentityClient.SearchIdentities.g.cs @@ -6,7 +6,7 @@ public partial interface IIdentityClient { /// /// Search identities
- /// Search for matching speaker identities + /// Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface IIdentityClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Search identities
- /// Search for matching speaker identities + /// Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,14 +32,28 @@ public partial interface IIdentityClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Search identities
- /// Search for matching speaker identities + /// Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search. ///
- /// + /// + /// URL to the media sample (one of url, file, signed_id is required) + /// + /// + /// Signed ID from a secure upload + /// + /// + /// Inferred from the media's content type when omitted (defaults to audio) + /// + /// + /// Default Value: 1 + /// /// 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 SearchIdentitiesAsync( - string audioUrl, + string? url = default, + string? signedId = default, + global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? modality = default, + int? topK = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs index 112b5a2..6d435bf 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.StreamSynthesize.g.cs @@ -6,7 +6,7 @@ public partial interface ITextToSpeechClient { /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface ITextToSpeechClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface ITextToSpeechClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -45,7 +45,7 @@ public partial interface ITextToSpeechClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Voice UUID to use for synthesis @@ -56,9 +56,6 @@ public partial interface ITextToSpeechClient /// /// Optional project UUID to store the clip /// - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// /// /// Audio precision
/// Default Value: PCM_32 @@ -81,7 +78,6 @@ public partial interface ITextToSpeechClient string voiceUuid, string data, string? projectUuid = default, - string? model = default, global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, bool? useHd = default, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs index 2e1a599..a7cd935 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextToSpeechClient.Synthesize.g.cs @@ -6,7 +6,7 @@ public partial interface ITextToSpeechClient { /// /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. + /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -19,7 +19,7 @@ public partial interface ITextToSpeechClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. + /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -32,7 +32,7 @@ public partial interface ITextToSpeechClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. + /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. ///
/// /// Voice UUID to use for synthesis @@ -46,9 +46,6 @@ public partial interface ITextToSpeechClient /// /// Text or SSML to synthesize (max 3,000 characters) /// - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// /// /// Audio precision for WAV output
/// Default Value: PCM_32 @@ -76,7 +73,6 @@ public partial interface ITextToSpeechClient string data, string? projectUuid = default, string? title = default, - string? model = default, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? outputFormat = default, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentity.g.cs index 143abfd..a55e0ef 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentity.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.CreateIdentity.g.cs @@ -35,11 +35,11 @@ public partial class IdentityClient }; partial void PrepareCreateIdentityArguments( global::System.Net.Http.HttpClient httpClient, - global::ResembleAI.CreateIdentityRequest request); + global::ResembleAI.IdentityCreateIdentityRequest request); partial void PrepareCreateIdentityRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::ResembleAI.CreateIdentityRequest request); + global::ResembleAI.IdentityCreateIdentityRequest request); partial void ProcessCreateIdentityResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -51,7 +51,7 @@ partial void ProcessCreateIdentityResponseContent( /// /// Create identity
- /// Create a new speaker identity + /// Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -59,7 +59,7 @@ partial void ProcessCreateIdentityResponseContent( /// public async global::System.Threading.Tasks.Task CreateIdentityAsync( - global::ResembleAI.CreateIdentityRequest request, + global::ResembleAI.IdentityCreateIdentityRequest request, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ partial void ProcessCreateIdentityResponseContent( } /// /// Create identity
- /// Create a new speaker identity + /// Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility). ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -82,12 +82,10 @@ partial void ProcessCreateIdentityResponseContent( /// public async global::System.Threading.Tasks.Task> CreateIdentityAsResponseAsync( - global::ResembleAI.CreateIdentityRequest request, + global::ResembleAI.IdentityCreateIdentityRequest request, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - PrepareArguments( client: HttpClient); PrepareCreateIdentityArguments( @@ -347,6 +345,43 @@ partial void ProcessCreateIdentityResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Validation failed or no audio source supplied + 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) { @@ -445,23 +480,17 @@ partial void ProcessCreateIdentityResponseContent( } /// /// Create identity
- /// Create a new speaker identity + /// Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility). ///
- /// - /// /// 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 CreateIdentityAsync( - string audioUrl, - string? name = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::ResembleAI.CreateIdentityRequest + var __request = new global::ResembleAI.IdentityCreateIdentityRequest { - AudioUrl = audioUrl, - Name = name, }; return await CreateIdentityAsync( diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentity.g.cs new file mode 100644 index 0000000..4317396 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.DeleteIdentity.g.cs @@ -0,0 +1,473 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial class IdentityClient + { + + private static readonly global::ResembleAI.AutoSDKServer[] s_DeleteIdentityServers = 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_DeleteIdentitySecurityRequirement0 = + 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_DeleteIdentitySecurityRequirements = + new global::ResembleAI.EndPointSecurityRequirement[] + { s_DeleteIdentitySecurityRequirement0, + }; + partial void PrepareDeleteIdentityArguments( + global::System.Net.Http.HttpClient httpClient, + ref string uuid); + partial void PrepareDeleteIdentityRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string uuid); + partial void ProcessDeleteIdentityResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteIdentityResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete identity
+ /// Delete an identity and withdraw its enrollment from matching + ///
+ /// + /// 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 DeleteIdentityAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteIdentityAsResponseAsync( + uuid: uuid, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete identity
+ /// Delete an identity and withdraw its enrollment from matching + ///
+ /// + /// 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> DeleteIdentityAsResponseAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteIdentityArguments( + httpClient: HttpClient, + uuid: ref uuid); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteIdentitySecurityRequirements, + operationName: "DeleteIdentityAsync"); + + 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}", + baseUri: ResolveBaseUri( + servers: s_DeleteIdentityServers, + 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); + PrepareDeleteIdentityRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + uuid: uuid!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteIdentity", + methodName: "DeleteIdentityAsync", + pathTemplate: "$\"/identity/{uuid}\"", + 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: "DeleteIdentity", + methodName: "DeleteIdentityAsync", + pathTemplate: "$\"/identity/{uuid}\"", + 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: "DeleteIdentity", + methodName: "DeleteIdentityAsync", + pathTemplate: "$\"/identity/{uuid}\"", + 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); + ProcessDeleteIdentityResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteIdentity", + methodName: "DeleteIdentityAsync", + pathTemplate: "$\"/identity/{uuid}\"", + 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: "DeleteIdentity", + methodName: "DeleteIdentityAsync", + pathTemplate: "$\"/identity/{uuid}\"", + 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); + } + // The identity belongs to another team + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::ResembleAI.Error? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::ResembleAI.Error.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + responseBody: __content_403, + responseObject: __value_403, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteIdentityResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.IdentityDeleteIdentityResponse200.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.IdentityDeleteIdentityResponse200.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.ListIdentities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.ListIdentities.g.cs index 5d4a7b0..2cffff3 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.ListIdentities.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.ListIdentities.g.cs @@ -34,10 +34,16 @@ public partial class IdentityClient { s_ListIdentitiesSecurityRequirement0, }; partial void PrepareListIdentitiesArguments( - global::System.Net.Http.HttpClient httpClient); + global::System.Net.Http.HttpClient httpClient, + ref int? page, + ref int? pageSize, + ref string? search); partial void PrepareListIdentitiesRequest( global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? page, + int? pageSize, + string? search); partial void ProcessListIdentitiesResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -49,16 +55,29 @@ partial void ProcessListIdentitiesResponseContent( /// /// List identities
- /// List all speaker identities + /// List the team's identities, newest first ///
+ /// + /// Default Value: 1 + /// + /// + /// Default Value: 10 + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListIdentitiesAsync( + int? page = default, + int? pageSize = default, + string? search = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ListIdentitiesAsResponseAsync( + page: page, + pageSize: pageSize, + search: search, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -67,19 +86,32 @@ partial void ProcessListIdentitiesResponseContent( } /// /// List identities
- /// List all speaker identities + /// List the team's identities, newest first ///
+ /// + /// Default Value: 1 + /// + /// + /// Default Value: 10 + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ListIdentitiesAsResponseAsync( + int? page = default, + int? pageSize = default, + string? search = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareListIdentitiesArguments( - httpClient: HttpClient); + httpClient: HttpClient, + page: ref page, + pageSize: ref pageSize, + search: ref search); var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( @@ -109,6 +141,11 @@ partial void ProcessListIdentitiesResponseContent( baseUri: ResolveBaseUri( servers: s_ListIdentitiesServers, defaultBaseUrl: "https://app.resemble.ai/api/v2")); + __pathBuilder + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("search", search) + ; var __path = __pathBuilder.ToString(); __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -148,7 +185,10 @@ partial void ProcessListIdentitiesResponseContent( request: __httpRequest); PrepareListIdentitiesRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest); + httpRequestMessage: __httpRequest, + page: page, + pageSize: pageSize, + search: search); return __httpRequest; } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.SearchIdentities.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.SearchIdentities.g.cs index 5eeaeff..f505e57 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.SearchIdentities.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IdentityClient.SearchIdentities.g.cs @@ -51,7 +51,7 @@ partial void ProcessSearchIdentitiesResponseContent( /// /// Search identities
- /// Search for matching speaker identities + /// Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -74,7 +74,7 @@ partial void ProcessSearchIdentitiesResponseContent( } /// /// Search identities
- /// Search for matching speaker identities + /// Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -347,6 +347,80 @@ partial void ProcessSearchIdentitiesResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // Search failed + 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)); + } + // Missing media or unsupported modality + 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) { @@ -445,20 +519,37 @@ partial void ProcessSearchIdentitiesResponseContent( } /// /// Search identities
- /// Search for matching speaker identities + /// Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search. ///
- /// + /// + /// URL to the media sample (one of url, file, signed_id is required) + /// + /// + /// Signed ID from a secure upload + /// + /// + /// Inferred from the media's content type when omitted (defaults to audio) + /// + /// + /// Default Value: 1 + /// /// 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 SearchIdentitiesAsync( - string audioUrl, + string? url = default, + string? signedId = default, + global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? modality = default, + int? topK = default, global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::ResembleAI.SearchIdentitiesRequest { - AudioUrl = audioUrl, + Url = url, + SignedId = signedId, + Modality = modality, + TopK = topK, }; return await SearchIdentitiesAsync( diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityCreateIdentityRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityCreateIdentityRequest.g.cs new file mode 100644 index 0000000..d9bfe92 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityCreateIdentityRequest.g.cs @@ -0,0 +1,155 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace ResembleAI.JsonConverters +{ + /// + public class IdentityCreateIdentityRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityCreateIdentityRequest Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + + } + } + + var __score0 = 0; + if (__jsonProps.Contains("name")) __score0++; + if (__jsonProps.Contains("signed_id")) __score0++; + if (__jsonProps.Contains("url")) __score0++; + var __score1 = 0; + if (__jsonProps.Contains("identity")) __score1++; + if (__jsonProps.Contains("identity.identity_type")) __score1++; + if (__jsonProps.Contains("identity.name")) __score1++; + if (__jsonProps.Contains("identity.notes")) __score1++; + if (__jsonProps.Contains("identity.visibility")) __score1++; + if (__jsonProps.Contains("identity.voice_profile_id")) __score1++; + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + global::ResembleAI.IdentityCreateIdentityRequest0? identityCreateIdentityRequest0 = default; + global::ResembleAI.IdentityCreateIdentityRequest1? identityCreateIdentityRequest1 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.IdentityCreateIdentityRequest0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.IdentityCreateIdentityRequest0).Name}"); + identityCreateIdentityRequest0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 1) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.IdentityCreateIdentityRequest1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.IdentityCreateIdentityRequest1).Name}"); + identityCreateIdentityRequest1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (identityCreateIdentityRequest0 == null && identityCreateIdentityRequest1 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.IdentityCreateIdentityRequest0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.IdentityCreateIdentityRequest0).Name}"); + identityCreateIdentityRequest0 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (identityCreateIdentityRequest0 == null && identityCreateIdentityRequest1 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.IdentityCreateIdentityRequest1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.IdentityCreateIdentityRequest1).Name}"); + identityCreateIdentityRequest1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::ResembleAI.IdentityCreateIdentityRequest( + identityCreateIdentityRequest0, + + identityCreateIdentityRequest1 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityCreateIdentityRequest value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsIdentityCreateIdentityRequest0) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.IdentityCreateIdentityRequest0), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.IdentityCreateIdentityRequest0).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.IdentityCreateIdentityRequest0!, typeInfo); + } + else if (value.IsIdentityCreateIdentityRequest1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::ResembleAI.IdentityCreateIdentityRequest1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::ResembleAI.IdentityCreateIdentityRequest1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.IdentityCreateIdentityRequest1!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs new file mode 100644 index 0000000..4859362 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullable.g.cs new file mode 100644 index 0000000..11ff096 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs new file mode 100644 index 0000000..57d06d3 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullable.g.cs new file mode 100644 index 0000000..b6345b1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs new file mode 100644 index 0000000..a1346ce --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality 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.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullable.g.cs new file mode 100644 index 0000000..8f31636 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? 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.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? 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.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs new file mode 100644 index 0000000..b30543b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality 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.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullable.g.cs new file mode 100644 index 0000000..87454d2 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySearchPostResponsesContentApplicationJsonSchemaModalityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? 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.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? 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.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityType.g.cs new file mode 100644 index 0000000..324c4b0 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySummaryIdentityTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySummaryIdentityType 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.IdentitySummaryIdentityTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySummaryIdentityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySummaryIdentityType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySummaryIdentityType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentitySummaryIdentityTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullable.g.cs new file mode 100644 index 0000000..d246a82 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryIdentityTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySummaryIdentityTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySummaryIdentityType? 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.IdentitySummaryIdentityTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySummaryIdentityType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySummaryIdentityType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySummaryIdentityType? 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.IdentitySummaryIdentityTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibility.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibility.g.cs new file mode 100644 index 0000000..5cbd8d5 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibility.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySummaryVisibilityJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySummaryVisibility 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.IdentitySummaryVisibilityExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySummaryVisibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySummaryVisibility); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySummaryVisibility value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.IdentitySummaryVisibilityExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibilityNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibilityNullable.g.cs new file mode 100644 index 0000000..8292e3c --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.IdentitySummaryVisibilityNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class IdentitySummaryVisibilityNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.IdentitySummaryVisibility? 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.IdentitySummaryVisibilityExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.IdentitySummaryVisibility)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.IdentitySummaryVisibility?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.IdentitySummaryVisibility? 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.IdentitySummaryVisibilityExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs index 5d5eb76..f51b73d 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs @@ -209,6 +209,30 @@ namespace ResembleAI 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.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), @@ -251,6 +275,8 @@ namespace ResembleAI typeof(global::ResembleAI.JsonConverters.DetectUuidGetResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionJsonConverter), + typeof(global::ResembleAI.JsonConverters.IdentityCreateIdentityRequestJsonConverter), + typeof(global::ResembleAI.JsonConverters.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermarkJsonConverter), typeof(global::ResembleAI.JsonConverters.OneOfJsonConverter), @@ -523,14 +549,24 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItemResults))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioSourceTracingsUuidGetResponsesContentApplicationJsonSchemaItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.AudioSourceTracingGetAudioSourceTracingResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryVisibility), TypeInfoPropertyName = "IdentitySummaryVisibility2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummaryIdentityType), TypeInfoPropertyName = "IdentitySummaryIdentityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityListIdentitiesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityCreateIdentityRequest0))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType), TypeInfoPropertyName = "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility), TypeInfoPropertyName = "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityCreateIdentityRequest1))] + [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.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentityDeleteIdentityResponse200))] + [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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.IdentitySearchIdentitiesResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostParametersPrefer), TypeInfoPropertyName = "WatermarkApplyPostParametersPrefer2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType), TypeInfoPropertyName = "WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics))] @@ -690,7 +726,6 @@ 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.CreateIdentityRequest))] [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))] @@ -741,8 +776,7 @@ 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))] diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs index 5c8a261..5ece016 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs @@ -1024,767 +1024,803 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems? Type249 { get; set; } + public global::ResembleAI.IdentitySummaryVisibility? Type249 { get; set; } /// /// /// - public global::ResembleAI.IdentityListIdentitiesResponse200? Type250 { get; set; } + public global::ResembleAI.IdentitySummaryIdentityType? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::ResembleAI.IdentitySummary? Type251 { get; set; } /// /// /// - public global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem? Type252 { get; set; } + public global::ResembleAI.IdentityListIdentitiesResponse200? Type252 { get; set; } /// /// /// - public global::ResembleAI.IdentityCreateIdentityResponse200? Type253 { get; set; } + public global::System.Collections.Generic.IList? Type253 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems? Type254 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest0? Type254 { get; set; } /// /// /// - public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type255 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? Type256 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type257 { get; set; } + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? Type257 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Type258 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest1? Type258 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? Type259 { get; set; } + public global::ResembleAI.IdentityCreateIdentityRequest? Type259 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? Type260 { get; set; } + public global::ResembleAI.IdentityCreateIdentityResponse200? Type260 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type261 { get; set; } + public global::ResembleAI.IdentityDeleteIdentityResponse200? Type261 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyWatermarkResponse200? Type262 { get; set; } + public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Type262 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type263 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Type263 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type264 { get; set; } + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? Type264 { get; set; } /// /// /// - public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? Type265 { get; set; } + public global::ResembleAI.IdentitySearchIdentitiesResponse200? Type265 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type266 { get; set; } + public global::System.Collections.Generic.Dictionary? Type266 { get; set; } /// /// /// - public global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? Type267 { get; set; } + public global::ResembleAI.WatermarkApplyPostParametersPrefer? Type267 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type268 { get; set; } + public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Type268 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? Type269 { get; set; } + public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMetrics? Type269 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? Type270 { get; set; } + public global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItem? Type270 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? Type271 { get; set; } + public global::ResembleAI.OneOf? Type271 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type272 { get; set; } + public global::ResembleAI.WatermarkApplyWatermarkResponse200? Type272 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectWatermarkResponse200? Type273 { get; set; } + public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type273 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type274 { get; set; } + public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type274 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? Type275 { get; set; } + public global::ResembleAI.WatermarkApplyUuidResultGetResponsesContentApplicationJsonSchemaItem? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type276 { get; set; } + public global::ResembleAI.OneOf? Type276 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type277 { get; set; } + public global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200? Type277 { get; set; } /// /// /// - public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? Type278 { get; set; } + public global::ResembleAI.WatermarkDetectPostParametersPrefer? Type278 { get; set; } /// /// /// - public global::ResembleAI.OneOf? Type279 { get; set; } + public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMediaType? Type279 { get; set; } /// /// /// - public global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? Type280 { get; set; } + public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItemMetrics? Type280 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type281 { get; set; } + public global::ResembleAI.WatermarkDetectPostResponsesContentApplicationJsonSchemaItem? Type281 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type282 { get; set; } + public global::ResembleAI.OneOf? Type282 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type283 { get; set; } + public global::ResembleAI.WatermarkDetectWatermarkResponse200? Type283 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type284 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMediaType? Type284 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type285 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetricsHasWatermark? Type285 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type286 { get; set; } + public global::System.Collections.Generic.Dictionary? Type286 { get; set; } /// /// /// - public global::ResembleAI.VoicesListVoicesResponse200? Type287 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItemMetrics? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::ResembleAI.WatermarkDetectUuidResultGetResponsesContentApplicationJsonSchemaItem? Type288 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type289 { get; set; } + public global::ResembleAI.OneOf? Type289 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type290 { get; set; } + public global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200? Type290 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type291 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type291 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type292 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type292 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type293 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type293 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type294 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type294 { get; set; } /// /// /// - public global::ResembleAI.VoicesCreateVoiceResponse200? Type295 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type295 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type296 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type296 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type297 { get; set; } + public global::ResembleAI.VoicesListVoicesResponse200? Type297 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type298 { get; set; } + public global::System.Collections.Generic.IList? Type298 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type299 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type299 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type300 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type300 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type301 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type301 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetVoiceResponse200? Type302 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type302 { get; set; } /// /// /// - public global::ResembleAI.VoicesDeleteVoiceResponse200? Type303 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type303 { get; set; } /// /// /// - public global::ResembleAI.VoicesBuildVoiceResponse200? Type304 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type304 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type305 { get; set; } + public global::ResembleAI.VoicesCreateVoiceResponse200? Type305 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type306 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type307 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type308 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type308 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type309 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type309 { get; set; } /// /// /// - public global::ResembleAI.RecordingsListRecordingsResponse200? Type310 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type310 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type311 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type311 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type312 { get; set; } + public global::ResembleAI.VoicesGetVoiceResponse200? Type312 { get; set; } /// /// /// - public global::ResembleAI.RecordingsCreateRecordingResponse200? Type313 { get; set; } + public global::ResembleAI.VoicesDeleteVoiceResponse200? Type313 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type314 { get; set; } + public global::ResembleAI.VoicesBuildVoiceResponse200? Type314 { get; set; } /// /// /// - public global::ResembleAI.RecordingsGetRecordingResponse200? Type315 { get; set; } + public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type315 { get; set; } /// /// /// - public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type316 { get; set; } + public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type316 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type318 { get; set; } + public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type318 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type319 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type319 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type320 { get; set; } + public global::ResembleAI.RecordingsListRecordingsResponse200? Type320 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type321 { get; set; } + public global::System.Collections.Generic.IList? Type321 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type322 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type322 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type323 { get; set; } + public global::ResembleAI.RecordingsCreateRecordingResponse200? Type323 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type324 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type324 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type325 { get; set; } + public global::ResembleAI.RecordingsGetRecordingResponse200? Type325 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type326 { get; set; } + public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type326 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsGetParametersStatus? Type327 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type327 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationStatus? Type328 { get; set; } + public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type328 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciation? Type329 { get; set; } + public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type329 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type330 { get; set; } + public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::System.Collections.Generic.IList? Type331 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type332 { get; set; } + public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type332 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type333 { get; set; } + public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type333 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type334 { get; set; } + public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type334 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type335 { get; set; } + public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type335 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type336 { get; set; } + public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type336 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type337 { get; set; } + public global::ResembleAI.PronunciationsGetParametersStatus? Type337 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type338 { get; set; } + public global::ResembleAI.CustomPronunciationStatus? Type338 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type339 { get; set; } + public global::ResembleAI.CustomPronunciation? Type339 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type340 { get; set; } + public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::System.Collections.Generic.IList? Type341 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type342 { get; set; } + public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type342 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type343 { get; set; } + public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type343 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type344 { get; set; } + public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type344 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type346 { get; set; } + public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type346 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type347 { get; set; } + public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type347 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type348 { get; set; } + public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type348 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type349 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type349 { get; set; } /// /// /// - public global::ResembleAI.ProjectsListProjectsResponse200? Type350 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type350 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type352 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type352 { get; set; } /// /// /// - public global::ResembleAI.ProjectsCreateProjectResponse200? Type353 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type353 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type354 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type354 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetProjectResponse200? Type355 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type355 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type356 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type356 { get; set; } /// /// /// - public global::ResembleAI.ProjectsUpdateProjectResponse200? Type357 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type357 { get; set; } /// /// /// - public global::ResembleAI.ProjectsDeleteProjectResponse200? Type358 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type358 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type359 { get; set; } + public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type359 { get; set; } /// /// /// - public global::ResembleAI.ClipsListClipsResponse200? Type360 { get; set; } + public global::ResembleAI.ProjectsListProjectsResponse200? Type360 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type361 { get; set; } + public global::System.Collections.Generic.IList? Type361 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type362 { get; set; } + public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type362 { get; set; } /// /// /// - public global::ResembleAI.ClipsGetClipResponse200? Type363 { get; set; } + public global::ResembleAI.ProjectsCreateProjectResponse200? Type363 { get; set; } /// /// /// - public global::ResembleAI.ClipsDeleteClipResponse200? Type364 { get; set; } + public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type364 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type365 { get; set; } + public global::ResembleAI.ProjectsGetProjectResponse200? Type365 { get; set; } /// /// /// - public global::ResembleAI.ClipsUpdateClipResponse200? Type366 { get; set; } + public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type366 { get; set; } /// /// /// - public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type367 { get; set; } + public global::ResembleAI.ProjectsUpdateProjectResponse200? Type367 { get; set; } /// /// /// - public global::ResembleAI.AccountGetAccountResponse200? Type368 { get; set; } + public global::ResembleAI.ProjectsDeleteProjectResponse200? Type368 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type369 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type369 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamsResponse200? Type370 { get; set; } + public global::ResembleAI.ClipsListClipsResponse200? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type371 { get; set; } + public global::System.Collections.Generic.IList? Type371 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type372 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type372 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamResponse200? Type373 { get; set; } + public global::ResembleAI.ClipsGetClipResponse200? Type373 { get; set; } /// /// /// - public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type374 { get; set; } + public global::ResembleAI.ClipsDeleteClipResponse200? Type374 { get; set; } /// /// /// - public global::ResembleAI.AccountGetBillingUsageResponse200? Type375 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type375 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type376 { get; set; } + public global::ResembleAI.ClipsUpdateClipResponse200? Type376 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicesResponse200? Type377 { get; set; } + public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::ResembleAI.AccountGetAccountResponse200? Type378 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type379 { get; set; } + public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type379 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type380 { get; set; } + public global::ResembleAI.AccountGetTeamsResponse200? Type380 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type381 { get; set; } + public global::System.Collections.Generic.IList? Type381 { get; set; } /// /// /// - public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type382 { get; set; } + public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type382 { get; set; } /// /// /// - public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type383 { get; set; } + public global::ResembleAI.AccountGetTeamResponse200? Type383 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type384 { get; set; } + public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type384 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type385 { get; set; } + public global::ResembleAI.AccountGetBillingUsageResponse200? Type385 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type386 { get; set; } + public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type386 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type387 { get; set; } + public global::ResembleAI.DuetsListDuetVoicesResponse200? Type387 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type388 { get; set; } + public global::System.Collections.Generic.IList? Type388 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type389 { get; set; } + public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type389 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type390 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type390 { get; set; } /// /// /// - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type391 { get; set; } + public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type391 { get; set; } /// /// /// - public global::ResembleAI.DuetsGenerateDuetResponse200? Type392 { get; set; } + public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type392 { get; set; } /// /// /// - public global::ResembleAI.SynthesizeRequest? Type393 { get; set; } + public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type393 { get; set; } /// /// /// - public global::ResembleAI.StreamSynthesizeRequest? Type394 { get; set; } + public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type394 { get; set; } /// /// /// - public global::ResembleAI.CreateTranscriptRequest? Type395 { get; set; } + public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type395 { get; set; } /// /// /// - public global::ResembleAI.AskTranscriptQuestionRequest? Type396 { get; set; } + public global::System.Collections.Generic.IList? Type396 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequest? Type397 { get; set; } + public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type397 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentRequest? Type398 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type398 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type399 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type399 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentRequest? Type400 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type400 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type401 { get; set; } + public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type401 { get; set; } /// /// /// - public global::ResembleAI.DispatchAgentRequest? Type402 { get; set; } + public global::ResembleAI.DuetsGenerateDuetResponse200? Type402 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentToolRequest? Type403 { get; set; } + public global::ResembleAI.SynthesizeRequest? Type403 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentToolRequest? Type404 { get; set; } + public global::ResembleAI.StreamSynthesizeRequest? Type404 { get; set; } /// /// /// - public global::ResembleAI.CreateAgentWebhookRequest? Type405 { get; set; } + public global::ResembleAI.CreateTranscriptRequest? Type405 { get; set; } /// /// /// - public global::ResembleAI.UpdateAgentWebhookRequest? Type406 { get; set; } + public global::ResembleAI.AskTranscriptQuestionRequest? Type406 { get; set; } /// /// /// - public global::ResembleAI.CreatePhoneNumberRequest? Type407 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequest? Type407 { get; set; } /// /// /// - public global::ResembleAI.CreateKnowledgeItemRequest? Type408 { get; set; } + public global::ResembleAI.CreateAgentRequest? Type408 { get; set; } /// /// /// - public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type409 { get; set; } + public global::System.Collections.Generic.IList? Type409 { get; set; } /// /// /// - public global::ResembleAI.CreateSecureUploadRequest? Type410 { get; set; } + public global::ResembleAI.UpdateAgentRequest? Type410 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectionRequest? Type411 { get; set; } + public global::System.Collections.Generic.IList? Type411 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectBatchRequest? Type412 { get; set; } + public global::ResembleAI.DispatchAgentRequest? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type413 { get; set; } + public global::ResembleAI.CreateAgentToolRequest? Type413 { get; set; } /// /// /// - public global::ResembleAI.RunIntelligenceRequest? Type414 { get; set; } + public global::ResembleAI.UpdateAgentToolRequest? Type414 { get; set; } /// /// /// - public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type415 { get; set; } + public global::ResembleAI.CreateAgentWebhookRequest? Type415 { get; set; } /// /// /// - public global::ResembleAI.CreateIdentityRequest? Type416 { get; set; } + public global::ResembleAI.UpdateAgentWebhookRequest? Type416 { get; set; } /// /// /// - public global::ResembleAI.SearchIdentitiesRequest? Type417 { get; set; } + public global::ResembleAI.CreatePhoneNumberRequest? Type417 { get; set; } /// /// /// - public global::ResembleAI.ApplyWatermarkRequest? Type418 { get; set; } + public global::ResembleAI.CreateKnowledgeItemRequest? Type418 { get; set; } /// /// /// - public global::ResembleAI.DetectWatermarkRequest? Type419 { get; set; } + public global::ResembleAI.AttachKnowledgeItemToAgentRequest? Type419 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceRequest? Type420 { get; set; } + public global::ResembleAI.CreateSecureUploadRequest? Type420 { get; set; } /// /// /// - public global::ResembleAI.BuildVoiceRequest? Type421 { get; set; } + public global::ResembleAI.CreateDetectionRequest? Type421 { get; set; } /// /// /// - public global::ResembleAI.GenerateVoiceDesignRequest? Type422 { get; set; } + public global::ResembleAI.CreateDetectBatchRequest? Type422 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceFromCandidateRequest? Type423 { get; set; } + public global::System.Collections.Generic.IList? Type423 { get; set; } /// /// /// - public global::ResembleAI.CreateRecordingRequest? Type424 { get; set; } + public global::ResembleAI.RunIntelligenceRequest? Type424 { get; set; } /// /// /// - public global::ResembleAI.UpdateRecordingRequest? Type425 { get; set; } + public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type425 { get; set; } /// /// /// - public global::ResembleAI.CreateTermSubstitutionRequest? Type426 { get; set; } + public global::ResembleAI.SearchIdentitiesRequest? Type426 { get; set; } /// /// /// - public global::ResembleAI.CreatePronunciationRequest? Type427 { get; set; } + public global::ResembleAI.ApplyWatermarkRequest? Type427 { get; set; } /// /// /// - public global::ResembleAI.BulkCreatePronunciationsRequest? Type428 { get; set; } + public global::ResembleAI.DetectWatermarkRequest? Type428 { get; set; } /// /// /// - public global::ResembleAI.UpdatePronunciationRequest? Type429 { get; set; } + public global::ResembleAI.CreateVoiceRequest? Type429 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type430 { get; set; } + public global::ResembleAI.BuildVoiceRequest? Type430 { get; set; } /// /// /// - public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type431 { get; set; } + public global::ResembleAI.GenerateVoiceDesignRequest? Type431 { get; set; } /// /// /// - public global::ResembleAI.CreateProjectRequest? Type432 { get; set; } + public global::ResembleAI.CreateVoiceFromCandidateRequest? Type432 { get; set; } /// /// /// - public global::ResembleAI.UpdateProjectRequest? Type433 { get; set; } + public global::ResembleAI.CreateRecordingRequest? Type433 { get; set; } /// /// /// - public global::ResembleAI.UpdateClipRequest? Type434 { get; set; } + public global::ResembleAI.UpdateRecordingRequest? Type434 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoiceRequest? Type435 { get; set; } + public global::ResembleAI.CreateTermSubstitutionRequest? Type435 { get; set; } /// /// /// - public global::ResembleAI.UpdateDuetVoiceRequest? Type436 { get; set; } + public global::ResembleAI.CreatePronunciationRequest? Type436 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoicePairRequest? Type437 { get; set; } + public global::ResembleAI.BulkCreatePronunciationsRequest? Type437 { get; set; } /// /// /// - public global::ResembleAI.GenerateDuetRequest? Type438 { get; set; } + public global::ResembleAI.UpdatePronunciationRequest? Type438 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type439 { get; set; } + public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type439 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type440 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateProjectRequest? Type441 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateProjectRequest? Type442 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateClipRequest? Type443 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoiceRequest? Type444 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateDuetVoiceRequest? Type445 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoicePairRequest? Type446 { get; set; } + /// + /// + /// + public global::ResembleAI.GenerateDuetRequest? Type447 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type448 { get; set; } /// /// @@ -1897,74 +1933,70 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.Json.g.cs similarity index 83% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.Json.g.cs index dcca899..fa3bc2c 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class IdentityPostResponsesContentApplicationJsonSchemaItem + public readonly partial struct IdentityCreateIdentityRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem? FromJson( + public static global::ResembleAI.IdentityCreateIdentityRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext) as global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem; + typeof(global::ResembleAI.IdentityCreateIdentityRequest), + jsonSerializerContext) as global::ResembleAI.IdentityCreateIdentityRequest?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem? FromJson( + public static global::ResembleAI.IdentityCreateIdentityRequest? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem? FromJson( + public static global::ResembleAI.IdentityCreateIdentityRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem; + typeof(global::ResembleAI.IdentityCreateIdentityRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityCreateIdentityRequest?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.g.cs new file mode 100644 index 0000000..9f28b14 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public readonly partial struct IdentityCreateIdentityRequest : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::ResembleAI.IdentityCreateIdentityRequest0? IdentityCreateIdentityRequest0 { get; init; } +#else + public global::ResembleAI.IdentityCreateIdentityRequest0? IdentityCreateIdentityRequest0 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(IdentityCreateIdentityRequest0))] +#endif + public bool IsIdentityCreateIdentityRequest0 => IdentityCreateIdentityRequest0 != null; + + /// + /// + /// + public bool TryPickIdentityCreateIdentityRequest0( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::ResembleAI.IdentityCreateIdentityRequest0? value) + { + value = IdentityCreateIdentityRequest0; + return IsIdentityCreateIdentityRequest0; + } + + /// + /// + /// + public global::ResembleAI.IdentityCreateIdentityRequest0 PickIdentityCreateIdentityRequest0() => IsIdentityCreateIdentityRequest0 + ? IdentityCreateIdentityRequest0! + : throw new global::System.InvalidOperationException($"Expected union variant 'IdentityCreateIdentityRequest0' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::ResembleAI.IdentityCreateIdentityRequest1? IdentityCreateIdentityRequest1 { get; init; } +#else + public global::ResembleAI.IdentityCreateIdentityRequest1? IdentityCreateIdentityRequest1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(IdentityCreateIdentityRequest1))] +#endif + public bool IsIdentityCreateIdentityRequest1 => IdentityCreateIdentityRequest1 != null; + + /// + /// + /// + public bool TryPickIdentityCreateIdentityRequest1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::ResembleAI.IdentityCreateIdentityRequest1? value) + { + value = IdentityCreateIdentityRequest1; + return IsIdentityCreateIdentityRequest1; + } + + /// + /// + /// + public global::ResembleAI.IdentityCreateIdentityRequest1 PickIdentityCreateIdentityRequest1() => IsIdentityCreateIdentityRequest1 + ? IdentityCreateIdentityRequest1! + : throw new global::System.InvalidOperationException($"Expected union variant 'IdentityCreateIdentityRequest1' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator IdentityCreateIdentityRequest(global::ResembleAI.IdentityCreateIdentityRequest0 value) => new IdentityCreateIdentityRequest((global::ResembleAI.IdentityCreateIdentityRequest0?)value); + + /// + /// + /// + public static implicit operator global::ResembleAI.IdentityCreateIdentityRequest0?(IdentityCreateIdentityRequest @this) => @this.IdentityCreateIdentityRequest0; + + /// + /// + /// + public IdentityCreateIdentityRequest(global::ResembleAI.IdentityCreateIdentityRequest0? value) + { + IdentityCreateIdentityRequest0 = value; + } + + /// + /// + /// + public static IdentityCreateIdentityRequest FromIdentityCreateIdentityRequest0(global::ResembleAI.IdentityCreateIdentityRequest0? value) => new IdentityCreateIdentityRequest(value); + + /// + /// + /// + public static implicit operator IdentityCreateIdentityRequest(global::ResembleAI.IdentityCreateIdentityRequest1 value) => new IdentityCreateIdentityRequest((global::ResembleAI.IdentityCreateIdentityRequest1?)value); + + /// + /// + /// + public static implicit operator global::ResembleAI.IdentityCreateIdentityRequest1?(IdentityCreateIdentityRequest @this) => @this.IdentityCreateIdentityRequest1; + + /// + /// + /// + public IdentityCreateIdentityRequest(global::ResembleAI.IdentityCreateIdentityRequest1? value) + { + IdentityCreateIdentityRequest1 = value; + } + + /// + /// + /// + public static IdentityCreateIdentityRequest FromIdentityCreateIdentityRequest1(global::ResembleAI.IdentityCreateIdentityRequest1? value) => new IdentityCreateIdentityRequest(value); + + /// + /// + /// + public IdentityCreateIdentityRequest( + global::ResembleAI.IdentityCreateIdentityRequest0? identityCreateIdentityRequest0, + global::ResembleAI.IdentityCreateIdentityRequest1? identityCreateIdentityRequest1 + ) + { + IdentityCreateIdentityRequest0 = identityCreateIdentityRequest0; + IdentityCreateIdentityRequest1 = identityCreateIdentityRequest1; + } + + /// + /// + /// + public object? Object => + IdentityCreateIdentityRequest1 as object ?? + IdentityCreateIdentityRequest0 as object + ; + + /// + /// + /// + public override string? ToString() => + IdentityCreateIdentityRequest0?.ToString() ?? + IdentityCreateIdentityRequest1?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsIdentityCreateIdentityRequest0 && !IsIdentityCreateIdentityRequest1 || !IsIdentityCreateIdentityRequest0 && IsIdentityCreateIdentityRequest1; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? identityCreateIdentityRequest0 = null, + global::System.Func? identityCreateIdentityRequest1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsIdentityCreateIdentityRequest0 && identityCreateIdentityRequest0 != null) + { + return identityCreateIdentityRequest0(IdentityCreateIdentityRequest0!); + } + else if (IsIdentityCreateIdentityRequest1 && identityCreateIdentityRequest1 != null) + { + return identityCreateIdentityRequest1(IdentityCreateIdentityRequest1!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? identityCreateIdentityRequest0 = null, + + global::System.Action? identityCreateIdentityRequest1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsIdentityCreateIdentityRequest0) + { + identityCreateIdentityRequest0?.Invoke(IdentityCreateIdentityRequest0!); + } + else if (IsIdentityCreateIdentityRequest1) + { + identityCreateIdentityRequest1?.Invoke(IdentityCreateIdentityRequest1!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? identityCreateIdentityRequest0 = null, + global::System.Action? identityCreateIdentityRequest1 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsIdentityCreateIdentityRequest0) + { + identityCreateIdentityRequest0?.Invoke(IdentityCreateIdentityRequest0!); + } + else if (IsIdentityCreateIdentityRequest1) + { + identityCreateIdentityRequest1?.Invoke(IdentityCreateIdentityRequest1!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + IdentityCreateIdentityRequest0, + typeof(global::ResembleAI.IdentityCreateIdentityRequest0), + IdentityCreateIdentityRequest1, + typeof(global::ResembleAI.IdentityCreateIdentityRequest1), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(IdentityCreateIdentityRequest other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(IdentityCreateIdentityRequest0, other.IdentityCreateIdentityRequest0) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(IdentityCreateIdentityRequest1, other.IdentityCreateIdentityRequest1) + ; + } + + /// + /// + /// + public static bool operator ==(IdentityCreateIdentityRequest obj1, IdentityCreateIdentityRequest obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(IdentityCreateIdentityRequest obj1, IdentityCreateIdentityRequest obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is IdentityCreateIdentityRequest o && Equals(o); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.Json.g.cs similarity index 83% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.Json.g.cs index b1c3aa7..22f006a 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class IdentityGetResponsesContentApplicationJsonSchemaItemsItems + public sealed partial class IdentityCreateIdentityRequest0 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( + public static global::ResembleAI.IdentityCreateIdentityRequest0? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext) as global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems; + typeof(global::ResembleAI.IdentityCreateIdentityRequest0), + jsonSerializerContext) as global::ResembleAI.IdentityCreateIdentityRequest0; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( + public static global::ResembleAI.IdentityCreateIdentityRequest0? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems? FromJson( + public static global::ResembleAI.IdentityCreateIdentityRequest0? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityGetResponsesContentApplicationJsonSchemaItemsItems; + typeof(global::ResembleAI.IdentityCreateIdentityRequest0), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityCreateIdentityRequest0; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.g.cs new file mode 100644 index 0000000..6c12473 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest0.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class IdentityCreateIdentityRequest0 + { + /// + /// Speaker name/identifier + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// URL to an audio sample (one of url, audio, signed_id is required) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + + /// + /// Signed ID from a secure upload + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signed_id")] + public string? SignedId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Speaker name/identifier + /// + /// + /// URL to an audio sample (one of url, audio, signed_id is required) + /// + /// + /// Signed ID from a secure upload + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IdentityCreateIdentityRequest0( + string name, + string? url, + string? signedId) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Url = url; + this.SignedId = signedId; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentityCreateIdentityRequest0() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.Json.g.cs new file mode 100644 index 0000000..ae7ef21 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityCreateIdentityRequest1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityCreateIdentityRequest1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityCreateIdentityRequest1), + jsonSerializerContext) as global::ResembleAI.IdentityCreateIdentityRequest1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityCreateIdentityRequest1? 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.IdentityCreateIdentityRequest1? 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.IdentityCreateIdentityRequest1), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityCreateIdentityRequest1; + } + + /// + /// Deserializes a 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.CreateIdentityRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.g.cs similarity index 51% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityRequest.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.g.cs index 6b0959a..ad037e8 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityRequest1.g.cs @@ -6,20 +6,14 @@ namespace ResembleAI /// /// /// - public sealed partial class CreateIdentityRequest + public sealed partial class IdentityCreateIdentityRequest1 { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] + [global::System.Text.Json.Serialization.JsonPropertyName("identity")] [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioUrl { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + public required global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity Identity { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,25 +22,22 @@ public sealed partial class CreateIdentityRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateIdentityRequest( - string audioUrl, - string? name) + public IdentityCreateIdentityRequest1( + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity identity) { - this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); - this.Name = name; + this.Identity = identity ?? throw new global::System.ArgumentNullException(nameof(identity)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateIdentityRequest() + public IdentityCreateIdentityRequest1() { } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityResponse200.g.cs index c1e1fb8..952a93a 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityCreateIdentityResponse200.g.cs @@ -9,16 +9,16 @@ namespace ResembleAI public sealed partial class IdentityCreateIdentityResponse200 { /// - /// + /// Whether the voice was enrolled for matching immediately /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] public bool? Success { get; set; } /// - /// + /// Identity summary returned by the list and simple-create endpoints /// [global::System.Text.Json.Serialization.JsonPropertyName("item")] - public global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem? Item { get; set; } + public global::ResembleAI.IdentitySummary? Item { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,14 +29,18 @@ public sealed partial class IdentityCreateIdentityResponse200 /// /// Initializes a new instance of the class. /// - /// - /// + /// + /// Whether the voice was enrolled for matching immediately + /// + /// + /// Identity summary returned by the list and simple-create endpoints + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public IdentityCreateIdentityResponse200( bool? success, - global::ResembleAI.IdentityPostResponsesContentApplicationJsonSchemaItem? item) + global::ResembleAI.IdentitySummary? item) { this.Success = success; this.Item = item; diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.Json.g.cs new file mode 100644 index 0000000..0aa5e11 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityDeleteIdentityResponse200 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityDeleteIdentityResponse200? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityDeleteIdentityResponse200), + jsonSerializerContext) as global::ResembleAI.IdentityDeleteIdentityResponse200; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityDeleteIdentityResponse200? 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.IdentityDeleteIdentityResponse200? 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.IdentityDeleteIdentityResponse200), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityDeleteIdentityResponse200; + } + + /// + /// Deserializes a 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.IdentityDeleteIdentityResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.g.cs new file mode 100644 index 0000000..62512b2 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityDeleteIdentityResponse200.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class IdentityDeleteIdentityResponse200 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + public bool? Success { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IdentityDeleteIdentityResponse200( + bool? success) + { + this.Success = success; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentityDeleteIdentityResponse200() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.g.cs deleted file mode 100644 index c45fa3d..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityGetResponsesContentApplicationJsonSchemaItemsItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class IdentityGetResponsesContentApplicationJsonSchemaItemsItems - { - - /// - /// Additional properties that are not explicitly defined 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.IdentityListIdentitiesResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityListIdentitiesResponse200.g.cs index 35b9b7e..9395ec0 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityListIdentitiesResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityListIdentitiesResponse200.g.cs @@ -14,11 +14,35 @@ public sealed partial class IdentityListIdentitiesResponse200 [global::System.Text.Json.Serialization.JsonPropertyName("success")] public bool? Success { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("page")] + public int? Page { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("num_pages")] + public int? NumPages { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int? PageSize { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int? TotalCount { get; set; } + /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::System.Collections.Generic.IList? Items { get; set; } + public global::System.Collections.Generic.IList? Items { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,15 +54,27 @@ public sealed partial class IdentityListIdentitiesResponse200 /// Initializes a new instance of the class. /// /// + /// + /// + /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public IdentityListIdentitiesResponse200( bool? success, - global::System.Collections.Generic.IList? items) + int? page, + int? numPages, + int? pageSize, + int? totalCount, + global::System.Collections.Generic.IList? items) { this.Success = success; + this.Page = page; + this.NumPages = numPages; + this.PageSize = pageSize; + this.TotalCount = totalCount; this.Items = items; } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.Json.g.cs new file mode 100644 index 0000000..a854444 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity), + jsonSerializerContext) as global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity? 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity; + } + + /// + /// Deserializes a 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.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.g.cs new file mode 100644 index 0000000..7636cc1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity.g.cs @@ -0,0 +1,87 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// Default Value: person + /// + [global::System.Text.Json.Serialization.JsonPropertyName("identity_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeJsonConverter))] + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? IdentityType { get; set; } + + /// + /// Default Value: team + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityJsonConverter))] + public global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? 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; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Default Value: person + /// + /// + /// Default Value: team + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity( + string name, + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? identityType, + global::ResembleAI.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? visibility, + string? notes, + string? voiceProfileId) + { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.IdentityType = identityType; + this.Visibility = visibility; + this.Notes = notes; + this.VoiceProfileId = voiceProfileId; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs new file mode 100644 index 0000000..6097cff --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Default Value: person + /// + public enum IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType + { + /// + /// + /// + Brand, + /// + /// + /// + Person, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType value) + { + return value switch + { + IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.Brand => "brand", + IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.Person => "person", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType? ToEnum(string value) + { + return value switch + { + "brand" => IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.Brand, + "person" => IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType.Person, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs new file mode 100644 index 0000000..e89d1be --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Default Value: team + /// + public enum IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility + { + /// + /// + /// + Global, + /// + /// + /// + Team, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibilityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility value) + { + return value switch + { + IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.Global => "global", + IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.Team => "team", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility? ToEnum(string value) + { + return value switch + { + "global" => IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.Global, + "team" => IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility.Team, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200.g.cs index b9b1b6f..77c16bd 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200.g.cs @@ -17,8 +17,15 @@ public sealed partial class IdentitySearchIdentitiesResponse200 /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("matches")] - public global::System.Collections.Generic.IList? Matches { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modality")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentitySearchPostResponsesContentApplicationJsonSchemaModalityJsonConverter))] + public global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? Modality { get; set; } + + /// + /// Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type "cosine". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item")] + public global::System.Collections.Generic.Dictionary? Item { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,16 +37,21 @@ public sealed partial class IdentitySearchIdentitiesResponse200 /// Initializes a new instance of the class. /// /// - /// + /// + /// + /// Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type "cosine". + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public IdentitySearchIdentitiesResponse200( bool? success, - global::System.Collections.Generic.IList? matches) + global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaModality? modality, + global::System.Collections.Generic.Dictionary? item) { this.Success = success; - this.Matches = matches; + this.Modality = modality; + this.Item = item; } /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.Json.g.cs new file mode 100644 index 0000000..a96c13b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class IdentitySearchIdentitiesResponse200Item + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.IdentitySearchIdentitiesResponse200Item? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.IdentitySearchIdentitiesResponse200Item), + jsonSerializerContext) as global::ResembleAI.IdentitySearchIdentitiesResponse200Item; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.IdentitySearchIdentitiesResponse200Item? 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.IdentitySearchIdentitiesResponse200Item? 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.IdentitySearchIdentitiesResponse200Item), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentitySearchIdentitiesResponse200Item; + } + + /// + /// Deserializes a 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.IdentityPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.g.cs similarity index 66% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.g.cs index a3ede76..c00b8b7 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentityPostResponsesContentApplicationJsonSchemaItem.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchIdentitiesResponse200Item.g.cs @@ -4,9 +4,9 @@ namespace ResembleAI { /// - /// + /// Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type "cosine". /// - public sealed partial class IdentityPostResponsesContentApplicationJsonSchemaItem + public sealed partial class IdentitySearchIdentitiesResponse200Item { /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs new file mode 100644 index 0000000..77eb1b2 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Inferred from the media's content type when omitted (defaults to audio) + /// + public enum IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality + { + /// + /// + /// + Audio, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality value) + { + return value switch + { + IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.Audio => "audio", + IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? ToEnum(string value) + { + return value switch + { + "audio" => IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.Audio, + "image" => IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.Json.g.cs similarity index 91% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.Json.g.cs index 293188e..a007ef0 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems + public sealed partial class IdentitySearchPostResponsesContentApplicationJsonSchemaItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems? FromJson( + public static global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems), - jsonSerializerContext) as global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems; + typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem), + jsonSerializerContext) as global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems? FromJson( + public static global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems? FromJson( + public static global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems; + typeof(global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentitySearchPostResponsesContentApplicationJsonSchemaItem; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.g.cs new file mode 100644 index 0000000..0281a89 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaItem.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class IdentitySearchPostResponsesContentApplicationJsonSchemaItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("distance")] + public double? Distance { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score_type")] + public string? ScoreType { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.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 IdentitySearchPostResponsesContentApplicationJsonSchemaItem( + string? name, + double? distance, + string? scoreType) + { + this.Name = name; + this.Distance = distance; + this.ScoreType = scoreType; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentitySearchPostResponsesContentApplicationJsonSchemaItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.g.cs deleted file mode 100644 index 5c27a11..0000000 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace ResembleAI -{ - /// - /// - /// - public sealed partial class IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems - { - - /// - /// Additional properties that are not explicitly defined 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.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs new file mode 100644 index 0000000..81fe424 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySearchPostResponsesContentApplicationJsonSchemaModality.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentitySearchPostResponsesContentApplicationJsonSchemaModality + { + /// + /// + /// + Audio, + /// + /// + /// + Image, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentitySearchPostResponsesContentApplicationJsonSchemaModalityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentitySearchPostResponsesContentApplicationJsonSchemaModality value) + { + return value switch + { + IdentitySearchPostResponsesContentApplicationJsonSchemaModality.Audio => "audio", + IdentitySearchPostResponsesContentApplicationJsonSchemaModality.Image => "image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentitySearchPostResponsesContentApplicationJsonSchemaModality? ToEnum(string value) + { + return value switch + { + "audio" => IdentitySearchPostResponsesContentApplicationJsonSchemaModality.Audio, + "image" => IdentitySearchPostResponsesContentApplicationJsonSchemaModality.Image, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.Json.g.cs similarity index 87% rename from src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityRequest.Json.g.cs rename to src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.Json.g.cs index e3e6d20..1780682 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.CreateIdentityRequest.Json.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.Json.g.cs @@ -2,7 +2,7 @@ namespace ResembleAI { - public sealed partial class CreateIdentityRequest + public sealed partial class IdentitySummary { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::ResembleAI.CreateIdentityRequest? FromJson( + public static global::ResembleAI.IdentitySummary? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::ResembleAI.CreateIdentityRequest), - jsonSerializerContext) as global::ResembleAI.CreateIdentityRequest; + typeof(global::ResembleAI.IdentitySummary), + jsonSerializerContext) as global::ResembleAI.IdentitySummary; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::ResembleAI.CreateIdentityRequest? FromJson( + public static global::ResembleAI.IdentitySummary? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::ResembleAI.CreateIdentityRequest? FromJson( + public static global::ResembleAI.IdentitySummary? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::ResembleAI.CreateIdentityRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.CreateIdentityRequest; + typeof(global::ResembleAI.IdentitySummary), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.IdentitySummary; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::ResembleAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.g.cs new file mode 100644 index 0000000..8ddd341 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummary.g.cs @@ -0,0 +1,129 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Identity summary returned by the list and simple-create endpoints + /// + public sealed partial class IdentitySummary + { + /// + /// + /// + [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("created_at")] + public global::System.DateTime? CreatedAt { get; set; } + + /// + /// URL of the first voice sample, if any + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] + public string? AudioUrl { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("visibility")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentitySummaryVisibilityJsonConverter))] + public global::ResembleAI.IdentitySummaryVisibility? Visibility { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("identity_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentitySummaryIdentityTypeJsonConverter))] + public global::ResembleAI.IdentitySummaryIdentityType? IdentityType { 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("updated_at")] + public global::System.DateTime? UpdatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project_count")] + public int? ProjectCount { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// URL of the first voice sample, if any + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public IdentitySummary( + string? uuid, + string? name, + global::System.DateTime? createdAt, + string? audioUrl, + global::ResembleAI.IdentitySummaryVisibility? visibility, + global::ResembleAI.IdentitySummaryIdentityType? identityType, + string? notes, + string? voiceProfileId, + global::System.DateTime? updatedAt, + int? projectCount) + { + this.Uuid = uuid; + this.Name = name; + this.CreatedAt = createdAt; + this.AudioUrl = audioUrl; + this.Visibility = visibility; + this.IdentityType = identityType; + this.Notes = notes; + this.VoiceProfileId = voiceProfileId; + this.UpdatedAt = updatedAt; + this.ProjectCount = projectCount; + } + + /// + /// Initializes a new instance of the class. + /// + public IdentitySummary() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryIdentityType.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryIdentityType.g.cs new file mode 100644 index 0000000..af26948 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryIdentityType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentitySummaryIdentityType + { + /// + /// + /// + Brand, + /// + /// + /// + Person, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentitySummaryIdentityTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentitySummaryIdentityType value) + { + return value switch + { + IdentitySummaryIdentityType.Brand => "brand", + IdentitySummaryIdentityType.Person => "person", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentitySummaryIdentityType? ToEnum(string value) + { + return value switch + { + "brand" => IdentitySummaryIdentityType.Brand, + "person" => IdentitySummaryIdentityType.Person, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryVisibility.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryVisibility.g.cs new file mode 100644 index 0000000..97dadac --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.IdentitySummaryVisibility.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum IdentitySummaryVisibility + { + /// + /// + /// + Global, + /// + /// + /// + Team, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class IdentitySummaryVisibilityExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this IdentitySummaryVisibility value) + { + return value switch + { + IdentitySummaryVisibility.Global => "global", + IdentitySummaryVisibility.Team => "team", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static IdentitySummaryVisibility? ToEnum(string value) + { + return value switch + { + "global" => IdentitySummaryVisibility.Global, + "team" => IdentitySummaryVisibility.Team, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SearchIdentitiesRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SearchIdentitiesRequest.g.cs index 4a59937..0fe8934 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SearchIdentitiesRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.SearchIdentitiesRequest.g.cs @@ -9,11 +9,29 @@ namespace ResembleAI public sealed partial class SearchIdentitiesRequest { /// - /// + /// URL to the media sample (one of url, file, signed_id is required) /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio_url")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string AudioUrl { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + + /// + /// Signed ID from a secure upload + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signed_id")] + public string? SignedId { get; set; } + + /// + /// Inferred from the media's content type when omitted (defaults to audio) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modality")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModalityJsonConverter))] + public global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? Modality { get; set; } + + /// + /// Default Value: 1 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] + public int? TopK { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -24,14 +42,31 @@ public sealed partial class SearchIdentitiesRequest /// /// Initializes a new instance of the class. /// - /// + /// + /// URL to the media sample (one of url, file, signed_id is required) + /// + /// + /// Signed ID from a secure upload + /// + /// + /// Inferred from the media's content type when omitted (defaults to audio) + /// + /// + /// Default Value: 1 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SearchIdentitiesRequest( - string audioUrl) + string? url, + string? signedId, + global::ResembleAI.IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality? modality, + int? topK) { - this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); + this.Url = url; + this.SignedId = signedId; + this.Modality = modality; + this.TopK = topK; } /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs index aadbc16..a0f843f 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.StreamSynthesizeRequest.g.cs @@ -28,12 +28,6 @@ public sealed partial class StreamSynthesizeRequest [global::System.Text.Json.Serialization.JsonPropertyName("project_uuid")] public string? ProjectUuid { get; set; } - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - /// /// Audio precision
/// Default Value: PCM_32 @@ -81,9 +75,6 @@ public sealed partial class StreamSynthesizeRequest /// /// Optional project UUID to store the clip /// - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// /// /// Audio precision
/// Default Value: PCM_32 @@ -106,7 +97,6 @@ public StreamSynthesizeRequest( string voiceUuid, string data, string? projectUuid, - string? model, global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? precision, global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate, bool? useHd, @@ -115,7 +105,6 @@ public StreamSynthesizeRequest( this.VoiceUuid = voiceUuid ?? throw new global::System.ArgumentNullException(nameof(voiceUuid)); this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); this.ProjectUuid = projectUuid; - this.Model = model; this.Precision = precision; this.SampleRate = sampleRate; this.UseHd = useHd; diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs index 327fe20..c4bd7ec 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.SynthesizeRequest.g.cs @@ -34,12 +34,6 @@ public sealed partial class SynthesizeRequest [global::System.Text.Json.Serialization.JsonRequired] public required string Data { get; set; } - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - /// /// Audio precision for WAV output
/// Default Value: PCM_32 @@ -98,9 +92,6 @@ public sealed partial class SynthesizeRequest /// /// Optional title for the generated clip /// - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// /// /// Audio precision for WAV output
/// Default Value: PCM_32 @@ -128,7 +119,6 @@ public SynthesizeRequest( string data, string? projectUuid, string? title, - string? model, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? precision, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? outputFormat, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate, @@ -139,7 +129,6 @@ public SynthesizeRequest( this.ProjectUuid = projectUuid; this.Title = title; this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); - this.Model = model; this.Precision = precision; this.OutputFormat = outputFormat; this.SampleRate = sampleRate; diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs index c31d37c..9a9af89 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.StreamSynthesize.g.cs @@ -51,7 +51,7 @@ partial void ProcessStreamSynthesizeResponseContent( /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -74,7 +74,7 @@ partial void ProcessStreamSynthesizeResponseContent( } /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -437,7 +437,7 @@ partial void ProcessStreamSynthesizeResponseContent( } /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -837,7 +837,7 @@ partial void ProcessStreamSynthesizeResponseContent( } /// /// Streaming text-to-speech synthesis (HTTP)
- /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. + /// Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically. ///
/// /// Voice UUID to use for synthesis @@ -848,9 +848,6 @@ partial void ProcessStreamSynthesizeResponseContent( /// /// Optional project UUID to store the clip /// - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// /// /// Audio precision
/// Default Value: PCM_32 @@ -873,7 +870,6 @@ partial void ProcessStreamSynthesizeResponseContent( string voiceUuid, string data, string? projectUuid = default, - string? model = default, global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, bool? useHd = default, @@ -886,7 +882,6 @@ partial void ProcessStreamSynthesizeResponseContent( VoiceUuid = voiceUuid, Data = data, ProjectUuid = projectUuid, - Model = model, Precision = precision, SampleRate = sampleRate, UseHd = useHd, diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs index aab8f75..a61fbb0 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextToSpeechClient.Synthesize.g.cs @@ -51,7 +51,7 @@ partial void ProcessSynthesizeResponseContent( /// /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. + /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -74,7 +74,7 @@ partial void ProcessSynthesizeResponseContent( } /// /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. + /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -519,7 +519,7 @@ partial void ProcessSynthesizeResponseContent( } /// /// Synchronous text-to-speech synthesis
- /// Generate speech synchronously from text or SSML. Returns complete audio as base64. + /// Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically. ///
/// /// Voice UUID to use for synthesis @@ -533,9 +533,6 @@ partial void ProcessSynthesizeResponseContent( /// /// Text or SSML to synthesize (max 3,000 characters) /// - /// - /// Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices. - /// /// /// Audio precision for WAV output
/// Default Value: PCM_32 @@ -563,7 +560,6 @@ partial void ProcessSynthesizeResponseContent( string data, string? projectUuid = default, string? title = default, - string? model = default, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? precision = default, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? outputFormat = default, global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? sampleRate = default, @@ -578,7 +574,6 @@ partial void ProcessSynthesizeResponseContent( ProjectUuid = projectUuid, Title = title, Data = data, - Model = model, Precision = precision, OutputFormat = outputFormat, SampleRate = sampleRate, diff --git a/src/libs/ResembleAI/openapi.yaml b/src/libs/ResembleAI/openapi.yaml index 06399f7..c2fac6e 100644 --- a/src/libs/ResembleAI/openapi.yaml +++ b/src/libs/ResembleAI/openapi.yaml @@ -9,7 +9,7 @@ "post": { "operationId": "synthesize", "summary": "Synchronous text-to-speech synthesis", - "description": "Generate speech synchronously from text or SSML. Returns complete audio as base64.", + "description": "Generate speech synchronously from text or SSML. Returns complete audio as base64. The model associated with the voice is selected automatically.", "tags": [ "textToSpeech" ], @@ -78,10 +78,6 @@ "type": "string", "description": "Text or SSML to synthesize (max 3,000 characters)" }, - "model": { - "type": "string", - "description": "Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices." - }, "precision": { "$ref": "#/components/schemas/SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision", "description": "Audio precision for WAV output" @@ -124,7 +120,7 @@ "post": { "operationId": "stream-synthesize", "summary": "Streaming text-to-speech synthesis (HTTP)", - "description": "Stream audio as it's generated. Returns chunked WAV data for progressive playback.", + "description": "Stream audio as it's generated. Returns chunked WAV data for progressive playback. The model associated with the voice is selected automatically.", "tags": [ "textToSpeech" ], @@ -180,10 +176,6 @@ "type": "string", "description": "Optional project UUID to store the clip" }, - "model": { - "type": "string", - "description": "Model to use for synthesis. Pass `chatterbox-turbo` to use the Turbo model for lower latency and paralinguistic tag support. If not specified, defaults to Chatterbox or Chatterbox Multilingual based on the voice. Note - Chatterbox-Turbo is supported by all Rapid English voices and Pre Built Library voices." - }, "precision": { "$ref": "#/components/schemas/StreamPostRequestBodyContentApplicationJsonSchemaPrecision", "description": "Audio precision" @@ -3636,11 +3628,38 @@ "get": { "operationId": "list-identities", "summary": "List identities", - "description": "List all speaker identities", + "description": "List the team's identities, newest first", "tags": [ "identity" ], "parameters": [ + { + "name": "page", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 1 + } + }, + { + "name": "page_size", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "default": 10 + } + }, + { + "name": "search", + "in": "query", + "description": "Filter by identity name", + "required": false, + "schema": { + "type": "string" + } + }, { "name": "Authorization", "in": "header", @@ -3667,7 +3686,7 @@ "post": { "operationId": "create-identity", "summary": "Create identity", - "description": "Create a new speaker identity", + "description": "Create a new identity profile. Two request forms are supported: the simple audio-only form (flat `name` + one audio source; creates a team-visible person identity and enrolls the voice immediately) and the multimodal form (a nested `identity` object with full control over type and visibility).\n", "tags": [ "identity" ], @@ -3684,7 +3703,7 @@ ], "responses": { "200": { - "description": "Identity created", + "description": "Identity created (simple form)", "content": { "application/json": { "schema": { @@ -3692,25 +3711,79 @@ } } } + }, + "422": { + "description": "Validation failed or no audio source supplied", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } }, "requestBody": { "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "audio_url": { - "type": "string", - "format": "uri" - }, - "name": { - "type": "string" - } - }, - "required": [ - "audio_url" - ] + "$ref": "#/components/schemas/Identity_createIdentity_Request" + } + } + } + } + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/identity/{uuid}": { + "delete": { + "operationId": "delete-identity", + "summary": "Delete identity", + "description": "Delete an identity and withdraw its enrollment from matching", + "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": { + "200": { + "description": "Identity deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Identity_deleteIdentity_Response_200" + } + } + } + }, + "403": { + "description": "The identity belongs to another team", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } } } } @@ -3726,7 +3799,7 @@ "post": { "operationId": "search-identities", "summary": "Search identities", - "description": "Search for matching speaker identities", + "description": "Search the team's identities (plus global identities) for matches against a media sample. Supports audio (voice matching) and image (face/visual matching); video is not yet supported for synchronous search.\n", "tags": [ "identity" ], @@ -3751,6 +3824,26 @@ } } } + }, + "400": { + "description": "Search failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "422": { + "description": "Missing media or unsupported modality", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } } }, "requestBody": { @@ -3759,14 +3852,24 @@ "schema": { "type": "object", "properties": { - "audio_url": { + "url": { "type": "string", - "format": "uri" + "format": "uri", + "description": "URL to the media sample (one of url, file, signed_id is required)" + }, + "signed_id": { + "type": "string", + "description": "Signed ID from a secure upload" + }, + "modality": { + "$ref": "#/components/schemas/IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality", + "description": "Inferred from the media's content type when omitted (defaults to audio)" + }, + "top_k": { + "type": "integer", + "default": 1 } - }, - "required": [ - "audio_url" - ] + } } } } @@ -10086,10 +10189,71 @@ }, "title": "Audio Source Tracing_getAudioSourceTracing_Response_200" }, - "IdentityGetResponsesContentApplicationJsonSchemaItemsItems": { + "IdentitySummaryVisibility": { + "type": "string", + "enum": [ + "team", + "global" + ], + "title": "IdentitySummaryVisibility" + }, + "IdentitySummaryIdentityType": { + "type": "string", + "enum": [ + "person", + "brand" + ], + "title": "IdentitySummaryIdentityType" + }, + "IdentitySummary": { "type": "object", - "properties": {}, - "title": "IdentityGetResponsesContentApplicationJsonSchemaItemsItems" + "properties": { + "uuid": { + "type": "string" + }, + "name": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "audio_url": { + "type": [ + "string", + "null" + ], + "format": "uri", + "description": "URL of the first voice sample, if any" + }, + "visibility": { + "$ref": "#/components/schemas/IdentitySummaryVisibility" + }, + "identity_type": { + "$ref": "#/components/schemas/IdentitySummaryIdentityType" + }, + "notes": { + "type": [ + "string", + "null" + ] + }, + "voice_profile_id": { + "type": [ + "string", + "null" + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "project_count": { + "type": "integer" + } + }, + "description": "Identity summary returned by the list and simple-create endpoints", + "title": "IdentitySummary" }, "Identity_listIdentities_Response_200": { "type": "object", @@ -10097,36 +10261,168 @@ "success": { "type": "boolean" }, + "page": { + "type": "integer" + }, + "num_pages": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, "items": { "type": "array", "items": { - "$ref": "#/components/schemas/IdentityGetResponsesContentApplicationJsonSchemaItemsItems" + "$ref": "#/components/schemas/IdentitySummary" } } }, "title": "Identity_listIdentities_Response_200" }, - "IdentityPostResponsesContentApplicationJsonSchemaItem": { + "IdentityCreateIdentityRequest0": { "type": "object", - "properties": {}, - "title": "IdentityPostResponsesContentApplicationJsonSchemaItem" + "properties": { + "name": { + "type": "string", + "description": "Speaker name/identifier" + }, + "url": { + "type": "string", + "format": "uri", + "description": "URL to an audio sample (one of url, audio, signed_id is required)" + }, + "signed_id": { + "type": "string", + "description": "Signed ID from a secure upload" + } + }, + "required": [ + "name" + ], + "title": "IdentityCreateIdentityRequest0" + }, + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType": { + "type": "string", + "enum": [ + "person", + "brand" + ], + "default": "person", + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" + }, + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility": { + "type": "string", + "enum": [ + "team", + "global" + ], + "default": "team", + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + }, + "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "identity_type": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityIdentityType" + }, + "visibility": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1IdentityVisibility" + }, + "notes": { + "type": "string" + }, + "voice_profile_id": { + "type": "string" + } + }, + "required": [ + "name" + ], + "title": "IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" + }, + "IdentityCreateIdentityRequest1": { + "type": "object", + "properties": { + "identity": { + "$ref": "#/components/schemas/IdentityPostRequestBodyContentApplicationJsonSchemaOneOf1Identity" + } + }, + "required": [ + "identity" + ], + "title": "IdentityCreateIdentityRequest1" + }, + "Identity_createIdentity_Request": { + "oneOf": [ + { + "$ref": "#/components/schemas/IdentityCreateIdentityRequest0" + }, + { + "$ref": "#/components/schemas/IdentityCreateIdentityRequest1" + } + ], + "title": "Identity_createIdentity_Request" }, "Identity_createIdentity_Response_200": { "type": "object", "properties": { "success": { - "type": "boolean" + "type": "boolean", + "description": "Whether the voice was enrolled for matching immediately" }, "item": { - "$ref": "#/components/schemas/IdentityPostResponsesContentApplicationJsonSchemaItem" + "$ref": "#/components/schemas/IdentitySummary" } }, "title": "Identity_createIdentity_Response_200" }, - "IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems": { + "Identity_deleteIdentity_Response_200": { "type": "object", - "properties": {}, - "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems" + "properties": { + "success": { + "type": "boolean" + } + }, + "title": "Identity_deleteIdentity_Response_200" + }, + "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality": { + "type": "string", + "enum": [ + "audio", + "image" + ], + "description": "Inferred from the media's content type when omitted (defaults to audio)", + "title": "IdentitySearchPostRequestBodyContentApplicationJsonSchemaModality" + }, + "IdentitySearchPostResponsesContentApplicationJsonSchemaModality": { + "type": "string", + "enum": [ + "audio", + "image" + ], + "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + }, + "IdentitySearchPostResponsesContentApplicationJsonSchemaItem": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "distance": { + "type": "number", + "format": "double" + }, + "score_type": { + "type": "string" + } + }, + "title": "IdentitySearchPostResponsesContentApplicationJsonSchemaItem" }, "Identity_searchIdentities_Response_200": { "type": "object", @@ -10134,11 +10430,15 @@ "success": { "type": "boolean" }, - "matches": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaMatchesItems" - } + "modality": { + "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaModality" + }, + "item": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/IdentitySearchPostResponsesContentApplicationJsonSchemaItem" + }, + "description": "Matches keyed by identity UUID. distance is a 0-100 match score (higher is closer; an identical sample scores 100). Image matches include score_type \"cosine\".\n" } }, "title": "Identity_searchIdentities_Response_200"