Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,54 @@ public partial interface IWatermarkClient
{
/// <summary>
/// Apply watermark<br/>
/// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
/// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied.
/// </summary>
/// <param name="prefer"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkApplyWatermarkResponse200> ApplyWatermarkAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkApplyResponse> ApplyWatermarkAsync(

global::ResembleAI.ApplyWatermarkRequest request,
global::ResembleAI.WatermarkApplyRequest request,
global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Apply watermark<br/>
/// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
/// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied.
/// </summary>
/// <param name="prefer"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkApplyWatermarkResponse200>> ApplyWatermarkAsResponseAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkApplyResponse>> ApplyWatermarkAsResponseAsync(

global::ResembleAI.ApplyWatermarkRequest request,
global::ResembleAI.WatermarkApplyRequest request,
global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Apply watermark<br/>
/// Apply a watermark to an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
/// Apply a Perth v2 watermark to an audio, image, or video file. The media type is automatically detected from the file content. Processing is asynchronous unless the `Prefer: wait` header is supplied.
/// </summary>
/// <param name="prefer"></param>
/// <param name="url">
/// HTTPS URL to the media file (audio, image, or video).
/// Public HTTPS URL to the audio, image, or video source.
/// </param>
/// <param name="strength">
/// Watermark strength for image/video. Ignored for audio.<br/>
/// Default Value: 0.2F
/// </param>
/// <param name="customMessage">
/// Custom message to embed for image/video. Ignored for audio.<br/>
/// Message to embed in image/video. Ignored for audio.<br/>
/// Default Value: resembleai
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkApplyWatermarkResponse200> ApplyWatermarkAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkApplyResponse> ApplyWatermarkAsync(
string url,
global::ResembleAI.WatermarkApplyPostParametersPrefer? prefer = default,
double? strength = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,50 @@ public partial interface IWatermarkClient
{
/// <summary>
/// Detect watermark<br/>
/// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
/// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied.
/// </summary>
/// <param name="prefer"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkDetectWatermarkResponse200> DetectWatermarkAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkDetectResponse> DetectWatermarkAsync(

global::ResembleAI.DetectWatermarkRequest request,
global::ResembleAI.WatermarkDetectRequest request,
global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Detect watermark<br/>
/// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
/// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied.
/// </summary>
/// <param name="prefer"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkDetectWatermarkResponse200>> DetectWatermarkAsResponseAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkDetectResponse>> DetectWatermarkAsResponseAsync(

global::ResembleAI.DetectWatermarkRequest request,
global::ResembleAI.WatermarkDetectRequest request,
global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Detect watermark<br/>
/// Detect a watermark in an audio, image, or video file. The media type is automatically detected from the file content. Use the `Prefer: wait` header for synchronous processing.
/// Detect a watermark in an audio, image, or video file. Audio runs Perth v1 and Perth v2 concurrently; image/video is publicly reported as Perth v2. Processing is asynchronous unless the `Prefer: wait` header is supplied.
/// </summary>
/// <param name="prefer"></param>
/// <param name="url">
/// HTTPS URL to the media file (audio, image, or video).
/// Public HTTPS URL to the audio, image, or video source.
/// </param>
/// <param name="customMessage">
/// Custom message used during encoding for image/video. Ignored for audio.<br/>
/// Message used when applying the image/video watermark. Ignored for audio.<br/>
/// Default Value: resembleai
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkDetectWatermarkResponse200> DetectWatermarkAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkDetectResponse> DetectWatermarkAsync(
string url,
global::ResembleAI.WatermarkDetectPostParametersPrefer? prefer = default,
string? customMessage = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial interface IWatermarkClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200> GetWatermarkApplyResultAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkApplyResponse> GetWatermarkApplyResultAsync(
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand All @@ -24,7 +24,7 @@ public partial interface IWatermarkClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkGetWatermarkApplyResultResponse200>> GetWatermarkApplyResultAsResponseAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkApplyResponse>> GetWatermarkApplyResultAsResponseAsync(
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial interface IWatermarkClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200> GetWatermarkDetectionResultAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.WatermarkDetectResponse> GetWatermarkDetectionResultAsync(
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand All @@ -24,7 +24,7 @@ public partial interface IWatermarkClient
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ResembleAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkGetWatermarkDetectionResultResponse200>> GetWatermarkDetectionResultAsResponseAsync(
global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.WatermarkDetectResponse>> GetWatermarkDetectionResultAsResponseAsync(
string uuid,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType>
public sealed class WatermarkApplyItemMediaTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.WatermarkApplyItemMediaType>
{
/// <inheritdoc />
public override global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType Read(
public override global::ResembleAI.WatermarkApplyItemMediaType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue) ?? default;
return global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType)numValue;
return (global::ResembleAI.WatermarkApplyItemMediaType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType);
return default(global::ResembleAI.WatermarkApplyItemMediaType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType value,
global::ResembleAI.WatermarkApplyItemMediaType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace ResembleAI.JsonConverters
{
/// <inheritdoc />
public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType?>
public sealed class WatermarkApplyItemMediaTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::ResembleAI.WatermarkApplyItemMediaType?>
{
/// <inheritdoc />
public override global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? Read(
public override global::ResembleAI.WatermarkApplyItemMediaType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToEnum(stringValue);
return global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType)numValue;
return (global::ResembleAI.WatermarkApplyItemMediaType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType?);
return default(global::ResembleAI.WatermarkApplyItemMediaType?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class WatermarkApplyPostResponsesContentApplicationJsonSchemaItemM
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaType? value,
global::ResembleAI.WatermarkApplyItemMediaType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::ResembleAI.WatermarkApplyPostResponsesContentApplicationJsonSchemaItemMediaTypeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::ResembleAI.WatermarkApplyItemMediaTypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Loading
Loading