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 Mixedbread
{
public partial class AdminClient
{


private static readonly global::Mixedbread.EndPointSecurityRequirement s_ReingestAllStoresSecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ReingestAllStoresSecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_ReingestAllStoresSecurityRequirement0,
};
partial void PrepareReingestAllStoresArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid organizationId,
Expand Down Expand Up @@ -61,13 +80,19 @@ partial void ProcessReingestAllStoresResponseContent(
statuses: statuses,
billable: ref billable);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ReingestAllStoresSecurityRequirements,
operationName: "ReingestAllStoresAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/admin/stores/{organizationId}/{storeIdentifier}/reingest",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("statuses", statuses?.ToString())
.AddOptionalParameter("billable", billable?.ToString().ToLowerInvariant())
;
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
Expand All @@ -77,7 +102,7 @@ partial void ProcessReingestAllStoresResponseContent(
__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/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed partial class AdminClient : global::Mixedbread.IAdminClient, globa
/// <summary>
/// mixedbread ai production server
/// </summary>
public const string DefaultBaseUrl = "https://api.mixedbread.com";
public const string DefaultBaseUrl = "https://api.mixedbread.com/";

private bool _disposeHttpClient = true;

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


private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateApiKeySecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_CreateApiKeySecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_CreateApiKeySecurityRequirement0,
};
partial void PrepareCreateApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.ApiKeyCreateParams request);
Expand Down Expand Up @@ -45,9 +64,15 @@ partial void ProcessCreateApiKeyResponseContent(
httpClient: HttpClient,
request: request);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_CreateApiKeySecurityRequirements,
operationName: "CreateApiKeyAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/api-keys",
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 @@ -57,7 +82,7 @@ partial void ProcessCreateApiKeyResponseContent(
__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 Mixedbread
{
public partial class ApiKeysClient
{


private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteApiKeySecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_DeleteApiKeySecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_DeleteApiKeySecurityRequirement0,
};
partial void PrepareDeleteApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid apiKeyId);
Expand Down Expand Up @@ -44,9 +63,15 @@ partial void ProcessDeleteApiKeyResponseContent(
httpClient: HttpClient,
apiKeyId: ref apiKeyId);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_DeleteApiKeySecurityRequirements,
operationName: "DeleteApiKeyAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/api-keys/{apiKeyId}",
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.Delete,
Expand All @@ -56,7 +81,7 @@ partial void ProcessDeleteApiKeyResponseContent(
__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 Mixedbread
{
public partial class ApiKeysClient
{


private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListApiKeysSecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_ListApiKeysSecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_ListApiKeysSecurityRequirement0,
};
partial void PrepareListApiKeysArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
Expand Down Expand Up @@ -53,13 +72,19 @@ partial void ProcessListApiKeysResponseContent(
limit: ref limit,
offset: ref offset);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_ListApiKeysSecurityRequirements,
operationName: "ListApiKeysAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/api-keys",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("limit", limit?.ToString())
.AddOptionalParameter("offset", offset?.ToString())
;
;
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 ProcessListApiKeysResponseContent(
__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 Mixedbread
{
public partial class ApiKeysClient
{


private static readonly global::Mixedbread.EndPointSecurityRequirement s_RerollApiKeySecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_RerollApiKeySecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_RerollApiKeySecurityRequirement0,
};
partial void PrepareRerollApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid apiKeyId);
Expand Down Expand Up @@ -45,9 +64,15 @@ partial void ProcessRerollApiKeyResponseContent(
httpClient: HttpClient,
apiKeyId: ref apiKeyId);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_RerollApiKeySecurityRequirements,
operationName: "RerollApiKeyAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/api-keys/{apiKeyId}/reroll",
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 @@ -57,7 +82,7 @@ partial void ProcessRerollApiKeyResponseContent(
__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 Mixedbread
{
public partial class ApiKeysClient
{


private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveApiKeySecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_RetrieveApiKeySecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_RetrieveApiKeySecurityRequirement0,
};
partial void PrepareRetrieveApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid apiKeyId);
Expand Down Expand Up @@ -44,9 +63,15 @@ partial void ProcessRetrieveApiKeyResponseContent(
httpClient: HttpClient,
apiKeyId: ref apiKeyId);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_RetrieveApiKeySecurityRequirements,
operationName: "RetrieveApiKeyAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/api-keys/{apiKeyId}",
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 @@ -56,7 +81,7 @@ partial void ProcessRetrieveApiKeyResponseContent(
__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 Mixedbread
{
public partial class ApiKeysClient
{


private static readonly global::Mixedbread.EndPointSecurityRequirement s_RevokeApiKeySecurityRequirement0 =
new global::Mixedbread.EndPointSecurityRequirement
{
Authorizations = new global::Mixedbread.EndPointAuthorizationRequirement[]
{ new global::Mixedbread.EndPointAuthorizationRequirement
{
Type = "Http",
Location = "Header",
Name = "Bearer",
FriendlyName = "Bearer",
},
},
};
private static readonly global::Mixedbread.EndPointSecurityRequirement[] s_RevokeApiKeySecurityRequirements =
new global::Mixedbread.EndPointSecurityRequirement[]
{ s_RevokeApiKeySecurityRequirement0,
};
partial void PrepareRevokeApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid apiKeyId);
Expand Down Expand Up @@ -44,9 +63,15 @@ partial void ProcessRevokeApiKeyResponseContent(
httpClient: HttpClient,
apiKeyId: ref apiKeyId);


var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
availableAuthorizations: Authorizations,
securityRequirements: s_RevokeApiKeySecurityRequirements,
operationName: "RevokeApiKeyAsync");

var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/api-keys/{apiKeyId}/revoke",
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 @@ -56,7 +81,7 @@ partial void ProcessRevokeApiKeyResponseContent(
__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
Loading