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 @@ -208,6 +208,14 @@ request.Filename is null
content: new global::System.Net.Http.StringContent(request.CallbackUrl ?? string.Empty),
name: "\"callback_url\"");

}
if (request.WaitForIntelligence != default)
{

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

}
if (request.Visualize != default)
{
Expand Down Expand Up @@ -626,7 +634,10 @@ 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 for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -691,6 +702,7 @@ request.Filename is null
byte[] file,
string filename,
string? callbackUrl = default,
bool? waitForIntelligence = default,
bool? visualize = default,
int? frameLength = default,
double? startRegion = default,
Expand All @@ -713,6 +725,7 @@ request.Filename is null
File = file,
Filename = filename,
CallbackUrl = callbackUrl,
WaitForIntelligence = waitForIntelligence,
Visualize = visualize,
FrameLength = frameLength,
StartRegion = startRegion,
Expand Down Expand Up @@ -751,7 +764,10 @@ 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 for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -816,6 +832,7 @@ request.Filename is null
global::System.IO.Stream file,
string filename,
string? callbackUrl = default,
bool? waitForIntelligence = default,
bool? visualize = default,
int? frameLength = default,
double? startRegion = default,
Expand All @@ -840,6 +857,7 @@ request.Filename is null
File = global::System.Array.Empty<byte>(),
Filename = filename,
CallbackUrl = callbackUrl,
WaitForIntelligence = waitForIntelligence,
Visualize = visualize,
FrameLength = frameLength,
StartRegion = startRegion,
Expand Down Expand Up @@ -965,6 +983,14 @@ request.Filename is null
content: new global::System.Net.Http.StringContent(request.CallbackUrl ?? string.Empty),
name: "\"callback_url\"");

}
if (request.WaitForIntelligence != default)
{

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

}
if (request.Visualize != default)
{
Expand Down Expand Up @@ -1375,7 +1401,10 @@ 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 for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -1440,6 +1469,7 @@ request.Filename is null
global::System.IO.Stream file,
string filename,
string? callbackUrl = default,
bool? waitForIntelligence = default,
bool? visualize = default,
int? frameLength = default,
double? startRegion = default,
Expand All @@ -1464,6 +1494,7 @@ request.Filename is null
File = global::System.Array.Empty<byte>(),
Filename = filename,
CallbackUrl = callbackUrl,
WaitForIntelligence = waitForIntelligence,
Visualize = visualize,
FrameLength = frameLength,
StartRegion = startRegion,
Expand Down Expand Up @@ -1589,6 +1620,14 @@ request.Filename is null
content: new global::System.Net.Http.StringContent(request.CallbackUrl ?? string.Empty),
name: "\"callback_url\"");

}
if (request.WaitForIntelligence != default)
{

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

}
if (request.Visualize != default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ 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 for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -121,6 +124,7 @@ public partial interface IDeepfakeDetectionClient
byte[] file,
string filename,
string? callbackUrl = default,
bool? waitForIntelligence = default,
bool? visualize = default,
int? frameLength = default,
double? startRegion = default,
Expand Down Expand Up @@ -154,7 +158,10 @@ 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 for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -219,6 +226,7 @@ public partial interface IDeepfakeDetectionClient
global::System.IO.Stream file,
string filename,
string? callbackUrl = default,
bool? waitForIntelligence = default,
bool? visualize = default,
int? frameLength = default,
double? startRegion = default,
Expand Down Expand Up @@ -251,7 +259,10 @@ 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 for the detection result. When Intelligence is requested, callback delivery waits for a priority-stable successful result or the bounded fail-open timeout.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -316,6 +327,7 @@ public partial interface IDeepfakeDetectionClient
global::System.IO.Stream file,
string filename,
string? callbackUrl = default,
bool? waitForIntelligence = default,
bool? visualize = default,
int? frameLength = default,
double? startRegion = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ public sealed partial class CreateDetectionRequest
public required string Filename { get; set; }

/// <summary>
/// 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.
/// POST destination for the detection result.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("callback_url")]
public string? CallbackUrl { get; set; }

/// <summary>
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("wait_for_intelligence")]
public bool? WaitForIntelligence { get; set; }

/// <summary>
/// Generate visualization artifacts
/// </summary>
Expand Down Expand Up @@ -143,7 +149,10 @@ public sealed partial class CreateDetectionRequest
/// The media file to analyze (audio, video, or image). Must be 150 MB or smaller.
/// </param>
/// <param name="callbackUrl">
/// 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.
/// POST destination for the detection result.
/// </param>
/// <param name="waitForIntelligence">
/// Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time.
/// </param>
/// <param name="visualize">
/// Generate visualization artifacts
Expand Down Expand Up @@ -208,6 +217,7 @@ public CreateDetectionRequest(
byte[] file,
string filename,
string? callbackUrl,
bool? waitForIntelligence,
bool? visualize,
int? frameLength,
double? startRegion,
Expand All @@ -226,6 +236,7 @@ public CreateDetectionRequest(
this.File = file ?? throw new global::System.ArgumentNullException(nameof(file));
this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename));
this.CallbackUrl = callbackUrl;
this.WaitForIntelligence = waitForIntelligence;
this.Visualize = visualize;
this.FrameLength = frameLength;
this.StartRegion = startRegion;
Expand Down
6 changes: 5 additions & 1 deletion src/libs/ResembleAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,11 @@
"callback_url": {
"type": "string",
"format": "uri",
"description": "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."
"description": "POST destination for the detection result."
},
"wait_for_intelligence": {
"type": "boolean",
"description": "Controls callback timing when callback_url and intelligence=true are provided. True waits without a forced timeout until Detect and Intelligence are both finished. False sends after Detect finishes without waiting for Intelligence. When omitted, the callback waits up to 10 minutes for Intelligence before sending the result state available at that time."
},
"visualize": {
"type": "boolean",
Expand Down
Loading