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 @@ -288,6 +288,14 @@ request.Filename is null
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.AudioSourceTracing, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"audio_source_tracing\"");

}
if (request.Signal != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Signal, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"signal\"");

}
if (request.UseReverseSearch != default)
{
Expand Down Expand Up @@ -618,7 +626,7 @@ request.Filename is null
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// POST destination when analysis completes
/// POST destination for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -660,6 +668,10 @@ request.Filename is null
/// Enable audio source tracing to identify synthetic audio origin<br/>
/// Default Value: false
/// </param>
/// <param name="signal">
/// Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.<br/>
/// Default Value: false
/// </param>
/// <param name="useReverseSearch">
/// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.<br/>
/// Default Value: false
Expand Down Expand Up @@ -689,6 +701,7 @@ request.Filename is null
bool? intelligence = default,
bool? inferFromIntelligence = default,
bool? audioSourceTracing = default,
bool? signal = default,
bool? useReverseSearch = default,
bool? useOodDetector = default,
bool? zeroRetentionMode = default,
Expand All @@ -710,6 +723,7 @@ request.Filename is null
Intelligence = intelligence,
InferFromIntelligence = inferFromIntelligence,
AudioSourceTracing = audioSourceTracing,
Signal = signal,
UseReverseSearch = useReverseSearch,
UseOodDetector = useOodDetector,
ZeroRetentionMode = zeroRetentionMode,
Expand Down Expand Up @@ -737,7 +751,7 @@ request.Filename is null
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// POST destination when analysis completes
/// POST destination for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -779,6 +793,10 @@ request.Filename is null
/// Enable audio source tracing to identify synthetic audio origin<br/>
/// Default Value: false
/// </param>
/// <param name="signal">
/// Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.<br/>
/// Default Value: false
/// </param>
/// <param name="useReverseSearch">
/// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.<br/>
/// Default Value: false
Expand Down Expand Up @@ -808,6 +826,7 @@ request.Filename is null
bool? intelligence = default,
bool? inferFromIntelligence = default,
bool? audioSourceTracing = default,
bool? signal = default,
bool? useReverseSearch = default,
bool? useOodDetector = default,
bool? zeroRetentionMode = default,
Expand All @@ -831,6 +850,7 @@ request.Filename is null
Intelligence = intelligence,
InferFromIntelligence = inferFromIntelligence,
AudioSourceTracing = audioSourceTracing,
Signal = signal,
UseReverseSearch = useReverseSearch,
UseOodDetector = useOodDetector,
ZeroRetentionMode = zeroRetentionMode,
Expand Down Expand Up @@ -1025,6 +1045,14 @@ request.Filename is null
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.AudioSourceTracing, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"audio_source_tracing\"");

}
if (request.Signal != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Signal, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"signal\"");

}
if (request.UseReverseSearch != default)
{
Expand Down Expand Up @@ -1347,7 +1375,7 @@ request.Filename is null
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// POST destination when analysis completes
/// POST destination for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -1389,6 +1417,10 @@ request.Filename is null
/// Enable audio source tracing to identify synthetic audio origin<br/>
/// Default Value: false
/// </param>
/// <param name="signal">
/// Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.<br/>
/// Default Value: false
/// </param>
/// <param name="useReverseSearch">
/// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.<br/>
/// Default Value: false
Expand Down Expand Up @@ -1418,6 +1450,7 @@ request.Filename is null
bool? intelligence = default,
bool? inferFromIntelligence = default,
bool? audioSourceTracing = default,
bool? signal = default,
bool? useReverseSearch = default,
bool? useOodDetector = default,
bool? zeroRetentionMode = default,
Expand All @@ -1441,6 +1474,7 @@ request.Filename is null
Intelligence = intelligence,
InferFromIntelligence = inferFromIntelligence,
AudioSourceTracing = audioSourceTracing,
Signal = signal,
UseReverseSearch = useReverseSearch,
UseOodDetector = useOodDetector,
ZeroRetentionMode = zeroRetentionMode,
Expand Down Expand Up @@ -1635,6 +1669,14 @@ request.Filename is null
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.AudioSourceTracing, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"audio_source_tracing\"");

}
if (request.Signal != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.Signal, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()),
name: "\"signal\"");

}
if (request.UseReverseSearch != default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ public partial class DeepfakeDetectionClient
};
partial void PrepareGetDetectionArguments(
global::System.Net.Http.HttpClient httpClient,
ref string uuid);
ref string uuid,
ref bool? experts);
partial void PrepareGetDetectionRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string uuid);
string uuid,
bool? experts);
partial void ProcessGetDetectionResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -51,19 +53,24 @@ partial void ProcessGetDetectionResponseContent(

/// <summary>
/// Get deepfake detection result<br/>
/// Get deepfake detection result by UUID
/// Get a deepfake detection result by UUID. The item status describes the Detect job only; Intelligence runs separately and can still be processing after Detect reaches completed.
/// </summary>
/// <param name="uuid"></param>
/// <param name="experts">
/// Default Value: false
/// </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>
public async global::System.Threading.Tasks.Task<global::ResembleAI.DeepfakeDetectionGetDetectionResponse200> GetDetectionAsync(
string uuid,
bool? experts = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await GetDetectionAsResponseAsync(
uuid: uuid,
experts: experts,
requestOptions: requestOptions,
cancellationToken: cancellationToken
).ConfigureAwait(false);
Expand All @@ -72,22 +79,27 @@ partial void ProcessGetDetectionResponseContent(
}
/// <summary>
/// Get deepfake detection result<br/>
/// Get deepfake detection result by UUID
/// Get a deepfake detection result by UUID. The item status describes the Detect job only; Intelligence runs separately and can still be processing after Detect reaches completed.
/// </summary>
/// <param name="uuid"></param>
/// <param name="experts">
/// Default Value: false
/// </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>
public async global::System.Threading.Tasks.Task<global::ResembleAI.AutoSDKHttpResponse<global::ResembleAI.DeepfakeDetectionGetDetectionResponse200>> GetDetectionAsResponseAsync(
string uuid,
bool? experts = default,
global::ResembleAI.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareGetDetectionArguments(
httpClient: HttpClient,
uuid: ref uuid);
uuid: ref uuid,
experts: ref experts);


var __authorizations = global::ResembleAI.EndPointSecurityResolver.ResolveAuthorizations(
Expand Down Expand Up @@ -117,6 +129,9 @@ partial void ProcessGetDetectionResponseContent(
baseUri: ResolveBaseUri(
servers: s_GetDetectionServers,
defaultBaseUrl: "https://app.resemble.ai/api/v2"));
__pathBuilder
.AddOptionalParameter("experts", experts?.ToString().ToLowerInvariant())
;
var __path = __pathBuilder.ToString();
__path = global::ResembleAI.AutoSDKRequestOptionsSupport.AppendQueryParameters(
path: __path,
Expand Down Expand Up @@ -157,7 +172,8 @@ partial void ProcessGetDetectionResponseContent(
PrepareGetDetectionRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
uuid: uuid!);
uuid: uuid!,
experts: experts);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public partial interface IDeepfakeDetectionClient
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// POST destination when analysis completes
/// POST destination for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -98,6 +98,10 @@ public partial interface IDeepfakeDetectionClient
/// Enable audio source tracing to identify synthetic audio origin<br/>
/// Default Value: false
/// </param>
/// <param name="signal">
/// Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.<br/>
/// Default Value: false
/// </param>
/// <param name="useReverseSearch">
/// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.<br/>
/// Default Value: false
Expand Down Expand Up @@ -127,6 +131,7 @@ public partial interface IDeepfakeDetectionClient
bool? intelligence = default,
bool? inferFromIntelligence = default,
bool? audioSourceTracing = default,
bool? signal = default,
bool? useReverseSearch = default,
bool? useOodDetector = default,
bool? zeroRetentionMode = default,
Expand All @@ -149,7 +154,7 @@ public partial interface IDeepfakeDetectionClient
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// POST destination when analysis completes
/// POST destination for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -191,6 +196,10 @@ public partial interface IDeepfakeDetectionClient
/// Enable audio source tracing to identify synthetic audio origin<br/>
/// Default Value: false
/// </param>
/// <param name="signal">
/// Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.<br/>
/// Default Value: false
/// </param>
/// <param name="useReverseSearch">
/// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.<br/>
/// Default Value: false
Expand Down Expand Up @@ -220,6 +229,7 @@ public partial interface IDeepfakeDetectionClient
bool? intelligence = default,
bool? inferFromIntelligence = default,
bool? audioSourceTracing = default,
bool? signal = default,
bool? useReverseSearch = default,
bool? useOodDetector = default,
bool? zeroRetentionMode = default,
Expand All @@ -241,7 +251,7 @@ public partial interface IDeepfakeDetectionClient
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// POST destination when analysis completes
/// POST destination for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -283,6 +293,10 @@ public partial interface IDeepfakeDetectionClient
/// Enable audio source tracing to identify synthetic audio origin<br/>
/// Default Value: false
/// </param>
/// <param name="signal">
/// Run Signal content analysis after detection completes, classifying the media against fraud and abuse categories. Requires Signal access on your plan and cannot be combined with zero_retention_mode. Not supported for batch detections.<br/>
/// Default Value: false
/// </param>
/// <param name="useReverseSearch">
/// Enable reverse image search to improve detection accuracy for image files. Only applies to image detections.<br/>
/// Default Value: false
Expand Down Expand Up @@ -312,6 +326,7 @@ public partial interface IDeepfakeDetectionClient
bool? intelligence = default,
bool? inferFromIntelligence = default,
bool? audioSourceTracing = default,
bool? signal = default,
bool? useReverseSearch = default,
bool? useOodDetector = default,
bool? zeroRetentionMode = default,
Expand Down
Loading
Loading