diff --git a/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs index 8cd9271..80e0d87 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.IResembleAIClient.g.cs @@ -165,6 +165,11 @@ public partial interface IResembleAIClient : global::System.IDisposable /// public TermSubstitutionsClient TermSubstitutions { get; } + /// + /// + /// + public TextDetectionClient TextDetection { get; } + /// /// /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.Authorizations.Bearer.g.cs new file mode 100644 index 0000000..abfd4a0 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.Authorizations.Bearer.g.cs @@ -0,0 +1,16 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial interface ITextDetectionClient + { + /// + /// Authorize using bearer authentication. + /// + /// + + public void AuthorizeUsingBearer( + string apiKey); + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.CreateTextDetection.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.CreateTextDetection.g.cs new file mode 100644 index 0000000..326de0c --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.CreateTextDetection.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface ITextDetectionClient + { + /// + /// Detect AI-generated text
+ /// Submit a passage of text and classify it as AI-generated or human-written.
+ /// Processing is asynchronous by default: the response returns immediately with `status: processing`,
+ /// and you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the
+ /// `Prefer: wait` header to block until the verdict is available and receive the completed item in the
+ /// same response. Allow a generous client timeout when waiting, since the first request after a period
+ /// of inactivity can take several minutes while the model warms up.
+ /// Requests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains
+ /// fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained
+ /// (`uncertain`) results are not billed. + ///
+ /// + /// + /// 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 CreateTextDetectionAsync( + + global::ResembleAI.TextDetectRequest request, + global::ResembleAI.TextDetectPostParametersPrefer? prefer = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Detect AI-generated text
+ /// Submit a passage of text and classify it as AI-generated or human-written.
+ /// Processing is asynchronous by default: the response returns immediately with `status: processing`,
+ /// and you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the
+ /// `Prefer: wait` header to block until the verdict is available and receive the completed item in the
+ /// same response. Allow a generous client timeout when waiting, since the first request after a period
+ /// of inactivity can take several minutes while the model warms up.
+ /// Requests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains
+ /// fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained
+ /// (`uncertain`) results are not billed. + ///
+ /// + /// + /// 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> CreateTextDetectionAsResponseAsync( + + global::ResembleAI.TextDetectRequest request, + global::ResembleAI.TextDetectPostParametersPrefer? prefer = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Detect AI-generated text
+ /// Submit a passage of text and classify it as AI-generated or human-written.
+ /// Processing is asynchronous by default: the response returns immediately with `status: processing`,
+ /// and you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the
+ /// `Prefer: wait` header to block until the verdict is available and receive the completed item in the
+ /// same response. Allow a generous client timeout when waiting, since the first request after a period
+ /// of inactivity can take several minutes while the model warms up.
+ /// Requests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains
+ /// fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained
+ /// (`uncertain`) results are not billed. + ///
+ /// + /// + /// The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length. + /// + /// + /// How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.
+ /// Default Value: low + /// + /// + /// Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`. + /// + /// + /// POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed. + /// + /// 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 CreateTextDetectionAsync( + string text, + global::ResembleAI.TextDetectPostParametersPrefer? prefer = default, + global::ResembleAI.TextDetectRequestThinking? thinking = default, + double? threshold = default, + string? callbackUrl = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.GetTextDetection.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.GetTextDetection.g.cs new file mode 100644 index 0000000..6eb27d6 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.GetTextDetection.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface ITextDetectionClient + { + /// + /// Get text detection
+ /// Retrieve a text detection by UUID. Poll this endpoint until `status` is `completed` or `failed`. + ///
+ /// + /// 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 GetTextDetectionAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Get text detection
+ /// Retrieve a text detection by UUID. Poll this endpoint until `status` is `completed` or `failed`. + ///
+ /// + /// 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> GetTextDetectionAsResponseAsync( + 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.ITextDetectionClient.ListTextDetections.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.ListTextDetections.g.cs new file mode 100644 index 0000000..5e43aa2 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.ListTextDetections.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace ResembleAI +{ + public partial interface ITextDetectionClient + { + /// + /// List text detections
+ /// Retrieve a paginated list of text detections for the authenticated user's team, newest first. + ///
+ /// + /// + /// Default Value: 10 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task ListTextDetectionsAsync( + int page, + int? pageSize = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List text detections
+ /// Retrieve a paginated list of text detections for the authenticated user's team, newest first. + ///
+ /// + /// + /// Default Value: 10 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> ListTextDetectionsAsResponseAsync( + int page, + int? pageSize = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.g.cs new file mode 100644 index 0000000..7627e69 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.ITextDetectionClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface ITextDetectionClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::ResembleAI.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemPrediction.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemPrediction.g.cs new file mode 100644 index 0000000..0c18594 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemPrediction.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectItemPredictionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectItemPrediction 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.TextDetectItemPredictionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectItemPrediction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectItemPrediction); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectItemPrediction value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.TextDetectItemPredictionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemPredictionNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemPredictionNullable.g.cs new file mode 100644 index 0000000..40d540b --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemPredictionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectItemPredictionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectItemPrediction? 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.TextDetectItemPredictionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectItemPrediction)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectItemPrediction?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectItemPrediction? 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.TextDetectItemPredictionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemStatus.g.cs new file mode 100644 index 0000000..3fb8745 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemStatus.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectItemStatus 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.TextDetectItemStatusExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectItemStatus); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectItemStatus value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.TextDetectItemStatusExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemStatusNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemStatusNullable.g.cs new file mode 100644 index 0000000..2868ebe --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectItemStatusNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectItemStatus? 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.TextDetectItemStatusExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectItemStatus)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectItemStatus?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectItemStatus? 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.TextDetectItemStatusExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectPostParametersPrefer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectPostParametersPrefer.g.cs new file mode 100644 index 0000000..4b30bd4 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectPostParametersPrefer.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectPostParametersPreferJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectPostParametersPrefer 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.TextDetectPostParametersPreferExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectPostParametersPrefer)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectPostParametersPrefer); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectPostParametersPrefer value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.TextDetectPostParametersPreferExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectPostParametersPreferNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectPostParametersPreferNullable.g.cs new file mode 100644 index 0000000..cc77378 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectPostParametersPreferNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectPostParametersPreferNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectPostParametersPrefer? 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.TextDetectPostParametersPreferExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectPostParametersPrefer)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectPostParametersPrefer?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectPostParametersPrefer? 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.TextDetectPostParametersPreferExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectRequestThinking.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectRequestThinking.g.cs new file mode 100644 index 0000000..beb5042 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectRequestThinking.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectRequestThinkingJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectRequestThinking 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.TextDetectRequestThinkingExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectRequestThinking)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectRequestThinking); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectRequestThinking value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::ResembleAI.TextDetectRequestThinkingExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectRequestThinkingNullable.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectRequestThinkingNullable.g.cs new file mode 100644 index 0000000..c303cb6 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonConverters.TextDetectRequestThinkingNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace ResembleAI.JsonConverters +{ + /// + public sealed class TextDetectRequestThinkingNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::ResembleAI.TextDetectRequestThinking? 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.TextDetectRequestThinkingExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::ResembleAI.TextDetectRequestThinking)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::ResembleAI.TextDetectRequestThinking?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::ResembleAI.TextDetectRequestThinking? 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.TextDetectRequestThinkingExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs index 33c9883..610d4a0 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContext.g.cs @@ -217,6 +217,15 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMetrics), TypeInfoPropertyName = "WatermarkDetectItemMetrics2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus), TypeInfoPropertyName = "TextDetectItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemPrediction), TypeInfoPropertyName = "TextDetectItemPrediction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectPostParametersPrefer), TypeInfoPropertyName = "TextDetectPostParametersPrefer2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequestThinking), TypeInfoPropertyName = "TextDetectRequestThinking2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionInputModality), TypeInfoPropertyName = "SignalSubmissionInputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionVerdict), TypeInfoPropertyName = "SignalSubmissionVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalCategoryScore))] @@ -505,15 +514,6 @@ namespace ResembleAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionModelResultStatus?), TypeInfoPropertyName = "NullableWatermarkVisionModelResultStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkVisionDetectionMetricsVerdict?), TypeInfoPropertyName = "NullableWatermarkVisionDetectionMetricsVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectWatermarkAnalysisMetrics?), TypeInfoPropertyName = "NullableDetectWatermarkAnalysisMetrics2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectC2PaManifestValidationState?), TypeInfoPropertyName = "NullableDetectC2PaManifestValidationState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment2")] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -526,6 +526,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex Converters = new global::System.Type[] { })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectC2PaManifestValidationState?), TypeInfoPropertyName = "NullableDetectC2PaManifestValidationState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostRequestBodyContentMultipartFormDataSchemaModality?), TypeInfoPropertyName = "NullableDetectPostRequestBodyContentMultipartFormDataSchemaModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemModality?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1FraudType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescriptionOneOf1LivenessAssessment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription?), TypeInfoPropertyName = "NullableDetectPostResponsesContentApplicationJsonSchemaItemIntelligenceDescription2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemMediaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.DetectUuidGetResponsesContentApplicationJsonSchemaItemStatus?), TypeInfoPropertyName = "NullableDetectUuidGetResponsesContentApplicationJsonSchemaItemStatus2")] @@ -576,6 +585,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemStatus?), TypeInfoPropertyName = "NullableWatermarkDetectItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemModelVersion?), TypeInfoPropertyName = "NullableWatermarkDetectItemModelVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.WatermarkDetectItemMetrics?), TypeInfoPropertyName = "NullableWatermarkDetectItemMetrics2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus?), TypeInfoPropertyName = "NullableTextDetectItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemPrediction?), TypeInfoPropertyName = "NullableTextDetectItemPrediction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableTextDetectPostParametersPrefer2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequestThinking?), TypeInfoPropertyName = "NullableTextDetectRequestThinking2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionInputModality?), TypeInfoPropertyName = "NullableSignalSubmissionInputModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalSubmissionVerdict?), TypeInfoPropertyName = "NullableSignalSubmissionVerdict2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.SignalScoreItemInputModality?), TypeInfoPropertyName = "NullableSignalScoreItemInputModality2")] @@ -625,6 +638,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -981,6 +995,22 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::ResembleAI.WatermarkDetectItemModelVersion?) + || typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus) + + || typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus?) + + || typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction) + + || typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction?) + + || typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer) + + || typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer?) + + || typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking) + + || typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking?) + || typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality) || typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality?) @@ -1722,6 +1752,46 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::ResembleAI.JsonConverters.WatermarkDetectItemModelVersionNullableJsonConverter(); } + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemStatusJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus?)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemStatusNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemPredictionJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction?)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemPredictionNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer)) + { + return new global::ResembleAI.JsonConverters.TextDetectPostParametersPreferJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer?)) + { + return new global::ResembleAI.JsonConverters.TextDetectPostParametersPreferNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking)) + { + return new global::ResembleAI.JsonConverters.TextDetectRequestThinkingJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking?)) + { + return new global::ResembleAI.JsonConverters.TextDetectRequestThinkingNullableJsonConverter(); + } + if (typeToConvert == typeof(global::ResembleAI.SignalSubmissionInputModality)) { return new global::ResembleAI.JsonConverters.SignalSubmissionInputModalityJsonConverter(); diff --git a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs index 08d262d..7042044 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.JsonSerializerContextTypes.g.cs @@ -829,1091 +829,1127 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::ResembleAI.SignalSubmissionInputModality? Type199 { get; set; } + public global::ResembleAI.TextDetectItemStatus? Type199 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmissionVerdict? Type200 { get; set; } + public global::ResembleAI.TextDetectItemPrediction? Type200 { get; set; } /// /// /// - public global::ResembleAI.SignalCategoryScore? Type201 { get; set; } + public global::ResembleAI.TextDetectItem? Type201 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreItemInputModality? Type202 { get; set; } + public global::ResembleAI.TextDetectListResponse? Type202 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreItemVerdict? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::ResembleAI.SignalTopMatch? Type204 { get; set; } + public global::ResembleAI.TextDetectPostParametersPrefer? Type204 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreItem? Type205 { get; set; } + public global::ResembleAI.TextDetectRequestThinking? Type205 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type206 { get; set; } + public global::ResembleAI.TextDetectRequest? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::ResembleAI.TextDetectResponse? Type207 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmission? Type208 { get; set; } + public global::ResembleAI.SignalSubmissionInputModality? Type208 { get; set; } /// /// /// - public global::ResembleAI.SignalSubmissionListResponse? Type209 { get; set; } + public global::ResembleAI.SignalSubmissionVerdict? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::ResembleAI.SignalCategoryScore? Type210 { get; set; } /// /// /// - public global::ResembleAI.SignalError? Type211 { get; set; } + public global::ResembleAI.SignalScoreItemInputModality? Type211 { get; set; } /// /// /// - public long? Type212 { get; set; } + public global::ResembleAI.SignalScoreItemVerdict? Type212 { get; set; } /// /// /// - public global::ResembleAI.SignalScoreResponse? Type213 { get; set; } + public global::ResembleAI.SignalTopMatch? Type213 { get; set; } /// /// /// - public global::ResembleAI.SignalSuccessResponse? Type214 { get; set; } + public global::ResembleAI.SignalScoreItem? Type214 { get; set; } /// /// /// - public global::ResembleAI.SignalSettings? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::ResembleAI.SignalBuiltInCategory? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryStatus? Type217 { get; set; } + public global::ResembleAI.SignalSubmission? Type217 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryOverlapsItems? Type218 { get; set; } + public global::ResembleAI.SignalSubmissionListResponse? Type218 { get; set; } /// /// /// - public global::ResembleAI.SignalScenario? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategory? Type220 { get; set; } + public global::ResembleAI.SignalError? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public long? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } + public global::ResembleAI.SignalScoreResponse? Type222 { get; set; } /// /// /// - public global::ResembleAI.SignalCalibrationWarningsItems? Type223 { get; set; } + public global::ResembleAI.SignalSuccessResponse? Type223 { get; set; } /// /// /// - public global::ResembleAI.SignalCalibration? Type224 { get; set; } + public global::ResembleAI.SignalSettings? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::ResembleAI.SignalBuiltInCategory? Type225 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryListResponse? Type226 { get; set; } + public global::ResembleAI.SignalCustomCategoryStatus? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::ResembleAI.SignalCustomCategoryOverlapsItems? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::ResembleAI.SignalScenario? Type228 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryCreateRequest? Type229 { get; set; } + public global::ResembleAI.SignalCustomCategory? Type229 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryResponse? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::ResembleAI.SignalCustomCategoryUpdateRequest? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::ResembleAI.SignalSettingsUpdateRequest? Type232 { get; set; } + public global::ResembleAI.SignalCalibrationWarningsItems? Type232 { get; set; } /// /// /// - public global::ResembleAI.SignalSettingsResponse? Type233 { get; set; } + public global::ResembleAI.SignalCalibration? Type233 { get; set; } /// /// /// - public global::ResembleAI.SecureUploadsCreateSecureUploadResponse200? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? Type235 { get; set; } + public global::ResembleAI.SignalCustomCategoryListResponse? Type235 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type236 { get; set; } /// /// /// - public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public global::ResembleAI.AudioTimestamps? Type238 { get; set; } + public global::ResembleAI.SignalCustomCategoryCreateRequest? Type238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type239 { get; set; } + public global::ResembleAI.SignalCustomCategoryResponse? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::ResembleAI.SignalCustomCategoryUpdateRequest? Type240 { get; set; } /// /// /// - public global::ResembleAI.TextToSpeechSynthesizeResponse200? Type241 { get; set; } + public global::ResembleAI.SignalSettingsUpdateRequest? Type241 { get; set; } /// /// /// - public byte[]? Type242 { get; set; } + public global::ResembleAI.SignalSettingsResponse? Type242 { get; set; } /// /// /// - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? Type243 { get; set; } + public global::ResembleAI.SecureUploadsCreateSecureUploadResponse200? Type243 { get; set; } /// /// /// - public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? Type244 { get; set; } + public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaPrecision? Type244 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? Type245 { get; set; } + public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaOutputFormat? Type245 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? Type246 { get; set; } + public global::ResembleAI.SynthesizePostRequestBodyContentApplicationJsonSchemaSampleRate? Type246 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextListTranscriptsResponse200? Type247 { get; set; } + public global::ResembleAI.AudioTimestamps? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::System.Collections.Generic.IList>? Type248 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? Type250 { get; set; } + public global::ResembleAI.TextToSpeechSynthesizeResponse200? Type250 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextCreateTranscriptResponse200? Type251 { get; set; } + public byte[]? Type251 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type252 { get; set; } + public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaPrecision? Type252 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? Type253 { get; set; } + public global::ResembleAI.StreamPostRequestBodyContentApplicationJsonSchemaSampleRate? Type253 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? Type254 { get; set; } + public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaItemsItems? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::ResembleAI.SpeechToTextGetResponsesContentApplicationJsonSchemaMeta? Type255 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetTranscriptResponse200? Type256 { get; set; } + public global::ResembleAI.SpeechToTextListTranscriptsResponse200? Type256 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? Type258 { get; set; } + public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItemStatus? Type258 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? Type259 { get; set; } + public global::ResembleAI.SpeechToTextPostResponsesContentApplicationJsonSchemaItem? Type259 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? Type260 { get; set; } + public global::ResembleAI.SpeechToTextCreateTranscriptResponse200? Type260 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? Type261 { get; set; } + public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemStatus? Type261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type262 { get; set; } + public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItemWordsItems? Type262 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type263 { get; set; } + public global::ResembleAI.SpeechToTextUuidGetResponsesContentApplicationJsonSchemaItem? Type263 { get; set; } /// /// /// - public global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type265 { get; set; } + public global::ResembleAI.SpeechToTextGetTranscriptResponse200? Type265 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? Type266 { get; set; } + public global::ResembleAI.SpeechToTextUuidAskPostResponsesContentApplicationJsonSchemaItem? Type266 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? Type267 { get; set; } + public global::ResembleAI.SpeechToTextAskTranscriptQuestionResponse200? Type267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type268 { get; set; } + public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaItemsItems? Type268 { get; set; } /// /// /// - public global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? Type269 { get; set; } + public global::ResembleAI.SpeechToTextUuidQuestionsGetResponsesContentApplicationJsonSchemaMeta? Type269 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? Type270 { get; set; } + public global::ResembleAI.SpeechToTextListTranscriptQuestionsResponse200? Type270 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? Type272 { get; set; } + public global::ResembleAI.SpeechToTextUuidQuestionsQuestionUuidGetResponsesContentApplicationJsonSchemaItem? Type272 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? Type273 { get; set; } + public global::ResembleAI.SpeechToTextGetTranscriptQuestionResponse200? Type273 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? Type274 { get; set; } + public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItemsStatus? Type274 { get; set; } /// /// /// - public global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? Type275 { get; set; } + public global::ResembleAI.AudioEnhancementsGetResponsesContentApplicationJsonSchemaItemsItems? Type275 { get; set; } /// /// /// - public global::ResembleAI.GetAudioEnhancementRequestNotFoundError? Type276 { get; set; } + public global::ResembleAI.AudioEnhancementListAudioEnhancementsResponse200? Type276 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type278 { get; set; } + public global::ResembleAI.ListAudioEnhancementsRequestBadRequestError? Type278 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type279 { get; set; } + public global::ResembleAI.AudioEnhancementsPostResponsesContentApplicationJsonSchemaStatus? Type279 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type280 { get; set; } + public global::ResembleAI.AudioEnhancementCreateAudioEnhancementResponse202? Type280 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type281 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequestBadRequestError? Type281 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type282 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequestForbiddenError? Type282 { get; set; } /// /// /// - public global::ResembleAI.VoicesListVoicesResponse200? Type283 { get; set; } + public global::ResembleAI.AudioEnhancementsEnhancementUuidGetResponsesContentApplicationJsonSchemaStatus? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::ResembleAI.AudioEnhancementGetAudioEnhancementResponse200? Type284 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type285 { get; set; } + public global::ResembleAI.GetAudioEnhancementRequestNotFoundError? Type285 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type286 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type286 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type287 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatus? Type287 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type288 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusTextToSpeech? Type288 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type289 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusFill? Type289 { get; set; } /// /// /// - public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type290 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsComponentStatusVoiceConversion? Type290 { get; set; } /// /// /// - public global::ResembleAI.VoicesCreateVoiceResponse200? Type291 { get; set; } + public global::ResembleAI.VoicesGetResponsesContentApplicationJsonSchemaItemsItemsApiSupport? Type291 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type292 { get; set; } + public global::ResembleAI.VoicesListVoicesResponse200? Type292 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type294 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItem? Type294 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type295 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatus? Type295 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type296 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type296 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type297 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type297 { get; set; } /// /// /// - public global::ResembleAI.VoicesGetVoiceResponse200? Type298 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type298 { get; set; } /// /// /// - public global::ResembleAI.VoicesDeleteVoiceResponse200? Type299 { get; set; } + public global::ResembleAI.VoicesPostResponsesContentApplicationJsonSchemaItemApiSupport? Type299 { get; set; } /// /// /// - public global::ResembleAI.VoicesBuildVoiceResponse200? Type300 { get; set; } + public global::ResembleAI.VoicesCreateVoiceResponse200? Type300 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type301 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItem? Type301 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type302 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatus? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusTextToSpeech? Type303 { get; set; } /// /// /// - public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type304 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusFill? Type304 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type305 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemComponentStatusVoiceConversion? Type305 { get; set; } /// /// /// - public global::ResembleAI.RecordingsListRecordingsResponse200? Type306 { get; set; } + public global::ResembleAI.VoicesVoiceUuidGetResponsesContentApplicationJsonSchemaItemApiSupport? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::ResembleAI.VoicesGetVoiceResponse200? Type307 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type308 { get; set; } + public global::ResembleAI.VoicesDeleteVoiceResponse200? Type308 { get; set; } /// /// /// - public global::ResembleAI.RecordingsCreateRecordingResponse200? Type309 { get; set; } + public global::ResembleAI.VoicesBuildVoiceResponse200? Type309 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type310 { get; set; } + public global::ResembleAI.VoiceDesignPostResponsesContentApplicationJsonSchemaVoiceCandidatesItems? Type310 { get; set; } /// /// /// - public global::ResembleAI.RecordingsGetRecordingResponse200? Type311 { get; set; } + public global::ResembleAI.VoiceDesignGenerateVoiceDesignResponse200? Type311 { get; set; } /// /// /// - public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type312 { get; set; } + public global::System.Collections.Generic.IList? Type312 { get; set; } /// /// /// - public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type313 { get; set; } + public global::ResembleAI.VoiceDesignCreateVoiceFromCandidateResponse200? Type313 { get; set; } /// /// /// - public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type314 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsGetResponsesContentApplicationJsonSchemaItemsItems? Type314 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type315 { get; set; } + public global::ResembleAI.RecordingsListRecordingsResponse200? Type315 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsPostResponsesContentApplicationJsonSchemaItem? Type317 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type318 { get; set; } + public global::ResembleAI.RecordingsCreateRecordingResponse200? Type318 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type319 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdGetResponsesContentApplicationJsonSchemaItem? Type319 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type320 { get; set; } + public global::ResembleAI.RecordingsGetRecordingResponse200? Type320 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type321 { get; set; } + public global::ResembleAI.RecordingsDeleteRecordingResponse200? Type321 { get; set; } /// /// /// - public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type322 { get; set; } + public global::ResembleAI.VoicesVoiceUuidRecordingsRecordingIdPatchResponsesContentApplicationJsonSchemaItem? Type322 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsGetParametersStatus? Type323 { get; set; } + public global::ResembleAI.RecordingsUpdateRecordingResponse200? Type323 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationStatus? Type324 { get; set; } + public global::ResembleAI.TermSubstitutionsGetResponsesContentApplicationJsonSchemaItemsItems? Type324 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciation? Type325 { get; set; } + public global::ResembleAI.TermSubstitutionsListTermSubstitutionsResponse200? Type325 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type327 { get; set; } + public global::ResembleAI.TermSubstitutionsPostResponsesContentApplicationJsonSchemaItem? Type327 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type328 { get; set; } + public global::ResembleAI.TermSubstitutionsCreateTermSubstitutionResponse200? Type328 { get; set; } /// /// /// - public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type329 { get; set; } + public global::ResembleAI.TermSubstitutionsIdGetResponsesContentApplicationJsonSchemaItem? Type329 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type330 { get; set; } + public global::ResembleAI.TermSubstitutionsGetTermSubstitutionResponse200? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::ResembleAI.TermSubstitutionsDeleteTermSubstitutionResponse200? Type331 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type332 { get; set; } + public global::ResembleAI.PronunciationsGetParametersStatus? Type332 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type333 { get; set; } + public global::ResembleAI.CustomPronunciationStatus? Type333 { get; set; } /// /// /// - public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type334 { get; set; } + public global::ResembleAI.CustomPronunciation? Type334 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type335 { get; set; } + public global::ResembleAI.CustomPronunciationsListPronunciationsResponse200? Type335 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type336 { get; set; } + public global::System.Collections.Generic.IList? Type336 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type337 { get; set; } + public global::ResembleAI.CustomPronunciationsCreatePronunciationResponse201? Type337 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type338 { get; set; } + public global::ResembleAI.PronunciationsBulkPostResponsesContentApplicationJsonSchemaErrorsItems? Type338 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type339 { get; set; } + public global::ResembleAI.CustomPronunciationsBulkCreatePronunciationsResponse201? Type339 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type341 { get; set; } + public global::ResembleAI.CustomPronunciationsGetPronunciationResponse200? Type341 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type342 { get; set; } + public global::ResembleAI.CustomPronunciationsDeletePronunciationResponse200? Type342 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type343 { get; set; } + public global::ResembleAI.CustomPronunciationsUpdatePronunciationResponse200? Type343 { get; set; } /// /// /// - public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type344 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetResponsesContentApplicationJsonSchemaItemsItems? Type344 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type345 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsListVoiceSettingsPresetsResponse200? Type345 { get; set; } /// /// /// - public global::ResembleAI.ProjectsListProjectsResponse200? Type346 { get; set; } + public global::System.Collections.Generic.IList? Type346 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type347 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsPostResponsesContentApplicationJsonSchemaData? Type347 { get; set; } /// /// /// - public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type348 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsCreateVoiceSettingsPresetResponse201? Type348 { get; set; } /// /// /// - public global::ResembleAI.ProjectsCreateProjectResponse200? Type349 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidGetResponsesContentApplicationJsonSchemaData? Type349 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type350 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsGetVoiceSettingsPresetResponse200? Type350 { get; set; } /// /// /// - public global::ResembleAI.ProjectsGetProjectResponse200? Type351 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsDeleteVoiceSettingsPresetResponse200? Type351 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type352 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUuidPatchResponsesContentApplicationJsonSchemaData? Type352 { get; set; } /// /// /// - public global::ResembleAI.ProjectsUpdateProjectResponse200? Type353 { get; set; } + public global::ResembleAI.VoiceSettingsPresetsUpdateVoiceSettingsPresetResponse200? Type353 { get; set; } /// /// /// - public global::ResembleAI.ProjectsDeleteProjectResponse200? Type354 { get; set; } + public global::ResembleAI.ProjectsGetResponsesContentApplicationJsonSchemaItemsItems? Type354 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type355 { get; set; } + public global::ResembleAI.ProjectsListProjectsResponse200? Type355 { get; set; } /// /// /// - public global::ResembleAI.ClipsListClipsResponse200? Type356 { get; set; } + public global::System.Collections.Generic.IList? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::ResembleAI.ProjectsPostResponsesContentApplicationJsonSchemaItem? Type357 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type358 { get; set; } + public global::ResembleAI.ProjectsCreateProjectResponse200? Type358 { get; set; } /// /// /// - public global::ResembleAI.ClipsGetClipResponse200? Type359 { get; set; } + public global::ResembleAI.ProjectsProjectUuidGetResponsesContentApplicationJsonSchemaItem? Type359 { get; set; } /// /// /// - public global::ResembleAI.ClipsDeleteClipResponse200? Type360 { get; set; } + public global::ResembleAI.ProjectsGetProjectResponse200? Type360 { get; set; } /// /// /// - public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type361 { get; set; } + public global::ResembleAI.ProjectsProjectUuidPutResponsesContentApplicationJsonSchemaItem? Type361 { get; set; } /// /// /// - public global::ResembleAI.ClipsUpdateClipResponse200? Type362 { get; set; } + public global::ResembleAI.ProjectsUpdateProjectResponse200? Type362 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type363 { get; set; } + public global::ResembleAI.ProjectsDeleteProjectResponse200? Type363 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicesResponse200? Type364 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsGetResponsesContentApplicationJsonSchemaItemsItems? Type364 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type365 { get; set; } + public global::ResembleAI.ClipsListClipsResponse200? Type365 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type366 { get; set; } + public global::System.Collections.Generic.IList? Type366 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type367 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidGetResponsesContentApplicationJsonSchemaItem? Type367 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type368 { get; set; } + public global::ResembleAI.ClipsGetClipResponse200? Type368 { get; set; } /// /// /// - public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type369 { get; set; } + public global::ResembleAI.ClipsDeleteClipResponse200? Type369 { get; set; } /// /// /// - public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type370 { get; set; } + public global::ResembleAI.ProjectsProjectUuidClipsClipUuidPatchResponsesContentApplicationJsonSchemaItem? Type370 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type371 { get; set; } + public global::ResembleAI.ClipsUpdateClipResponse200? Type371 { get; set; } /// /// /// - public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type372 { get; set; } + public global::ResembleAI.DuetVoicesGetResponsesContentApplicationJsonSchemaItemsItems? Type372 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type373 { get; set; } + public global::ResembleAI.DuetsListDuetVoicesResponse200? Type373 { get; set; } /// /// /// - public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type374 { get; set; } + public global::System.Collections.Generic.IList? Type374 { get; set; } /// /// /// - public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type375 { get; set; } + public global::ResembleAI.DuetVoicesPostResponsesContentApplicationJsonSchemaItem? Type375 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type376 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoiceResponse200? Type376 { get; set; } /// /// /// - public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type377 { get; set; } + public global::ResembleAI.DuetVoicesIdPutResponsesContentApplicationJsonSchemaItem? Type377 { get; set; } /// /// /// - public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type378 { get; set; } + public global::ResembleAI.DuetsUpdateDuetVoiceResponse200? Type378 { get; set; } /// /// /// - public global::ResembleAI.DuetsGenerateDuetResponse200? Type379 { get; set; } + public global::ResembleAI.DuetsDeleteDuetVoiceResponse200? Type379 { get; set; } /// /// /// - public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type380 { get; set; } + public global::ResembleAI.DuetVoicePairsGetResponsesContentApplicationJsonSchemaItemsItems? Type380 { get; set; } /// /// /// - public global::ResembleAI.AccountGetAccountResponse200? Type381 { get; set; } + public global::ResembleAI.DuetsListDuetVoicePairsResponse200? Type381 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type382 { get; set; } + public global::System.Collections.Generic.IList? Type382 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamsResponse200? Type383 { get; set; } + public global::ResembleAI.DuetVoicePairsPostResponsesContentApplicationJsonSchemaItem? Type383 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type384 { get; set; } + public global::ResembleAI.DuetsCreateDuetVoicePairResponse200? Type384 { get; set; } /// /// /// - public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type385 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItemsSpeaker? Type385 { get; set; } /// /// /// - public global::ResembleAI.AccountGetTeamResponse200? Type386 { get; set; } + public global::ResembleAI.DuetPostRequestBodyContentApplicationJsonSchemaScriptItems? Type386 { get; set; } /// /// /// - public global::ResembleAI.BillingPlanPlanType? Type387 { get; set; } + public global::ResembleAI.DuetPostResponsesContentApplicationJsonSchemaItem? Type387 { get; set; } /// /// /// - public global::ResembleAI.BillingPlanBillingInterval? Type388 { get; set; } + public global::ResembleAI.DuetsGenerateDuetResponse200? Type388 { get; set; } /// /// /// - public global::ResembleAI.BillingPlanFamily? Type389 { get; set; } + public global::ResembleAI.AccountGetResponsesContentApplicationJsonSchemaItem? Type389 { get; set; } /// /// /// - public global::ResembleAI.BillingPlanProductCategory? Type390 { get; set; } + public global::ResembleAI.AccountGetAccountResponse200? Type390 { get; set; } /// /// /// - public global::ResembleAI.BillingProductRateTier? Type391 { get; set; } + public global::ResembleAI.AccountTeamsGetResponsesContentApplicationJsonSchemaItemsItems? Type391 { get; set; } /// /// /// - public global::ResembleAI.BillingProductFamily? Type392 { get; set; } + public global::ResembleAI.AccountGetTeamsResponse200? Type392 { get; set; } /// /// /// - public global::ResembleAI.BillingPlanProduct? Type393 { get; set; } + public global::System.Collections.Generic.IList? Type393 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type394 { get; set; } + public global::ResembleAI.AccountTeamsTeamUuidGetResponsesContentApplicationJsonSchemaItem? Type394 { get; set; } /// /// /// - public global::ResembleAI.BillingPlan? Type395 { get; set; } + public global::ResembleAI.AccountGetTeamResponse200? Type395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type396 { get; set; } + public global::ResembleAI.BillingPlanPlanType? Type396 { get; set; } /// /// /// - public global::ResembleAI.BillingPlansResponse? Type397 { get; set; } + public global::ResembleAI.BillingPlanBillingInterval? Type397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type398 { get; set; } + public global::ResembleAI.BillingPlanFamily? Type398 { get; set; } /// /// /// - public global::ResembleAI.BillingError? Type399 { get; set; } + public global::ResembleAI.BillingPlanProductCategory? Type399 { get; set; } /// /// /// - public global::ResembleAI.BillingPlanResponse? Type400 { get; set; } + public global::ResembleAI.BillingProductRateTier? Type400 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscriptionStatus? Type401 { get; set; } + public global::ResembleAI.BillingProductFamily? Type401 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscriptionProductCategory? Type402 { get; set; } + public global::ResembleAI.BillingPlanProduct? Type402 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscriptionProduct? Type403 { get; set; } + public global::System.Collections.Generic.IList? Type403 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscriptionPlanProduct? Type404 { get; set; } + public global::ResembleAI.BillingPlan? Type404 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscriptionItem? Type405 { get; set; } + public global::System.Collections.Generic.IList? Type405 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscription? Type406 { get; set; } + public global::ResembleAI.BillingPlansResponse? Type406 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type407 { get; set; } + public global::System.Collections.Generic.IList? Type407 { get; set; } /// /// /// - public global::ResembleAI.BillingSubscriptionResponse? Type408 { get; set; } + public global::ResembleAI.BillingError? Type408 { get; set; } /// /// /// - public global::ResembleAI.BillingForbiddenError? Type409 { get; set; } + public global::ResembleAI.BillingPlanResponse? Type409 { get; set; } /// /// /// - public global::ResembleAI.BillingProductQuantityChange? Type410 { get; set; } + public global::ResembleAI.BillingSubscriptionStatus? Type410 { get; set; } /// /// /// - public global::ResembleAI.BillingUpdateProductsRequest? Type411 { get; set; } + public global::ResembleAI.BillingSubscriptionProductCategory? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type412 { get; set; } + public global::ResembleAI.BillingSubscriptionProduct? Type412 { get; set; } /// /// /// - public global::ResembleAI.BillingPaymentActionRequired? Type413 { get; set; } + public global::ResembleAI.BillingSubscriptionPlanProduct? Type413 { get; set; } /// /// /// - public global::ResembleAI.BillingValidationErrors? Type414 { get; set; } + public global::ResembleAI.BillingSubscriptionItem? Type414 { get; set; } /// /// /// - public global::ResembleAI.UpdateBillingSubscriptionProductsRequestUnprocessableEntityError? Type415 { get; set; } + public global::ResembleAI.BillingSubscription? Type415 { get; set; } /// /// /// - public global::ResembleAI.BillingConfirmPaymentRequest? Type416 { get; set; } + public global::System.Collections.Generic.IList? Type416 { get; set; } /// /// /// - public global::ResembleAI.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError? Type417 { get; set; } + public global::ResembleAI.BillingSubscriptionResponse? Type417 { get; set; } /// /// /// - public global::ResembleAI.BillingChangePlanRequest? Type418 { get; set; } + public global::ResembleAI.BillingForbiddenError? Type418 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type419 { get; set; } + public global::ResembleAI.BillingProductQuantityChange? Type419 { get; set; } /// /// /// - public global::ResembleAI.ChangeBillingPlanRequestUnprocessableEntityError? Type420 { get; set; } + public global::ResembleAI.BillingUpdateProductsRequest? Type420 { get; set; } /// /// /// - public global::ResembleAI.BillingWallet? Type421 { get; set; } + public global::System.Collections.Generic.IList? Type421 { get; set; } /// /// /// - public global::ResembleAI.BillingWalletResponse? Type422 { get; set; } + public global::ResembleAI.BillingPaymentActionRequired? Type422 { get; set; } /// /// /// - public global::ResembleAI.BillingWalletTransactionTransactionType? Type423 { get; set; } + public global::ResembleAI.BillingValidationErrors? Type423 { get; set; } /// /// /// - public global::ResembleAI.BillingWalletTransaction? Type424 { get; set; } + public global::ResembleAI.UpdateBillingSubscriptionProductsRequestUnprocessableEntityError? Type424 { get; set; } /// /// /// - public global::ResembleAI.BillingPagination? Type425 { get; set; } + public global::ResembleAI.BillingConfirmPaymentRequest? Type425 { get; set; } /// /// /// - public global::ResembleAI.BillingTransactionsResponse? Type426 { get; set; } + public global::ResembleAI.ConfirmBillingSubscriptionPaymentRequestUnprocessableEntityError? Type426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type427 { get; set; } + public global::ResembleAI.BillingChangePlanRequest? Type427 { get; set; } /// /// /// - public global::ResembleAI.BillingAutoReloadSetting? Type428 { get; set; } + public global::System.Collections.Generic.Dictionary? Type428 { get; set; } /// /// /// - public global::ResembleAI.BillingAutoReloadResponse? Type429 { get; set; } + public global::ResembleAI.ChangeBillingPlanRequestUnprocessableEntityError? Type429 { get; set; } /// /// /// - public global::ResembleAI.BillingUpdateAutoReloadRequest? Type430 { get; set; } + public global::ResembleAI.BillingWallet? Type430 { get; set; } /// /// /// - public global::ResembleAI.BillingWalletUpdateBillingAutoReloadResponse200? Type431 { get; set; } + public global::ResembleAI.BillingWalletResponse? Type431 { get; set; } /// /// /// - public global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError? Type432 { get; set; } + public global::ResembleAI.BillingWalletTransactionTransactionType? Type432 { get; set; } /// /// /// - public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type433 { get; set; } + public global::ResembleAI.BillingWalletTransaction? Type433 { get; set; } /// /// /// - public global::ResembleAI.AccountGetBillingUsageResponse200? Type434 { get; set; } + public global::ResembleAI.BillingPagination? Type434 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectionRequest? Type435 { get; set; } + public global::ResembleAI.BillingTransactionsResponse? Type435 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectBatchRequest? Type436 { get; set; } + public global::System.Collections.Generic.IList? Type436 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type437 { get; set; } + public global::ResembleAI.BillingAutoReloadSetting? Type437 { get; set; } /// /// /// - public global::ResembleAI.CreateDetectFeedbackRequest? Type438 { get; set; } + public global::ResembleAI.BillingAutoReloadResponse? Type438 { get; set; } /// /// /// - public global::ResembleAI.RunDetectAgentInvestigationRequest? Type439 { get; set; } + public global::ResembleAI.BillingUpdateAutoReloadRequest? Type439 { get; set; } /// /// /// - public global::ResembleAI.RunIntelligenceRequest? Type440 { get; set; } + public global::ResembleAI.BillingWalletUpdateBillingAutoReloadResponse200? Type440 { get; set; } /// /// /// - public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type441 { get; set; } + public global::ResembleAI.UpdateBillingAutoReloadRequestUnprocessableEntityError? Type441 { get; set; } /// /// /// - public global::ResembleAI.CreateIdentityAttachmentRequest? Type442 { get; set; } + public global::ResembleAI.AccountBillingUsageGetResponsesContentApplicationJsonSchemaItem? Type442 { get; set; } /// /// /// - public global::ResembleAI.SearchIdentitiesRequest? Type443 { get; set; } + public global::ResembleAI.AccountGetBillingUsageResponse200? Type443 { get; set; } /// /// /// - public global::ResembleAI.CreateSignalSubmissionRequest? Type444 { get; set; } + public global::ResembleAI.CreateDetectionRequest? Type444 { get; set; } /// /// /// - public global::ResembleAI.CreateSecureUploadRequest? Type445 { get; set; } + public global::ResembleAI.CreateDetectBatchRequest? Type445 { get; set; } /// /// /// - public global::ResembleAI.SynthesizeRequest? Type446 { get; set; } + public global::System.Collections.Generic.IList? Type446 { get; set; } /// /// /// - public global::ResembleAI.StreamSynthesizeRequest? Type447 { get; set; } + public global::ResembleAI.CreateDetectFeedbackRequest? Type447 { get; set; } /// /// /// - public global::ResembleAI.CreateTranscriptRequest? Type448 { get; set; } + public global::ResembleAI.RunDetectAgentInvestigationRequest? Type448 { get; set; } /// /// /// - public global::ResembleAI.AskTranscriptQuestionRequest? Type449 { get; set; } + public global::ResembleAI.RunIntelligenceRequest? Type449 { get; set; } /// /// /// - public global::ResembleAI.CreateAudioEnhancementRequest? Type450 { get; set; } + public global::ResembleAI.AskDetectIntelligenceQuestionRequest? Type450 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceRequest? Type451 { get; set; } + public global::ResembleAI.CreateIdentityAttachmentRequest? Type451 { get; set; } /// /// /// - public global::ResembleAI.BuildVoiceRequest? Type452 { get; set; } + public global::ResembleAI.SearchIdentitiesRequest? Type452 { get; set; } /// /// /// - public global::ResembleAI.GenerateVoiceDesignRequest? Type453 { get; set; } + public global::ResembleAI.CreateSignalSubmissionRequest? Type453 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceFromCandidateRequest? Type454 { get; set; } + public global::ResembleAI.CreateSecureUploadRequest? Type454 { get; set; } /// /// /// - public global::ResembleAI.CreateRecordingRequest? Type455 { get; set; } + public global::ResembleAI.SynthesizeRequest? Type455 { get; set; } /// /// /// - public global::ResembleAI.UpdateRecordingRequest? Type456 { get; set; } + public global::ResembleAI.StreamSynthesizeRequest? Type456 { get; set; } /// /// /// - public global::ResembleAI.CreateTermSubstitutionRequest? Type457 { get; set; } + public global::ResembleAI.CreateTranscriptRequest? Type457 { get; set; } /// /// /// - public global::ResembleAI.CreatePronunciationRequest? Type458 { get; set; } + public global::ResembleAI.AskTranscriptQuestionRequest? Type458 { get; set; } /// /// /// - public global::ResembleAI.BulkCreatePronunciationsRequest? Type459 { get; set; } + public global::ResembleAI.CreateAudioEnhancementRequest? Type459 { get; set; } /// /// /// - public global::ResembleAI.UpdatePronunciationRequest? Type460 { get; set; } + public global::ResembleAI.CreateVoiceRequest? Type460 { get; set; } /// /// /// - public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type461 { get; set; } + public global::ResembleAI.BuildVoiceRequest? Type461 { get; set; } /// /// /// - public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type462 { get; set; } + public global::ResembleAI.GenerateVoiceDesignRequest? Type462 { get; set; } /// /// /// - public global::ResembleAI.CreateProjectRequest? Type463 { get; set; } + public global::ResembleAI.CreateVoiceFromCandidateRequest? Type463 { get; set; } /// /// /// - public global::ResembleAI.UpdateProjectRequest? Type464 { get; set; } + public global::ResembleAI.CreateRecordingRequest? Type464 { get; set; } /// /// /// - public global::ResembleAI.UpdateClipRequest? Type465 { get; set; } + public global::ResembleAI.UpdateRecordingRequest? Type465 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoiceRequest? Type466 { get; set; } + public global::ResembleAI.CreateTermSubstitutionRequest? Type466 { get; set; } /// /// /// - public global::ResembleAI.UpdateDuetVoiceRequest? Type467 { get; set; } + public global::ResembleAI.CreatePronunciationRequest? Type467 { get; set; } /// /// /// - public global::ResembleAI.CreateDuetVoicePairRequest? Type468 { get; set; } + public global::ResembleAI.BulkCreatePronunciationsRequest? Type468 { get; set; } /// /// /// - public global::ResembleAI.GenerateDuetRequest? Type469 { get; set; } + public global::ResembleAI.UpdatePronunciationRequest? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type470 { get; set; } + public global::ResembleAI.CreateVoiceSettingsPresetRequest? Type470 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateVoiceSettingsPresetRequest? Type471 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateProjectRequest? Type472 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateProjectRequest? Type473 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateClipRequest? Type474 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoiceRequest? Type475 { get; set; } + /// + /// + /// + public global::ResembleAI.UpdateDuetVoiceRequest? Type476 { get; set; } + /// + /// + /// + public global::ResembleAI.CreateDuetVoicePairRequest? Type477 { get; set; } + /// + /// + /// + public global::ResembleAI.GenerateDuetRequest? Type478 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type479 { get; set; } /// /// @@ -2002,138 +2038,142 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType29 { get; set; } + public global::System.Collections.Generic.List>? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType55 { get; set; } } } \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItem.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItem.Json.g.cs new file mode 100644 index 0000000..6fe54b2 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class TextDetectItem + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.TextDetectItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.TextDetectItem), + jsonSerializerContext) as global::ResembleAI.TextDetectItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.TextDetectItem? 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.TextDetectItem? 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.TextDetectItem), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TextDetectItem; + } + + /// + /// Deserializes a 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.TextDetectItem.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItem.g.cs new file mode 100644 index 0000000..7da08c1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItem.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class TextDetectItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uuid")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uuid { get; set; } + + /// + /// `processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.TextDetectItemStatusJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.TextDetectItemStatus Status { get; set; } + + /// + /// Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prediction")] + public global::ResembleAI.TextDetectItemPrediction? Prediction { get; set; } + + /// + /// Confidence in the reported `prediction`, from 0 to 1. Null while processing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("confidence")] + public double? Confidence { get; set; } + + /// + /// The submitted text. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text_content")] + public string? TextContent { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// `processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored. + /// + /// + /// + /// + /// Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing. + /// + /// + /// Confidence in the reported `prediction`, from 0 to 1. Null while processing. + /// + /// + /// The submitted text. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TextDetectItem( + string uuid, + global::ResembleAI.TextDetectItemStatus status, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + global::ResembleAI.TextDetectItemPrediction? prediction, + double? confidence, + string? textContent) + { + this.Uuid = uuid ?? throw new global::System.ArgumentNullException(nameof(uuid)); + this.Status = status; + this.Prediction = prediction; + this.Confidence = confidence; + this.TextContent = textContent; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public TextDetectItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItemPrediction.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItemPrediction.g.cs new file mode 100644 index 0000000..1f8a5c9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItemPrediction.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing. + /// + public enum TextDetectItemPrediction + { + /// + /// + /// + Ai, + /// + /// + /// + Human, + /// + /// + /// + Uncertain, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TextDetectItemPredictionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TextDetectItemPrediction value) + { + return value switch + { + TextDetectItemPrediction.Ai => "ai", + TextDetectItemPrediction.Human => "human", + TextDetectItemPrediction.Uncertain => "uncertain", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TextDetectItemPrediction? ToEnum(string value) + { + return value switch + { + "ai" => TextDetectItemPrediction.Ai, + "human" => TextDetectItemPrediction.Human, + "uncertain" => TextDetectItemPrediction.Uncertain, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItemStatus.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItemStatus.g.cs new file mode 100644 index 0000000..93d8a63 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectItemStatus.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// `processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored. + /// + public enum TextDetectItemStatus + { + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + Processing, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TextDetectItemStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TextDetectItemStatus value) + { + return value switch + { + TextDetectItemStatus.Completed => "completed", + TextDetectItemStatus.Failed => "failed", + TextDetectItemStatus.Processing => "processing", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TextDetectItemStatus? ToEnum(string value) + { + return value switch + { + "completed" => TextDetectItemStatus.Completed, + "failed" => TextDetectItemStatus.Failed, + "processing" => TextDetectItemStatus.Processing, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectListResponse.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectListResponse.Json.g.cs new file mode 100644 index 0000000..fce479e --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectListResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class TextDetectListResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.TextDetectListResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.TextDetectListResponse), + jsonSerializerContext) as global::ResembleAI.TextDetectListResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.TextDetectListResponse? 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.TextDetectListResponse? 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.TextDetectListResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TextDetectListResponse; + } + + /// + /// Deserializes a 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.TextDetectListResponse.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectListResponse.g.cs new file mode 100644 index 0000000..c470c5a --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectListResponse.g.cs @@ -0,0 +1,95 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class TextDetectListResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("page")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Page { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("num_pages")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int NumPages { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("page_size")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int PageSize { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int TotalCount { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Items { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TextDetectListResponse( + bool success, + int page, + int numPages, + int pageSize, + int totalCount, + global::System.Collections.Generic.IList items) + { + this.Success = success; + this.Page = page; + this.NumPages = numPages; + this.PageSize = pageSize; + this.TotalCount = totalCount; + this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); + } + + /// + /// Initializes a new instance of the class. + /// + public TextDetectListResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectPostParametersPrefer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectPostParametersPrefer.g.cs new file mode 100644 index 0000000..131ebb4 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectPostParametersPrefer.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public enum TextDetectPostParametersPrefer + { + /// + /// + /// + Wait, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TextDetectPostParametersPreferExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TextDetectPostParametersPrefer value) + { + return value switch + { + TextDetectPostParametersPrefer.Wait => "wait", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TextDetectPostParametersPrefer? ToEnum(string value) + { + return value switch + { + "wait" => TextDetectPostParametersPrefer.Wait, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequest.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequest.Json.g.cs new file mode 100644 index 0000000..3124fe3 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class TextDetectRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.TextDetectRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.TextDetectRequest), + jsonSerializerContext) as global::ResembleAI.TextDetectRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.TextDetectRequest? 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.TextDetectRequest? 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.TextDetectRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TextDetectRequest; + } + + /// + /// Deserializes a 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.TextDetectRequest.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequest.g.cs new file mode 100644 index 0000000..2dc9a06 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequest.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class TextDetectRequest + { + /// + /// The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.
+ /// Default Value: low + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("thinking")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::ResembleAI.JsonConverters.TextDetectRequestThinkingJsonConverter))] + public global::ResembleAI.TextDetectRequestThinking? Thinking { get; set; } + + /// + /// Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("threshold")] + public double? Threshold { get; set; } + + /// + /// POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("callback_url")] + public string? CallbackUrl { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length. + /// + /// + /// How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.
+ /// Default Value: low + /// + /// + /// Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`. + /// + /// + /// POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TextDetectRequest( + string text, + global::ResembleAI.TextDetectRequestThinking? thinking, + double? threshold, + string? callbackUrl) + { + this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); + this.Thinking = thinking; + this.Threshold = threshold; + this.CallbackUrl = callbackUrl; + } + + /// + /// Initializes a new instance of the class. + /// + public TextDetectRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequestThinking.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequestThinking.g.cs new file mode 100644 index 0000000..9298abf --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectRequestThinking.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.
+ /// Default Value: low + ///
+ public enum TextDetectRequestThinking + { + /// + /// + /// + High, + /// + /// + /// + Low, + /// + /// + /// + Medium, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TextDetectRequestThinkingExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TextDetectRequestThinking value) + { + return value switch + { + TextDetectRequestThinking.High => "high", + TextDetectRequestThinking.Low => "low", + TextDetectRequestThinking.Medium => "medium", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TextDetectRequestThinking? ToEnum(string value) + { + return value switch + { + "high" => TextDetectRequestThinking.High, + "low" => TextDetectRequestThinking.Low, + "medium" => TextDetectRequestThinking.Medium, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectResponse.Json.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectResponse.Json.g.cs new file mode 100644 index 0000000..01a0908 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace ResembleAI +{ + public sealed partial class TextDetectResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.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.TextDetectResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::ResembleAI.TextDetectResponse), + jsonSerializerContext) as global::ResembleAI.TextDetectResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::ResembleAI.TextDetectResponse? 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.TextDetectResponse? 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.TextDetectResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::ResembleAI.TextDetectResponse; + } + + /// + /// Deserializes a 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.TextDetectResponse.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectResponse.g.cs new file mode 100644 index 0000000..64e72d1 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.Models.TextDetectResponse.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// + /// + public sealed partial class TextDetectResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("success")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Success { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("item")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::ResembleAI.TextDetectItem Item { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TextDetectResponse( + bool success, + global::ResembleAI.TextDetectItem item) + { + this.Success = success; + this.Item = item ?? throw new global::System.ArgumentNullException(nameof(item)); + } + + /// + /// Initializes a new instance of the class. + /// + public TextDetectResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs index 2fc36f1..96ef434 100644 --- a/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs +++ b/src/libs/ResembleAI/Generated/ResembleAI.ResembleAIClient.g.cs @@ -249,6 +249,16 @@ public sealed partial class ResembleAIClient : global::ResembleAI.IResembleAICli AutoSDKServerConfiguration = AutoSDKServerConfiguration, }; + /// + /// + /// + public TextDetectionClient TextDetection => new TextDetectionClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContextProvider = JsonSerializerContextProvider, + AutoSDKServerConfiguration = AutoSDKServerConfiguration, + }; + /// /// /// diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs new file mode 100644 index 0000000..6a8eef7 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetection.JsonSerializerContext.g.cs @@ -0,0 +1,225 @@ + +#nullable enable + +#pragma warning disable CS0618 // Type or member is obsolete +#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant + +namespace ResembleAI +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = new global::System.Type[] + { + })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus), TypeInfoPropertyName = "TextDetectItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemPrediction), TypeInfoPropertyName = "TextDetectItemPrediction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectPostParametersPrefer), TypeInfoPropertyName = "TextDetectPostParametersPrefer2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequestThinking), TypeInfoPropertyName = "TextDetectRequestThinking2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemStatus?), TypeInfoPropertyName = "NullableTextDetectItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectItemPrediction?), TypeInfoPropertyName = "NullableTextDetectItemPrediction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectPostParametersPrefer?), TypeInfoPropertyName = "NullableTextDetectPostParametersPrefer2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::ResembleAI.TextDetectRequestThinking?), TypeInfoPropertyName = "NullableTextDetectRequestThinking2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + internal sealed partial class TextDetectionSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class TextDetectionSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static TextDetectionSourceGenerationContext Default { get; } = new(DefaultOptions); + + private TextDetectionSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + options.Converters.Add(new global::ResembleAI.JsonConverters.UnixTimestampJsonConverter()); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus) + + || typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus?) + + || typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction) + + || typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction?) + + || typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer) + + || typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer?) + + || typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking) + + || typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemStatusJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemStatus?)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemStatusNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemPredictionJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectItemPrediction?)) + { + return new global::ResembleAI.JsonConverters.TextDetectItemPredictionNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer)) + { + return new global::ResembleAI.JsonConverters.TextDetectPostParametersPreferJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectPostParametersPrefer?)) + { + return new global::ResembleAI.JsonConverters.TextDetectPostParametersPreferNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking)) + { + return new global::ResembleAI.JsonConverters.TextDetectRequestThinkingJsonConverter(); + } + + if (typeToConvert == typeof(global::ResembleAI.TextDetectRequestThinking?)) + { + return new global::ResembleAI.JsonConverters.TextDetectRequestThinkingNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new TextDetectionSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.Authorizations.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.Authorizations.Bearer.g.cs new file mode 100644 index 0000000..4a599b9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.Authorizations.Bearer.g.cs @@ -0,0 +1,35 @@ + +#nullable enable + +namespace ResembleAI +{ + public sealed partial class TextDetectionClient + { + + /// + public void AuthorizeUsingBearer( + string apiKey) + { + apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); + + for (var i = Authorizations.Count - 1; i >= 0; i--) + { + var __authorization = Authorizations[i]; + if (__authorization.Type == "Http" && + __authorization.Name == "Bearer") + { + Authorizations.RemoveAt(i); + } + } + + Authorizations.Add(new global::ResembleAI.EndPointAuthorization + { + Type = "Http", + SchemeId = "HttpBearer", + Location = "Header", + Name = "Bearer", + Value = apiKey, + }); + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.Constructors.Bearer.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.Constructors.Bearer.g.cs new file mode 100644 index 0000000..8132eb0 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.Constructors.Bearer.g.cs @@ -0,0 +1,31 @@ + +#nullable enable + +namespace ResembleAI +{ + public sealed partial class TextDetectionClient + { + /// + + public TextDetectionClient( + string apiKey, + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this(httpClient, baseUri, authorizations, disposeHttpClient) + { + Authorizing(HttpClient, ref apiKey); + + AuthorizeUsingBearer(apiKey); + + Authorized(HttpClient); + } + + partial void Authorizing( + global::System.Net.Http.HttpClient client, + ref string apiKey); + partial void Authorized( + global::System.Net.Http.HttpClient client); + + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.CreateTextDetection.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.CreateTextDetection.g.cs new file mode 100644 index 0000000..df74340 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.CreateTextDetection.g.cs @@ -0,0 +1,641 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial class TextDetectionClient + { + + private static readonly global::ResembleAI.AutoSDKServer[] s_CreateTextDetectionServers = 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_CreateTextDetectionSecurityRequirement0 = + 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_CreateTextDetectionSecurityRequirements = + new global::ResembleAI.EndPointSecurityRequirement[] + { s_CreateTextDetectionSecurityRequirement0, + }; + partial void PrepareCreateTextDetectionArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::ResembleAI.TextDetectPostParametersPrefer? prefer, + global::ResembleAI.TextDetectRequest request); + partial void PrepareCreateTextDetectionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::ResembleAI.TextDetectPostParametersPrefer? prefer, + global::ResembleAI.TextDetectRequest request); + partial void ProcessCreateTextDetectionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateTextDetectionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Detect AI-generated text
+ /// Submit a passage of text and classify it as AI-generated or human-written.
+ /// Processing is asynchronous by default: the response returns immediately with `status: processing`,
+ /// and you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the
+ /// `Prefer: wait` header to block until the verdict is available and receive the completed item in the
+ /// same response. Allow a generous client timeout when waiting, since the first request after a period
+ /// of inactivity can take several minutes while the model warms up.
+ /// Requests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains
+ /// fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained
+ /// (`uncertain`) results are not billed. + ///
+ /// + /// + /// 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 CreateTextDetectionAsync( + + global::ResembleAI.TextDetectRequest request, + global::ResembleAI.TextDetectPostParametersPrefer? prefer = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateTextDetectionAsResponseAsync( + + request: request, + prefer: prefer, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Detect AI-generated text
+ /// Submit a passage of text and classify it as AI-generated or human-written.
+ /// Processing is asynchronous by default: the response returns immediately with `status: processing`,
+ /// and you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the
+ /// `Prefer: wait` header to block until the verdict is available and receive the completed item in the
+ /// same response. Allow a generous client timeout when waiting, since the first request after a period
+ /// of inactivity can take several minutes while the model warms up.
+ /// Requests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains
+ /// fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained
+ /// (`uncertain`) results are not billed. + ///
+ /// + /// + /// 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> CreateTextDetectionAsResponseAsync( + + global::ResembleAI.TextDetectRequest request, + global::ResembleAI.TextDetectPostParametersPrefer? prefer = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateTextDetectionArguments( + httpClient: HttpClient, + prefer: ref prefer, + request: request); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateTextDetectionSecurityRequirements, + operationName: "CreateTextDetectionAsync"); + + 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: "/text_detect", + baseUri: ResolveBaseUri( + servers: s_CreateTextDetectionServers, + defaultBaseUrl: "https://app.resemble.ai/api/v2")); + var __path = __pathBuilder.ToString(); + __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + if (prefer != default) + { + __httpRequest.Headers.TryAddWithoutValidation("Prefer", prefer?.ToValueString() ?? string.Empty); + } + + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateTextDetectionRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + prefer: prefer, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTextDetection", + methodName: "CreateTextDetectionAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTextDetection", + methodName: "CreateTextDetectionAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::ResembleAI.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::ResembleAI.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTextDetection", + methodName: "CreateTextDetectionAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::ResembleAI.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateTextDetectionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTextDetection", + methodName: "CreateTextDetectionAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateTextDetection", + methodName: "CreateTextDetectionAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Invalid request: missing text, text over 100,000 characters, fewer than 25 words, invalid `thinking` or `threshold`, or malformed `callback_url`. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::ResembleAI.Error? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Validation failed + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::ResembleAI.Error? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::ResembleAI.Error.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateTextDetectionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.TextDetectResponse.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.TextDetectResponse.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(); + } + } + /// + /// Detect AI-generated text
+ /// Submit a passage of text and classify it as AI-generated or human-written.
+ /// Processing is asynchronous by default: the response returns immediately with `status: processing`,
+ /// and you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the
+ /// `Prefer: wait` header to block until the verdict is available and receive the completed item in the
+ /// same response. Allow a generous client timeout when waiting, since the first request after a period
+ /// of inactivity can take several minutes while the model warms up.
+ /// Requests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains
+ /// fewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained
+ /// (`uncertain`) results are not billed. + ///
+ /// + /// + /// The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length. + /// + /// + /// How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.
+ /// Default Value: low + /// + /// + /// Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`. + /// + /// + /// POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed. + /// + /// 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 CreateTextDetectionAsync( + string text, + global::ResembleAI.TextDetectPostParametersPrefer? prefer = default, + global::ResembleAI.TextDetectRequestThinking? thinking = default, + double? threshold = default, + string? callbackUrl = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::ResembleAI.TextDetectRequest + { + Text = text, + Thinking = thinking, + Threshold = threshold, + CallbackUrl = callbackUrl, + }; + + return await CreateTextDetectionAsync( + prefer: prefer, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.GetTextDetection.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.GetTextDetection.g.cs new file mode 100644 index 0000000..6ec0dc9 --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.GetTextDetection.g.cs @@ -0,0 +1,510 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial class TextDetectionClient + { + + private static readonly global::ResembleAI.AutoSDKServer[] s_GetTextDetectionServers = 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_GetTextDetectionSecurityRequirement0 = + 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_GetTextDetectionSecurityRequirements = + new global::ResembleAI.EndPointSecurityRequirement[] + { s_GetTextDetectionSecurityRequirement0, + }; + partial void PrepareGetTextDetectionArguments( + global::System.Net.Http.HttpClient httpClient, + ref string uuid); + partial void PrepareGetTextDetectionRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string uuid); + partial void ProcessGetTextDetectionResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTextDetectionResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Get text detection
+ /// Retrieve a text detection by UUID. Poll this endpoint until `status` is `completed` or `failed`. + ///
+ /// + /// 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 GetTextDetectionAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTextDetectionAsResponseAsync( + uuid: uuid, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Get text detection
+ /// Retrieve a text detection by UUID. Poll this endpoint until `status` is `completed` or `failed`. + ///
+ /// + /// 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> GetTextDetectionAsResponseAsync( + string uuid, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetTextDetectionArguments( + httpClient: HttpClient, + uuid: ref uuid); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTextDetectionSecurityRequirements, + operationName: "GetTextDetectionAsync"); + + 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: $"/text_detect/{uuid}", + baseUri: ResolveBaseUri( + servers: s_GetTextDetectionServers, + defaultBaseUrl: "https://app.resemble.ai/api/v2")); + var __path = __pathBuilder.ToString(); + __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetTextDetectionRequest( + 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: "GetTextDetection", + methodName: "GetTextDetectionAsync", + pathTemplate: "$\"/text_detect/{uuid}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "GetTextDetection", + methodName: "GetTextDetectionAsync", + pathTemplate: "$\"/text_detect/{uuid}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "GetTextDetection", + methodName: "GetTextDetectionAsync", + pathTemplate: "$\"/text_detect/{uuid}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessGetTextDetectionResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTextDetection", + methodName: "GetTextDetectionAsync", + pathTemplate: "$\"/text_detect/{uuid}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTextDetection", + methodName: "GetTextDetectionAsync", + pathTemplate: "$\"/text_detect/{uuid}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // The detection belongs to another team + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::ResembleAI.Error? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::ResembleAI.Error.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessGetTextDetectionResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.TextDetectResponse.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.TextDetectResponse.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.TextDetectionClient.ListTextDetections.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.ListTextDetections.g.cs new file mode 100644 index 0000000..70423dc --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.ListTextDetections.g.cs @@ -0,0 +1,490 @@ + +#nullable enable + +namespace ResembleAI +{ + public partial class TextDetectionClient + { + + private static readonly global::ResembleAI.AutoSDKServer[] s_ListTextDetectionsServers = 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_ListTextDetectionsSecurityRequirement0 = + 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_ListTextDetectionsSecurityRequirements = + new global::ResembleAI.EndPointSecurityRequirement[] + { s_ListTextDetectionsSecurityRequirement0, + }; + partial void PrepareListTextDetectionsArguments( + global::System.Net.Http.HttpClient httpClient, + ref int page, + ref int? pageSize); + partial void PrepareListTextDetectionsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int page, + int? pageSize); + partial void ProcessListTextDetectionsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessListTextDetectionsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List text detections
+ /// Retrieve a paginated list of text detections for the authenticated user's team, newest first. + ///
+ /// + /// + /// Default Value: 10 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task ListTextDetectionsAsync( + int page, + int? pageSize = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ListTextDetectionsAsResponseAsync( + page: page, + pageSize: pageSize, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List text detections
+ /// Retrieve a paginated list of text detections for the authenticated user's team, newest first. + ///
+ /// + /// + /// Default Value: 10 + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> ListTextDetectionsAsResponseAsync( + int page, + int? pageSize = default, + global::ResembleAI.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareListTextDetectionsArguments( + httpClient: HttpClient, + page: ref page, + pageSize: ref pageSize); + + + var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ListTextDetectionsSecurityRequirements, + operationName: "ListTextDetectionsAsync"); + + 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: "/text_detect", + baseUri: ResolveBaseUri( + servers: s_ListTextDetectionsServers, + defaultBaseUrl: "https://app.resemble.ai/api/v2")); + __pathBuilder + .AddRequiredParameter("page", page.ToString()!) + .AddOptionalParameter("page_size", pageSize?.ToString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::ResembleAI.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareListTextDetectionsRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + page: page!, + pageSize: pageSize); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTextDetections", + methodName: "ListTextDetectionsAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::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: "ListTextDetections", + methodName: "ListTextDetectionsAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::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: "ListTextDetections", + methodName: "ListTextDetectionsAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::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); + ProcessListTextDetectionsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTextDetections", + methodName: "ListTextDetectionsAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::ResembleAI.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::ResembleAI.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ListTextDetections", + methodName: "ListTextDetectionsAsync", + pathTemplate: "\"/text_detect\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::ResembleAI.Error? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::ResembleAI.Error.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::ResembleAI.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + responseObject: __value_401, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessListTextDetectionsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::ResembleAI.TextDetectListResponse.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.TextDetectListResponse.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.TextDetectionClient.g.cs b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.g.cs new file mode 100644 index 0000000..c3eb7df --- /dev/null +++ b/src/libs/ResembleAI/Generated/ResembleAI.TextDetectionClient.g.cs @@ -0,0 +1,182 @@ + +#nullable enable + +namespace ResembleAI +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class TextDetectionClient : global::ResembleAI.ITextDetectionClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://app.resemble.ai/api/v2"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::ResembleAI.AutoSDKClientOptions Options { get; } + + + internal global::ResembleAI.AutoSDKServerConfiguration AutoSDKServerConfiguration { get; set; } = new global::ResembleAI.AutoSDKServerConfiguration(); + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::ResembleAI.TextDetectionSourceGenerationContext.Default); + + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } + + + /// + /// Creates a new instance of the TextDetectionClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TextDetectionClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the TextDetectionClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TextDetectionClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::ResembleAI.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the TextDetectionClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public TextDetectionClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::ResembleAI.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + if (baseUri is not null) + { + HttpClient.BaseAddress ??= baseUri; + } + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::ResembleAI.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + AutoSDKServerConfiguration.ExplicitBaseUri = baseUri ?? httpClient?.BaseAddress; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + + + private global::System.Uri? ResolveBaseUri( + global::ResembleAI.AutoSDKServer[] servers, + string defaultBaseUrl) + { + if (AutoSDKServerConfiguration.ExplicitBaseUri is global::System.Uri explicitBaseUri) + { + return explicitBaseUri; + } + + if (AutoSDKServerConfiguration.SelectedServer is global::ResembleAI.AutoSDKServer selectedServer) + { + foreach (var server in servers) + { + if (string.Equals(server.Id, selectedServer.Id, global::System.StringComparison.Ordinal)) + { + return server.Uri; + } + } + } + + if (servers.Length > 0) + { + return servers[0].Uri; + } + + return string.IsNullOrWhiteSpace(defaultBaseUrl) + ? HttpClient.BaseAddress + : new global::System.Uri(defaultBaseUrl, global::System.UriKind.RelativeOrAbsolute); + } + } +} \ No newline at end of file diff --git a/src/libs/ResembleAI/openapi.yaml b/src/libs/ResembleAI/openapi.yaml index cd1c7c7..0bd8b79 100644 --- a/src/libs/ResembleAI/openapi.yaml +++ b/src/libs/ResembleAI/openapi.yaml @@ -2116,6 +2116,210 @@ } ] }, + "/text_detect": { + "get": { + "operationId": "textDetection_listTextDetections", + "summary": "List text detections", + "description": "Retrieve a paginated list of text detections for the authenticated user's team, newest first.", + "tags": [ + "textDetection" + ], + "parameters": [ + { + "name": "page", + "in": "query", + "description": "Page number (must be >= 1)", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + } + }, + { + "name": "page_size", + "in": "query", + "description": "Number of items per page (10-1000)", + "required": false, + "schema": { + "type": "integer", + "minimum": 10, + "maximum": 1000, + "default": 10 + } + } + ], + "responses": { + "200": { + "description": "List of text detections", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TextDetectListResponse" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "security": [ + { + "BearerAuth": [] + } + ] + }, + "post": { + "operationId": "textDetection_createTextDetection", + "summary": "Detect AI-generated text", + "description": "Submit a passage of text and classify it as AI-generated or human-written.\n\nProcessing is asynchronous by default: the response returns immediately with `status: processing`,\nand you can poll `GET /text_detect/{uuid}` or supply a `callback_url` to be notified. Send the\n`Prefer: wait` header to block until the verdict is available and receive the completed item in the\nsame response. Allow a generous client timeout when waiting, since the first request after a period\nof inactivity can take several minutes while the model warms up.\n\nRequests are rejected with a 400 when `text` is missing, exceeds 100,000 characters, or contains\nfewer than 25 words. Each successfully scored request bills one Text Detection unit; abstained\n(`uncertain`) results are not billed.\n", + "tags": [ + "textDetection" + ], + "parameters": [ + { + "name": "Prefer", + "in": "header", + "description": "When set to \"wait\", the API processes synchronously and returns the completed result.", + "required": false, + "schema": { + "$ref": "#/components/schemas/TextDetectPostParametersPrefer" + } + } + ], + "responses": { + "200": { + "description": "Text detection created (or completed when `Prefer: wait` was sent)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TextDetectResponse" + } + } + } + }, + "400": { + "description": "Invalid request: missing text, text over 100,000 characters, fewer than 25 words, invalid `thinking` or `threshold`, or malformed `callback_url`.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "422": { + "description": "Validation failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TextDetectRequest" + } + } + } + }, + "security": [ + { + "BearerAuth": [] + } + ] + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, + "/text_detect/{uuid}": { + "get": { + "operationId": "textDetection_getTextDetection", + "summary": "Get text detection", + "description": "Retrieve a text detection by UUID. Poll this endpoint until `status` is `completed` or `failed`.", + "tags": [ + "textDetection" + ], + "parameters": [ + { + "name": "uuid", + "in": "path", + "description": "UUID of the text detection", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Text detection result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TextDetectResponse" + } + } + } + }, + "400": { + "description": "The detection belongs to another team", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "security": [ + { + "BearerAuth": [] + } + ] + }, + "servers": [ + { + "url": "https://app.resemble.ai/api/v2" + } + ] + }, "/signal": { "get": { "operationId": "signal_listSignalSubmissions", @@ -6626,6 +6830,9 @@ { "name": "watermark" }, + { + "name": "textDetection" + }, { "name": "signal" }, @@ -10261,6 +10468,177 @@ ], "title": "WatermarkDetectResponse" }, + "TextDetectItemStatus": { + "type": "string", + "enum": [ + "processing", + "completed", + "failed" + ], + "description": "`processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored.", + "title": "TextDetectItemStatus" + }, + "TextDetectItemPrediction": { + "type": "string", + "enum": [ + "ai", + "human", + "uncertain" + ], + "description": "Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing.", + "title": "TextDetectItemPrediction" + }, + "TextDetectItem": { + "type": "object", + "properties": { + "uuid": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/TextDetectItemStatus", + "description": "`processing` until inference returns, `completed` once `prediction` and `confidence` are populated, or `failed` if the analysis errored." + }, + "prediction": { + "oneOf": [ + { + "$ref": "#/components/schemas/TextDetectItemPrediction" + }, + { + "type": "null" + } + ], + "description": "Verdict for the passage. `uncertain` means the detector abstained rather than guessing (for example, too few words after normalization); abstained requests are not billed. Null while processing." + }, + "confidence": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Confidence in the reported `prediction`, from 0 to 1. Null while processing." + }, + "text_content": { + "type": [ + "string", + "null" + ], + "description": "The submitted text." + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "uuid", + "status", + "created_at", + "updated_at" + ], + "title": "TextDetectItem" + }, + "TextDetectListResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "page": { + "type": "integer" + }, + "num_pages": { + "type": "integer" + }, + "page_size": { + "type": "integer" + }, + "total_count": { + "type": "integer" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TextDetectItem" + } + } + }, + "required": [ + "success", + "page", + "num_pages", + "page_size", + "total_count", + "items" + ], + "title": "TextDetectListResponse" + }, + "TextDetectPostParametersPrefer": { + "type": "string", + "enum": [ + "wait" + ], + "title": "TextDetectPostParametersPrefer" + }, + "TextDetectRequestThinking": { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ], + "default": "low", + "description": "How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency.", + "title": "TextDetectRequestThinking" + }, + "TextDetectRequest": { + "type": "object", + "properties": { + "text": { + "type": "string", + "minLength": 1, + "maxLength": 100000, + "description": "The text to analyze. Must contain at least 25 words (whitespace-delimited) and at most 100,000 characters. Shorter passages are rejected with a 400 because no threshold reliably separates casual human writing from AI-generated text below that length." + }, + "thinking": { + "$ref": "#/components/schemas/TextDetectRequestThinking", + "description": "How much reasoning effort the detector spends on the passage. Higher levels can improve accuracy on ambiguous text at the cost of latency." + }, + "threshold": { + "type": "number", + "format": "double", + "description": "Probability cutoff used to turn the AI-likelihood score into the `ai` or `human` prediction. Scores at or above the threshold are reported as `ai`." + }, + "callback_url": { + "type": "string", + "format": "uri", + "description": "POST destination for the result once processing finishes. The body matches the response of `GET /text_detect/{uuid}` with an additional top-level `error` field when analysis failed." + } + }, + "required": [ + "text" + ], + "title": "TextDetectRequest" + }, + "TextDetectResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "item": { + "$ref": "#/components/schemas/TextDetectItem" + } + }, + "required": [ + "success", + "item" + ], + "title": "TextDetectResponse" + }, "SignalSubmissionInputModality": { "type": "string", "enum": [