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
121 changes: 121 additions & 0 deletions src/libs/Mubert/Generated/Mubert.AutoSDKHttpResponse.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@

#nullable enable

namespace Mubert
{
/// <summary>
/// Represents a successful HTTP response with status code and headers.
/// </summary>
public partial class AutoSDKHttpResponse
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers)
: this(
statusCode: statusCode,
headers: headers,
requestUri: null)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
global::System.Uri? requestUri)
{
StatusCode = statusCode;
Headers = headers ?? throw new global::System.ArgumentNullException(nameof(headers));
RequestUri = requestUri;
}

/// <summary>
/// Gets the HTTP status code.
/// </summary>
public global::System.Net.HttpStatusCode StatusCode { get; }
/// <summary>
/// Gets the response headers.
/// </summary>
public global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> Headers { get; }
/// <summary>
/// Gets the final request URI associated with the response.
/// </summary>
public global::System.Uri? RequestUri { get; }

internal static global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> CreateHeaders(
global::System.Net.Http.HttpResponseMessage response)
{
response = response ?? throw new global::System.ArgumentNullException(nameof(response));

var headers = global::System.Linq.Enumerable.ToDictionary(
response.Headers,
static header => header.Key,
static header => (global::System.Collections.Generic.IEnumerable<string>)global::System.Linq.Enumerable.ToArray(header.Value),
global::System.StringComparer.OrdinalIgnoreCase);

if (response.Content?.Headers == null)
{
return headers;
}

foreach (var header in response.Content.Headers)
{
if (headers.TryGetValue(header.Key, out var existingValues))
{
headers[header.Key] = global::System.Linq.Enumerable.ToArray(
global::System.Linq.Enumerable.Concat(existingValues, header.Value));
}
else
{
headers[header.Key] = global::System.Linq.Enumerable.ToArray(header.Value);
}
}

return headers;
}
}

/// <summary>
/// Represents a successful HTTP response with status code, headers, and body.
/// </summary>
public partial class AutoSDKHttpResponse<T> : AutoSDKHttpResponse
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse{T}"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
T body)
: this(
statusCode: statusCode,
headers: headers,
requestUri: null,
body: body)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="AutoSDKHttpResponse{T}"/> class.
/// </summary>
public AutoSDKHttpResponse(
global::System.Net.HttpStatusCode statusCode,
global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>> headers,
global::System.Uri? requestUri,
T body)
: base(statusCode, headers, requestUri)
{
Body = body;
}

/// <summary>
/// Gets the response body.
/// </summary>
public T Body { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,57 @@ public partial interface IPublicClient
global::Mubert.TrackModeEnum? mode = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get music library filter parameters<br/>
/// Retrieve available filter parameters and track counts for the music library. Use filters to refine results — multiple filters are combined with logical AND.
/// </summary>
/// <param name="bpm">
/// Example: 120
/// </param>
/// <param name="key">
/// Key-Scale for a track.<br/>
/// Example: C#
/// </param>
/// <param name="genres">
/// Example: Rock
/// </param>
/// <param name="moods">
/// Example: Happy
/// </param>
/// <param name="activities">
/// Example: Minimal 170
/// </param>
/// <param name="playlists">
/// Example: Chill Vibes
/// </param>
/// <param name="instruments">
/// Example: Guitar
/// </param>
/// <param name="themes">
/// Example: Corporate
/// </param>
/// <param name="duration">
/// Example: 180
/// </param>
/// <param name="mode">
/// Enumeration representing different modes of a track.<br/>
/// Example: loop
/// </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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::System.Collections.Generic.IList<global::Mubert.GetPublicMusicLibraryParamsResponseItem>>> GetPublicMusicLibraryParamsAsResponseAsync(
int? bpm = default,
global::Mubert.TrackKeyScaleEnum? key = default,
string? genres = default,
string? moods = default,
string? activities = default,
string? playlists = default,
string? instruments = default,
string? themes = default,
int? duration = default,
global::Mubert.TrackModeEnum? mode = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,73 @@ public partial interface IPublicClient
global::Mubert.TrackModeEnum? mode = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List music library tracks<br/>
/// Retrieve a paginated list of pre-generated music library tracks with optional filtering by genre, mood, BPM, key, and other parameters.
/// </summary>
/// <param name="offset">
/// Example: 0
/// </param>
/// <param name="limit">
/// Example: 25
/// </param>
/// <param name="order">
/// Example: asc
/// </param>
/// <param name="orderBy">
/// Example: created_at
/// </param>
/// <param name="bpm">
/// Example: 120
/// </param>
/// <param name="key">
/// Key-Scale for a track.<br/>
/// Example: C#
/// </param>
/// <param name="genres">
/// Example: Rock
/// </param>
/// <param name="moods">
/// Example: Happy
/// </param>
/// <param name="activities">
/// Example: Minimal 170
/// </param>
/// <param name="playlists">
/// Example: Chill Vibes
/// </param>
/// <param name="instruments">
/// Example: Guitar
/// </param>
/// <param name="themes">
/// Example: Corporate
/// </param>
/// <param name="duration">
/// Example: 180
/// </param>
/// <param name="mode">
/// Enumeration representing different modes of a track.<br/>
/// Example: loop
/// </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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::Mubert.GetPublicMusicLibraryTracksResponse>> GetPublicMusicLibraryTracksAsResponseAsync(
int? offset = default,
int? limit = default,
global::Mubert.GetPublicMusicLibraryTracksOrder? order = default,
string? orderBy = default,
int? bpm = default,
global::Mubert.TrackKeyScaleEnum? key = default,
string? genres = default,
string? moods = default,
string? activities = default,
string? playlists = default,
string? instruments = default,
string? themes = default,
int? duration = default,
global::Mubert.TrackModeEnum? mode = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ public partial interface IPublicClient
global::System.Threading.Tasks.Task<global::Mubert.GetPublicPlaylistsResponse> GetPublicPlaylistsAsync(
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List playlists<br/>
/// Retrieve all available music channels, groups, and categories. Each entry includes a playlist_index identifier, category, group, channel name, and available parameters (BPM range, keys).
/// </summary>
/// <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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::Mubert.GetPublicPlaylistsResponse>> GetPublicPlaylistsAsResponseAsync(
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,18 @@ public partial interface IPublicClient
global::Mubert.LanguageEnum? lang = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve a list of available prices with their options, limits, and Stripe prices
/// </summary>
/// <param name="lang">
/// Languages
/// </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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::Mubert.GetPublicPricesResponse>> GetPublicPricesAsResponseAsync(
global::Mubert.LanguageEnum? lang = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,22 @@ public partial interface IPublicClient
global::Mubert.LanguageEnum? lang = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve a single price by ID with its options, limits, and Stripe prices
/// </summary>
/// <param name="price">
/// Example: 123e4567-e89b-12d3-a456-426614174000
/// </param>
/// <param name="lang">
/// Languages
/// </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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::Mubert.GetPublicPricesByPriceResponse>> GetPublicPricesByPriceAsResponseAsync(
global::System.Guid price,
global::Mubert.LanguageEnum? lang = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,33 @@ public partial interface IPublicClient
global::Mubert.StreamingTypeEnum? type = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get streaming link<br/>
/// Generate a streaming URL for continuous music playback. The returned link can be used in any audio player that supports HTTP streaming or WebRTC.
/// </summary>
/// <param name="playlistIndex">
/// Example: 1.0.0
/// </param>
/// <param name="bitrate">
/// Enumeration representing different track bitrates.<br/>
/// Example: 320
/// </param>
/// <param name="intensity">
/// Enumeration representing different intensity levels of a track.<br/>
/// Example: medium
/// </param>
/// <param name="type">
/// Streaming Type Enum
/// </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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::Mubert.GetPublicStreamingGetLinkResponse>> GetPublicStreamingGetLinkAsResponseAsync(
string playlistIndex,
int? bitrate = default,
global::Mubert.TrackIntensityEnum? intensity = default,
global::Mubert.StreamingTypeEnum? type = default,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public partial interface IPublicClient
/// <summary>
/// Buy a subscription via GET (redirect flow). Creates a Stripe Checkout session and redirects to checkout 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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse<global::Mubert.GetPublicSubscriptionsBuyResponse>> GetPublicSubscriptionsBuyAsResponseAsync(

global::Mubert.GetPublicSubscriptionsBuyRequest request,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Buy a subscription via GET (redirect flow). Creates a Stripe Checkout session and redirects to checkout URL.
/// </summary>
/// <param name="companyName">
/// Example: Acme Inc
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ public partial interface IPublicClient
/// Cancel Subscription (GET)<br/>
/// Cancel a subscription via GET. Cancels at the end of the current billing period.
/// </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::Mubert.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Mubert.AutoSDKHttpResponse> GetPublicSubscriptionsCancelAsResponseAsync(

global::Mubert.GetPublicSubscriptionsCancelRequest request,
global::Mubert.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Cancel Subscription (GET)<br/>
/// Cancel a subscription via GET. Cancels at the end of the current billing period.
/// </summary>
/// <param name="companyId">
/// Example: 550e8400-e29b-41d4-a716-446655440000
/// </param>
Expand Down
Loading