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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/libs/MagicHour/Generated/MagicHour.AudioProjectsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed partial class AudioProjectsClient : global::MagicHour.IAudioProjec
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::MagicHour.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -50,11 +53,37 @@ public AudioProjectsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::MagicHour.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the AudioProjectsClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public AudioProjectsClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::MagicHour.EndPointAuthorization>? authorizations = null,
global::MagicHour.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::MagicHour.EndPointAuthorization>();
Options = options ?? new global::MagicHour.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/libs/MagicHour/Generated/MagicHour.FilesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public sealed partial class FilesClient : global::MagicHour.IFilesClient, global
#if DEBUG
= true;
#endif

/// <inheritdoc/>
public global::MagicHour.AutoSDKClientOptions Options { get; }
/// <summary>
///
/// </summary>
Expand All @@ -50,11 +53,37 @@ public FilesClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::MagicHour.EndPointAuthorization>? authorizations = null,
bool disposeHttpClient = true) : this(
httpClient,
baseUri,
authorizations,
options: null,
disposeHttpClient: disposeHttpClient)
{
}

/// <summary>
/// Creates a new instance of the FilesClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public FilesClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::MagicHour.EndPointAuthorization>? authorizations = null,
global::MagicHour.AutoSDKClientOptions? options = null,
bool disposeHttpClient = true)
{

HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::MagicHour.EndPointAuthorization>();
Options = options ?? new global::MagicHour.AutoSDKClientOptions();
_disposeHttpClient = disposeHttpClient;

Initialized(HttpClient);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public partial interface IAudioProjectsClient
/// * The cost is rounded up to the nearest whole number
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -34,6 +35,7 @@ public partial interface IAudioProjectsClient
global::System.Threading.Tasks.Task<global::MagicHour.AiVoiceClonerCreateAudioResponse> AiVoiceClonerCreateAudioAsync(

global::MagicHour.AiVoiceClonerCreateAudioRequest request,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// AI Voice Cloner<br/>
Expand All @@ -50,12 +52,14 @@ public partial interface IAudioProjectsClient
/// Provide the assets for voice cloning.
/// </param>
/// <param name="style"></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::MagicHour.AiVoiceClonerCreateAudioResponse> AiVoiceClonerCreateAudioAsync(
global::MagicHour.AiVoiceClonerCreateAudioRequestAssets assets,
global::MagicHour.AiVoiceClonerCreateAudioRequestStyle style,
string? name = default,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IAudioProjectsClient
/// Generate speech from text. Each character costs 0.05 credits. The cost is rounded up to the nearest whole number.
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -30,6 +31,7 @@ public partial interface IAudioProjectsClient
global::System.Threading.Tasks.Task<global::MagicHour.AiVoiceGeneratorCreateAudioResponse> AiVoiceGeneratorCreateAudioAsync(

global::MagicHour.AiVoiceGeneratorCreateAudioRequest request,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// AI Voice Generator<br/>
Expand All @@ -44,11 +46,13 @@ public partial interface IAudioProjectsClient
/// The content used to generate speech.<br/>
/// Example: {"prompt":"Hello, how are you?","voice_name":"Elon Musk"}
/// </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::MagicHour.AiVoiceGeneratorCreateAudioResponse> AiVoiceGeneratorCreateAudioAsync(
global::MagicHour.AiVoiceGeneratorCreateAudioRequestStyle style,
string? name = default,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public partial interface IAudioProjectsClient
/// <param name="id">
/// Example: cuid-example
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -21,6 +22,7 @@ public partial interface IAudioProjectsClient
/// </remarks>
global::System.Threading.Tasks.Task AudioProjectsDeleteAsync(
string id,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public partial interface IAudioProjectsClient
/// <param name="id">
/// Example: cuid-example
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -29,6 +30,7 @@ public partial interface IAudioProjectsClient
/// </remarks>
global::System.Threading.Tasks.Task<global::MagicHour.AudioProjectsGetDetailsResponse> AudioProjectsGetDetailsAsync(
string id,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public partial interface IAudioProjectsClient : 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::MagicHour.AutoSDKClientOptions Options { get; }

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public partial interface IFilesClient
/// Note: Face detection is free to use for the near future. Pricing may change in the future.
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -32,6 +33,7 @@ public partial interface IFilesClient
global::System.Threading.Tasks.Task<global::MagicHour.FaceDetectionDetectFacesResponse> FaceDetectionDetectFacesAsync(

global::MagicHour.FaceDetectionDetectFacesRequest request,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Face Detection<br/>
Expand All @@ -50,11 +52,13 @@ public partial interface IFilesClient
/// <param name="assets">
/// Provide the assets for face 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::MagicHour.FaceDetectionDetectFacesResponse> FaceDetectionDetectFacesAsync(
global::MagicHour.FaceDetectionDetectFacesRequestAssets assets,
double? confidenceScore = default,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public partial interface IFilesClient
/// <param name="id">
/// Example: uuid-example
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -22,6 +23,7 @@ public partial interface IFilesClient
/// </remarks>
global::System.Threading.Tasks.Task<global::MagicHour.FaceDetectionGetDetailsResponse> FaceDetectionGetDetailsAsync(
string id,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial interface IFilesClient
/// ```
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -48,6 +49,7 @@ public partial interface IFilesClient
global::System.Threading.Tasks.Task<global::MagicHour.VideoAssetsGeneratePresignedUrlResponse> VideoAssetsGeneratePresignedUrlAsync(

global::MagicHour.VideoAssetsGeneratePresignedUrlRequest request,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate asset upload urls<br/>
Expand All @@ -70,10 +72,12 @@ public partial interface IFilesClient
/// The list of assets to upload. The response array will match the order of items in the request body.<br/>
/// Example: [{"type":"video","extension":"mp4"}, {"type":"audio","extension":"mp3"}]
/// </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::MagicHour.VideoAssetsGeneratePresignedUrlResponse> VideoAssetsGeneratePresignedUrlAsync(
global::System.Collections.Generic.IList<global::MagicHour.VideoAssetsGeneratePresignedUrlRequestItem> items,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
5 changes: 5 additions & 0 deletions src/libs/MagicHour/Generated/MagicHour.IFilesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public partial interface IFilesClient : 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::MagicHour.AutoSDKClientOptions Options { get; }

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IImageProjectsClient
/// Change outfits in photos in seconds with just a photo reference. Each photo costs 25 credits.
/// </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::MagicHour.ApiException"></exception>
/// <remarks>
Expand All @@ -31,6 +32,7 @@ public partial interface IImageProjectsClient
global::System.Threading.Tasks.Task<global::MagicHour.AiClothesChangerCreateImageResponse> AiClothesChangerCreateImageAsync(

global::MagicHour.AiClothesChangerCreateImageRequest request,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// AI Clothes Changer<br/>
Expand All @@ -44,11 +46,13 @@ public partial interface IImageProjectsClient
/// <param name="assets">
/// Provide the assets for clothes changer
/// </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::MagicHour.AiClothesChangerCreateImageResponse> AiClothesChangerCreateImageAsync(
global::MagicHour.AiClothesChangerCreateImageRequestAssets assets,
string? name = default,
global::MagicHour.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading