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 @@ -12,11 +12,13 @@ public partial interface ISightengineClient
/// AI-generated image detection, image type, and quality assessment.
/// </summary>
/// <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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.ImageCheckResponse> CheckImageByUploadAsync(

global::Sightengine.CheckImageByUploadRequest request,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Check Image (Upload)<br/>
Expand All @@ -37,12 +39,14 @@ public partial interface ISightengineClient
/// alcohol, offensive, self-harm, scam, face-attributes, text-content,<br/>
/// qr-content, genai, type, quality.
/// </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::Sightengine.ImageCheckResponse> CheckImageByUploadAsync(
byte[] media,
string medianame,
string models,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ public partial interface ISightengineClient
/// </summary>
/// <param name="url"></param>
/// <param name="models"></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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.ImageCheckResponse> CheckImageByUrlAsync(
string url,
string models,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ public partial interface ISightengineClient
/// for validating usernames.
/// </summary>
/// <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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.TextCheckResponse> CheckTextAsync(

global::Sightengine.CheckTextRequest request,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Check Text<br/>
Expand All @@ -37,13 +39,15 @@ public partial interface ISightengineClient
/// <param name="optCountries">
/// Comma-separated country codes for phone number detection.
/// </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::Sightengine.TextCheckResponse> CheckTextAsync(
string text,
string lang,
global::Sightengine.CheckTextRequestMode mode,
string? optCountries = default,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ public partial interface ISightengineClient
/// (HLS, RTMP, RTMPS, RTSP, RTP, MPEG-DASH).
/// </summary>
/// <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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.VideoCheckAsyncResponse> CheckVideoAsyncAsync(

global::Sightengine.CheckVideoAsyncRequest request,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Check Video (Asynchronous)<br/>
Expand All @@ -42,6 +44,7 @@ public partial interface ISightengineClient
/// Available: nudity-2.1, gore-2.0, weapon, drugs, violence,<br/>
/// alcohol, offensive, self-harm, scam.
/// </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::Sightengine.VideoCheckAsyncResponse> CheckVideoAsyncAsync(
Expand All @@ -50,6 +53,7 @@ public partial interface ISightengineClient
string? medianame = default,
string? streamUrl = default,
string? callbackUrl = default,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ public partial interface ISightengineClient
/// Submit either a raw video file or a public URL.
/// </summary>
/// <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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.VideoCheckSyncResponse> CheckVideoSyncAsync(

global::Sightengine.CheckVideoSyncRequest request,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Check Video (Synchronous)<br/>
Expand All @@ -35,13 +37,15 @@ public partial interface ISightengineClient
/// Available: nudity-2.1, gore-2.0, weapon, drugs, violence,<br/>
/// alcohol, offensive, self-harm, scam.
/// </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::Sightengine.VideoCheckSyncResponse> CheckVideoSyncAsync(
string models,
byte[]? media = default,
string? medianame = default,
string? streamUrl = default,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ public partial interface ISightengineClient
/// Workflows define custom rules and actions from the dashboard.
/// </summary>
/// <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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.WorkflowCheckResponse> CheckWorkflowByUploadAsync(

global::Sightengine.CheckWorkflowByUploadRequest request,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Check Image with Workflow (Upload)<br/>
Expand All @@ -30,12 +32,14 @@ public partial interface ISightengineClient
/// <param name="workflow">
/// Workflow ID from the Sightengine dashboard.
/// </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::Sightengine.WorkflowCheckResponse> CheckWorkflowByUploadAsync(
byte[] media,
string medianame,
string workflow,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ public partial interface ISightengineClient
/// </summary>
/// <param name="url"></param>
/// <param name="workflow"></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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.WorkflowCheckResponse> CheckWorkflowByUrlAsync(
string url,
string workflow,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ public partial interface ISightengineClient
/// The image is used to continuously improve the specified model.
/// </summary>
/// <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::Sightengine.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Sightengine.FeedbackResponse> SubmitFeedbackAsync(

global::Sightengine.SubmitFeedbackRequest request,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Submit Feedback<br/>
Expand All @@ -40,6 +42,7 @@ public partial interface ISightengineClient
/// <param name="class">
/// The expected/correct classification result.
/// </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::Sightengine.FeedbackResponse> SubmitFeedbackAsync(
Expand All @@ -48,6 +51,7 @@ public partial interface ISightengineClient
string? url = default,
byte[]? media = default,
string? medianame = default,
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public partial interface ISightengineClient : global::System.IDisposable
/// </summary>
public bool ReadResponseAsString { get; set; }

/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Sightengine.AutoSDKClientOptions Options { get; }

/// <summary>
///
/// </summary>
Expand Down
Loading