Skip to content

Commit eb60f56

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#7)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 8ab47b9 commit eb60f56

22 files changed

Lines changed: 3440 additions & 1417 deletions

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckImageByUpload.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ public partial interface ISightengineClient
1212
/// AI-generated image detection, image type, and quality assessment.
1313
/// </summary>
1414
/// <param name="request"></param>
15+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1516
/// <param name="cancellationToken">The token to cancel the operation with</param>
1617
/// <exception cref="global::Sightengine.ApiException"></exception>
1718
global::System.Threading.Tasks.Task<global::Sightengine.ImageCheckResponse> CheckImageByUploadAsync(
1819

1920
global::Sightengine.CheckImageByUploadRequest request,
21+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
2022
global::System.Threading.CancellationToken cancellationToken = default);
2123
/// <summary>
2224
/// Check Image (Upload)<br/>
@@ -37,12 +39,14 @@ public partial interface ISightengineClient
3739
/// alcohol, offensive, self-harm, scam, face-attributes, text-content,<br/>
3840
/// qr-content, genai, type, quality.
3941
/// </param>
42+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
4043
/// <param name="cancellationToken">The token to cancel the operation with</param>
4144
/// <exception cref="global::System.InvalidOperationException"></exception>
4245
global::System.Threading.Tasks.Task<global::Sightengine.ImageCheckResponse> CheckImageByUploadAsync(
4346
byte[] media,
4447
string medianame,
4548
string models,
49+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
4650
global::System.Threading.CancellationToken cancellationToken = default);
4751
}
4852
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckImageByUrl.g.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ public partial interface ISightengineClient
1313
/// </summary>
1414
/// <param name="url"></param>
1515
/// <param name="models"></param>
16+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1617
/// <param name="cancellationToken">The token to cancel the operation with</param>
1718
/// <exception cref="global::Sightengine.ApiException"></exception>
1819
global::System.Threading.Tasks.Task<global::Sightengine.ImageCheckResponse> CheckImageByUrlAsync(
1920
string url,
2021
string models,
22+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
2123
global::System.Threading.CancellationToken cancellationToken = default);
2224
}
2325
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckText.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ public partial interface ISightengineClient
1212
/// for validating usernames.
1313
/// </summary>
1414
/// <param name="request"></param>
15+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1516
/// <param name="cancellationToken">The token to cancel the operation with</param>
1617
/// <exception cref="global::Sightengine.ApiException"></exception>
1718
global::System.Threading.Tasks.Task<global::Sightengine.TextCheckResponse> CheckTextAsync(
1819

1920
global::Sightengine.CheckTextRequest request,
21+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
2022
global::System.Threading.CancellationToken cancellationToken = default);
2123
/// <summary>
2224
/// Check Text<br/>
@@ -37,13 +39,15 @@ public partial interface ISightengineClient
3739
/// <param name="optCountries">
3840
/// Comma-separated country codes for phone number detection.
3941
/// </param>
42+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
4043
/// <param name="cancellationToken">The token to cancel the operation with</param>
4144
/// <exception cref="global::System.InvalidOperationException"></exception>
4245
global::System.Threading.Tasks.Task<global::Sightengine.TextCheckResponse> CheckTextAsync(
4346
string text,
4447
string lang,
4548
global::Sightengine.CheckTextRequestMode mode,
4649
string? optCountries = default,
50+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
4751
global::System.Threading.CancellationToken cancellationToken = default);
4852
}
4953
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckVideoAsync.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ public partial interface ISightengineClient
1212
/// (HLS, RTMP, RTMPS, RTSP, RTP, MPEG-DASH).
1313
/// </summary>
1414
/// <param name="request"></param>
15+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1516
/// <param name="cancellationToken">The token to cancel the operation with</param>
1617
/// <exception cref="global::Sightengine.ApiException"></exception>
1718
global::System.Threading.Tasks.Task<global::Sightengine.VideoCheckAsyncResponse> CheckVideoAsyncAsync(
1819

1920
global::Sightengine.CheckVideoAsyncRequest request,
21+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
2022
global::System.Threading.CancellationToken cancellationToken = default);
2123
/// <summary>
2224
/// Check Video (Asynchronous)<br/>
@@ -42,6 +44,7 @@ public partial interface ISightengineClient
4244
/// Available: nudity-2.1, gore-2.0, weapon, drugs, violence,<br/>
4345
/// alcohol, offensive, self-harm, scam.
4446
/// </param>
47+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
4548
/// <param name="cancellationToken">The token to cancel the operation with</param>
4649
/// <exception cref="global::System.InvalidOperationException"></exception>
4750
global::System.Threading.Tasks.Task<global::Sightengine.VideoCheckAsyncResponse> CheckVideoAsyncAsync(
@@ -50,6 +53,7 @@ public partial interface ISightengineClient
5053
string? medianame = default,
5154
string? streamUrl = default,
5255
string? callbackUrl = default,
56+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
5357
global::System.Threading.CancellationToken cancellationToken = default);
5458
}
5559
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckVideoSync.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ public partial interface ISightengineClient
1010
/// Submit either a raw video file or a public URL.
1111
/// </summary>
1212
/// <param name="request"></param>
13+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1314
/// <param name="cancellationToken">The token to cancel the operation with</param>
1415
/// <exception cref="global::Sightengine.ApiException"></exception>
1516
global::System.Threading.Tasks.Task<global::Sightengine.VideoCheckSyncResponse> CheckVideoSyncAsync(
1617

1718
global::Sightengine.CheckVideoSyncRequest request,
19+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
1820
global::System.Threading.CancellationToken cancellationToken = default);
1921
/// <summary>
2022
/// Check Video (Synchronous)<br/>
@@ -35,13 +37,15 @@ public partial interface ISightengineClient
3537
/// Available: nudity-2.1, gore-2.0, weapon, drugs, violence,<br/>
3638
/// alcohol, offensive, self-harm, scam.
3739
/// </param>
40+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
3841
/// <param name="cancellationToken">The token to cancel the operation with</param>
3942
/// <exception cref="global::System.InvalidOperationException"></exception>
4043
global::System.Threading.Tasks.Task<global::Sightengine.VideoCheckSyncResponse> CheckVideoSyncAsync(
4144
string models,
4245
byte[]? media = default,
4346
string? medianame = default,
4447
string? streamUrl = default,
48+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
4549
global::System.Threading.CancellationToken cancellationToken = default);
4650
}
4751
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckWorkflowByUpload.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ public partial interface ISightengineClient
1010
/// Workflows define custom rules and actions from the dashboard.
1111
/// </summary>
1212
/// <param name="request"></param>
13+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1314
/// <param name="cancellationToken">The token to cancel the operation with</param>
1415
/// <exception cref="global::Sightengine.ApiException"></exception>
1516
global::System.Threading.Tasks.Task<global::Sightengine.WorkflowCheckResponse> CheckWorkflowByUploadAsync(
1617

1718
global::Sightengine.CheckWorkflowByUploadRequest request,
19+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
1820
global::System.Threading.CancellationToken cancellationToken = default);
1921
/// <summary>
2022
/// Check Image with Workflow (Upload)<br/>
@@ -30,12 +32,14 @@ public partial interface ISightengineClient
3032
/// <param name="workflow">
3133
/// Workflow ID from the Sightengine dashboard.
3234
/// </param>
35+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
3336
/// <param name="cancellationToken">The token to cancel the operation with</param>
3437
/// <exception cref="global::System.InvalidOperationException"></exception>
3538
global::System.Threading.Tasks.Task<global::Sightengine.WorkflowCheckResponse> CheckWorkflowByUploadAsync(
3639
byte[] media,
3740
string medianame,
3841
string workflow,
42+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
3943
global::System.Threading.CancellationToken cancellationToken = default);
4044
}
4145
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.CheckWorkflowByUrl.g.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ public partial interface ISightengineClient
1111
/// </summary>
1212
/// <param name="url"></param>
1313
/// <param name="workflow"></param>
14+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1415
/// <param name="cancellationToken">The token to cancel the operation with</param>
1516
/// <exception cref="global::Sightengine.ApiException"></exception>
1617
global::System.Threading.Tasks.Task<global::Sightengine.WorkflowCheckResponse> CheckWorkflowByUrlAsync(
1718
string url,
1819
string workflow,
20+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
1921
global::System.Threading.CancellationToken cancellationToken = default);
2022
}
2123
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.SubmitFeedback.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ public partial interface ISightengineClient
1111
/// The image is used to continuously improve the specified model.
1212
/// </summary>
1313
/// <param name="request"></param>
14+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
1415
/// <param name="cancellationToken">The token to cancel the operation with</param>
1516
/// <exception cref="global::Sightengine.ApiException"></exception>
1617
global::System.Threading.Tasks.Task<global::Sightengine.FeedbackResponse> SubmitFeedbackAsync(
1718

1819
global::Sightengine.SubmitFeedbackRequest request,
20+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
1921
global::System.Threading.CancellationToken cancellationToken = default);
2022
/// <summary>
2123
/// Submit Feedback<br/>
@@ -40,6 +42,7 @@ public partial interface ISightengineClient
4042
/// <param name="class">
4143
/// The expected/correct classification result.
4244
/// </param>
45+
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
4346
/// <param name="cancellationToken">The token to cancel the operation with</param>
4447
/// <exception cref="global::System.InvalidOperationException"></exception>
4548
global::System.Threading.Tasks.Task<global::Sightengine.FeedbackResponse> SubmitFeedbackAsync(
@@ -48,6 +51,7 @@ public partial interface ISightengineClient
4851
string? url = default,
4952
byte[]? media = default,
5053
string? medianame = default,
54+
global::Sightengine.AutoSDKRequestOptions? requestOptions = default,
5155
global::System.Threading.CancellationToken cancellationToken = default);
5256
}
5357
}

src/libs/Sightengine/Generated/Sightengine.ISightengineClient.g.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public partial interface ISightengineClient : global::System.IDisposable
3737
/// </summary>
3838
public bool ReadResponseAsString { get; set; }
3939

40+
/// <summary>
41+
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
42+
/// </summary>
43+
public global::Sightengine.AutoSDKClientOptions Options { get; }
44+
4045
/// <summary>
4146
///
4247
/// </summary>

0 commit comments

Comments
 (0)