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 @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class BatchClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_GetBatchJobArtifactsSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_GetBatchJobArtifactsSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_GetBatchJobArtifactsSecurityRequirement0,
};
partial void PrepareGetBatchJobArtifactsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id);
Expand Down Expand Up @@ -37,9 +56,15 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
httpClient: HttpClient,
id: ref id);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetBatchJobArtifactsSecurityRequirements,
operationName: "GetBatchJobArtifactsAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/batch/jobs/{id}/artifacts",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -49,7 +74,7 @@ partial void ProcessGetBatchJobArtifactsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class BatchClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_GetBatchJobDetailsSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_GetBatchJobDetailsSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_GetBatchJobDetailsSecurityRequirement0,
};
partial void PrepareGetBatchJobDetailsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id);
Expand Down Expand Up @@ -37,9 +56,15 @@ partial void ProcessGetBatchJobDetailsResponseContent(
httpClient: HttpClient,
id: ref id);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetBatchJobDetailsSecurityRequirements,
operationName: "GetBatchJobDetailsAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/batch/jobs/{id}",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -49,7 +74,7 @@ partial void ProcessGetBatchJobDetailsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class BatchClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_GetBatchJobPredictionsSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_GetBatchJobPredictionsSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_GetBatchJobPredictionsSecurityRequirement0,
};
partial void PrepareGetBatchJobPredictionsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id);
Expand Down Expand Up @@ -37,9 +56,15 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
httpClient: HttpClient,
id: ref id);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetBatchJobPredictionsSecurityRequirements,
operationName: "GetBatchJobPredictionsAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/batch/jobs/{id}/predictions",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -49,7 +74,7 @@ partial void ProcessGetBatchJobPredictionsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
29 changes: 27 additions & 2 deletions src/libs/HumeAI/Generated/HumeAI.BatchClient.ListBatchJobs.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class BatchClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_ListBatchJobsSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_ListBatchJobsSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_ListBatchJobsSecurityRequirement0,
};
partial void PrepareListBatchJobsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
Expand Down Expand Up @@ -63,6 +82,12 @@ partial void ProcessListBatchJobsResponseContent(
sortBy: ref sortBy,
direction: ref direction);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ListBatchJobsSecurityRequirements,
operationName: "ListBatchJobsAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/batch/jobs",
baseUri: HttpClient.BaseAddress);
Expand All @@ -73,7 +98,7 @@ partial void ProcessListBatchJobsResponseContent(
.AddOptionalParameter("timestamp_ms", timestampMs?.ToString())
.AddOptionalParameter("sort_by", sortBy?.ToValueString())
.AddOptionalParameter("direction", direction?.ToValueString())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -83,7 +108,7 @@ partial void ProcessListBatchJobsResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class BatchClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_StartBatchInferenceJobSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_StartBatchInferenceJobSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_StartBatchInferenceJobSecurityRequirement0,
};
partial void PrepareStartBatchInferenceJobArguments(
global::System.Net.Http.HttpClient httpClient,
global::HumeAI.InferenceBaseRequest request);
Expand Down Expand Up @@ -41,9 +60,15 @@ partial void ProcessStartBatchInferenceJobResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_StartBatchInferenceJobSecurityRequirements,
operationName: "StartBatchInferenceJobAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: "/v0/batch/jobs",
baseUri: HttpClient.BaseAddress);
baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -53,7 +78,7 @@ partial void ProcessStartBatchInferenceJobResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
2 changes: 1 addition & 1 deletion src/libs/HumeAI/Generated/HumeAI.BatchClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class BatchClient : global::HumeAI.IBatchClient, global::S
/// <summary>
/// Production
/// </summary>
public const string DefaultBaseUrl = "https://api.hume.ai";
public const string DefaultBaseUrl = "https://api.hume.ai/";

private bool _disposeHttpClient = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class ChatGroupsClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_GetChatGroupSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_GetChatGroupSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_GetChatGroupSecurityRequirement0,
};
partial void PrepareGetChatGroupArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id,
Expand Down Expand Up @@ -52,14 +71,20 @@ partial void ProcessGetChatGroupResponseContent(
pageSize: ref pageSize,
ascendingOrder: ref ascendingOrder);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetChatGroupSecurityRequirements,
operationName: "GetChatGroupAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chat_groups/{id}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -69,7 +94,7 @@ partial void ProcessGetChatGroupResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ namespace HumeAI
{
public partial class ChatGroupsClient
{


private static readonly global::HumeAI.EndPointSecurityRequirement s_GetChatGroupAudioSecurityRequirement0 =
new global::HumeAI.EndPointSecurityRequirement
{
Authorizations = new global::HumeAI.EndPointAuthorizationRequirement[]
{ new global::HumeAI.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::HumeAI.EndPointSecurityRequirement[] s_GetChatGroupAudioSecurityRequirements =
new global::HumeAI.EndPointSecurityRequirement[]
{ s_GetChatGroupAudioSecurityRequirement0,
};
partial void PrepareGetChatGroupAudioArguments(
global::System.Net.Http.HttpClient httpClient,
ref string id,
Expand Down Expand Up @@ -52,14 +71,20 @@ partial void ProcessGetChatGroupAudioResponseContent(
pageSize: ref pageSize,
ascendingOrder: ref ascendingOrder);


var __authorizations = global::HumeAI.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_GetChatGroupAudioSecurityRequirements,
operationName: "GetChatGroupAudioAsync");

var __pathBuilder = new global::HumeAI.PathBuilder(
path: $"/v0/evi/chat_groups/{id}/audio",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("page_number", pageNumber?.ToString())
.AddOptionalParameter("page_size", pageSize?.ToString())
.AddOptionalParameter("ascending_order", ascendingOrder?.ToString().ToLowerInvariant())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
Expand All @@ -69,7 +94,7 @@ partial void ProcessGetChatGroupAudioResponseContent(
__httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
#endif

foreach (var __authorization in Authorizations)
foreach (var __authorization in __authorizations)
{
if (__authorization.Type == "Http" ||
__authorization.Type == "OAuth2")
Expand Down
Loading