Skip to content

Commit

Permalink
feat: Updated OpenAPI spec (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <[email protected]>
  • Loading branch information
HavenDV and github-actions[bot] authored Aug 12, 2024
1 parent 055925d commit 7e5133d
Show file tree
Hide file tree
Showing 116 changed files with 1,606 additions and 1,624 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<object> AccountUpdateDetailsV1MePatchAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.AccountUpdateDetailsV1MePatchResponse> AccountUpdateDetailsV1MePatchAsync(
global::DeepInfra.MeIn request,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -40,7 +40,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
request: request);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Patch,
method: new global::System.Net.Http.HttpMethod("PATCH"),
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/me", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.MeIn),
Expand Down Expand Up @@ -89,7 +89,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.AccountUpdateDetailsV1MePatchResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}

Expand All @@ -109,7 +109,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<object> AccountUpdateDetailsV1MePatchAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.AccountUpdateDetailsV1MePatchResponse> AccountUpdateDetailsV1MePatchAsync(
string? name = default,
string? email = default,
bool isBusinessAccount = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ public partial class DeepInfraApi
{
partial void PrepareBillingPortalPaymentBillingPortalGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string returnUrl,
ref string session);
ref string? returnUrl,
ref string? session);
partial void PrepareBillingPortalPaymentBillingPortalGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string returnUrl,
string session);
string? returnUrl,
string? session);
partial void ProcessBillingPortalPaymentBillingPortalGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -33,8 +33,8 @@ partial void ProcessBillingPortalPaymentBillingPortalGetResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.BillingPortalOut> BillingPortalPaymentBillingPortalGetAsync(
string returnUrl,
string session,
string? returnUrl,
string? session,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ partial void ProcessCliVersionCliVersionGetResponseContent(
/// <param name="version"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<object> CliVersionCliVersionGetAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.CliVersionCliVersionGetResponse> CliVersionCliVersionGetAsync(
string version,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -82,7 +82,7 @@ partial void ProcessCliVersionCliVersionGetResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.CliVersionCliVersionGetResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ namespace DeepInfra
{
public partial class DeepInfraApi
{
partial void PrepareCreateVoiceV1VoicesAddPostArguments(
partial void PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareCreateVoiceV1VoicesAddPostRequest(
partial void PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage);
partial void ProcessCreateVoiceV1VoicesAddPostResponse(
partial void ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessCreateVoiceV1VoicesAddPostResponseContent(
partial void ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
Expand All @@ -25,22 +25,22 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent(
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.Voice> CreateVoiceV1VoicesAddPostAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.Voice2> CreateVoiceV1ElevenlabsV1VoicesAddPostAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: _httpClient);
PrepareCreateVoiceV1VoicesAddPostArguments(
PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostArguments(
httpClient: _httpClient);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/voices/add", global::System.UriKind.RelativeOrAbsolute));
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/elevenlabs/v1/voices/add", global::System.UriKind.RelativeOrAbsolute));

PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareCreateVoiceV1VoicesAddPostRequest(
PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest);

Expand All @@ -52,7 +52,7 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent(
ProcessResponse(
client: _httpClient,
response: response);
ProcessCreateVoiceV1VoicesAddPostResponse(
ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponse(
httpClient: _httpClient,
httpResponseMessage: response);

Expand All @@ -62,7 +62,7 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessCreateVoiceV1VoicesAddPostResponseContent(
ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);
Expand All @@ -77,7 +77,7 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice2) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ public partial class DeepInfraApi
{
partial void PrepareDeepstartApplyPaymentDeepstartApplicationPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string session,
ref string? session,
global::DeepInfra.DeepStartApplicationIn request);
partial void PrepareDeepstartApplyPaymentDeepstartApplicationPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string session,
string? session,
global::DeepInfra.DeepStartApplicationIn request);
partial void ProcessDeepstartApplyPaymentDeepstartApplicationPostResponse(
global::System.Net.Http.HttpClient httpClient,
Expand All @@ -31,7 +31,7 @@ partial void ProcessDeepstartApplyPaymentDeepstartApplicationPostResponseContent
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeepStartApplicationOut> DeepstartApplyPaymentDeepstartApplicationPostAsync(
string session,
string? session,
global::DeepInfra.DeepStartApplicationIn request,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -123,7 +123,7 @@ partial void ProcessDeepstartApplyPaymentDeepstartApplicationPostResponseContent
string funding,
string foundedOn,
string website,
string session = default,
string? session = default,
string? id = default,
string? uid = default,
int createdAt = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ partial void ProcessDeleteApiTokenV1ApiTokensApiTokenDeleteResponseContent(
/// <param name="apiToken"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<object> DeleteApiTokenV1ApiTokensApiTokenDeleteAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse> DeleteApiTokenV1ApiTokensApiTokenDeleteAsync(
string apiToken,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -82,7 +82,7 @@ partial void ProcessDeleteApiTokenV1ApiTokensApiTokenDeleteResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ namespace DeepInfra
{
public partial class DeepInfraApi
{
partial void PrepareDeleteVoiceV1VoicesVoiceIdDeleteArguments(
partial void PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string voiceId);
partial void PrepareDeleteVoiceV1VoicesVoiceIdDeleteRequest(
partial void PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string voiceId);
partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponse(
partial void ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent(
partial void ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
Expand All @@ -27,24 +27,24 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent(
/// <param name="voiceId"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<object> DeleteVoiceV1VoicesVoiceIdDeleteAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse> DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteAsync(
string voiceId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: _httpClient);
PrepareDeleteVoiceV1VoicesVoiceIdDeleteArguments(
PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteArguments(
httpClient: _httpClient,
voiceId: ref voiceId);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute));
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/elevenlabs/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute));

PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareDeleteVoiceV1VoicesVoiceIdDeleteRequest(
PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
voiceId: voiceId);
Expand All @@ -57,7 +57,7 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent(
ProcessResponse(
client: _httpClient,
response: response);
ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponse(
ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse(
httpClient: _httpClient,
httpResponseMessage: response);

Expand All @@ -67,7 +67,7 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent(
ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);
Expand All @@ -82,7 +82,7 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ partial void PrepareDeployDetailedStatsDeployDeployIdStats2GetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string deployId,
ref string from,
ref string to);
ref string? to);
partial void PrepareDeployDetailedStatsDeployDeployIdStats2GetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string deployId,
string from,
string to);
string? to);
partial void ProcessDeployDetailedStatsDeployDeployIdStats2GetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -41,7 +41,7 @@ partial void ProcessDeployDetailedStatsDeployDeployIdStats2GetResponseContent(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DetailedDeploymentStatsOut> DeployDetailedStatsDeployDeployIdStats2GetAsync(
string deployId,
string from,
string to,
string? to,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public partial class DeepInfraApi
{
partial void PrepareDeployGpuAvailabilityDeployLlmGpuAvailabilityGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string source);
ref string? source);
partial void PrepareDeployGpuAvailabilityDeployLlmGpuAvailabilityGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string source);
string? source);
partial void ProcessDeployGpuAvailabilityDeployLlmGpuAvailabilityGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -28,7 +28,7 @@ partial void ProcessDeployGpuAvailabilityDeployLlmGpuAvailabilityGetResponseCont
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeployGPUAvailability> DeployGpuAvailabilityDeployLlmGpuAvailabilityGetAsync(
string source,
string? source,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Loading

0 comments on commit 7e5133d

Please sign in to comment.