diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs
index 53ea7a6..5e0c655 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs
@@ -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,
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
index 7906455..f4aed91 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class AdminClient : global::Mixedbread.IAdminClient, globa
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs
index e42ac1e..1cc5a4e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs
@@ -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);
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs
index a3107d9..f8bca9e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs
@@ -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);
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs
index f649336..c7a3906 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs
@@ -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,
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs
index 51486e7..d4e1f53 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs
@@ -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);
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs
index 44fc6ea..e32f320 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs
@@ -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);
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs
index f30fcc8..673a8cf 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs
@@ -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);
@@ -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,
@@ -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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs
index 7a5519f..8336599 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ApiKeysClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateApiKeySecurityRequirement0 =
+ 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_UpdateApiKeySecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateApiKeySecurityRequirement0,
+ };
partial void PrepareUpdateApiKeyArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid apiKeyId,
@@ -53,9 +72,15 @@ partial void ProcessUpdateApiKeyResponseContent(
apiKeyId: ref apiKeyId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateApiKeySecurityRequirements,
+ operationName: "UpdateApiKeyAsync");
+
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: new global::System.Net.Http.HttpMethod("PATCH"),
@@ -65,7 +90,7 @@ partial void ProcessUpdateApiKeyResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs
index 356ef57..4b66448 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ApiKeysClient : global::Mixedbread.IApiKeysClient, g
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs
index 3308bbd..44f8235 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class BillingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetBillingSummarySecurityRequirement0 =
+ 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_GetBillingSummarySecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetBillingSummarySecurityRequirement0,
+ };
partial void PrepareGetBillingSummaryArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareGetBillingSummaryRequest(
@@ -32,9 +51,15 @@ partial void ProcessGetBillingSummaryResponseContent(
PrepareGetBillingSummaryArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetBillingSummarySecurityRequirements,
+ operationName: "GetBillingSummaryAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/billing/summary",
- 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,
@@ -44,7 +69,7 @@ partial void ProcessGetBillingSummaryResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs
index 7934d2a..cadfb08 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class BillingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetParsingCostHistogramSecurityRequirement0 =
+ 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_GetParsingCostHistogramSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetParsingCostHistogramSecurityRequirement0,
+ };
partial void PrepareGetParsingCostHistogramArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareGetParsingCostHistogramRequest(
@@ -32,9 +51,15 @@ partial void ProcessGetParsingCostHistogramResponseContent(
PrepareGetParsingCostHistogramArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetParsingCostHistogramSecurityRequirements,
+ operationName: "GetParsingCostHistogramAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/billing/parsing/costs/histogram",
- 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,
@@ -44,7 +69,7 @@ partial void ProcessGetParsingCostHistogramResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs
index 457796a..cd8c253 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class BillingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetStoreCostHistogramSecurityRequirement0 =
+ 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_GetStoreCostHistogramSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetStoreCostHistogramSecurityRequirement0,
+ };
partial void PrepareGetStoreCostHistogramArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid storeId);
@@ -39,9 +58,15 @@ partial void ProcessGetStoreCostHistogramResponseContent(
httpClient: HttpClient,
storeId: ref storeId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetStoreCostHistogramSecurityRequirements,
+ operationName: "GetStoreCostHistogramAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/billing/stores/{storeId}/costs/histogram",
- 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,
@@ -51,7 +76,7 @@ partial void ProcessGetStoreCostHistogramResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs
index f31f64d..ee11d48 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class BillingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListStoreCostInfoSecurityRequirement0 =
+ 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_ListStoreCostInfoSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListStoreCostInfoSecurityRequirement0,
+ };
partial void PrepareListStoreCostInfoArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareListStoreCostInfoRequest(
@@ -32,9 +51,15 @@ partial void ProcessListStoreCostInfoResponseContent(
PrepareListStoreCostInfoArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListStoreCostInfoSecurityRequirements,
+ operationName: "ListStoreCostInfoAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/billing/stores",
- 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,
@@ -44,7 +69,7 @@ partial void ProcessListStoreCostInfoResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs
index 205ea97..53f15b7 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class BillingClient : global::Mixedbread.IBillingClient, g
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs
index 046d7fc..bdd2955 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.CreateChatCompletion.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class CompletionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateChatCompletionSecurityRequirement0 =
+ 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_CreateChatCompletionSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateChatCompletionSecurityRequirement0,
+ };
partial void PrepareCreateChatCompletionArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareCreateChatCompletionRequest(
@@ -43,9 +62,15 @@ partial void ProcessCreateChatCompletionResponseContent(
PrepareCreateChatCompletionArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateChatCompletionSecurityRequirements,
+ operationName: "CreateChatCompletionAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/chat/completions",
- 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,
@@ -55,7 +80,7 @@ partial void ProcessCreateChatCompletionResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs
index 727f90a..1d33404 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class CompletionsClient : global::Mixedbread.ICompletionsC
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs
index 9932208..f6814ce 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_AuthorizeDataSourceSecurityRequirement0 =
+ 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_AuthorizeDataSourceSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_AuthorizeDataSourceSecurityRequirement0,
+ };
partial void PrepareAuthorizeDataSourceArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId);
@@ -50,9 +69,15 @@ partial void ProcessAuthorizeDataSourceResponseContent(
httpClient: HttpClient,
dataSourceId: ref dataSourceId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AuthorizeDataSourceSecurityRequirements,
+ operationName: "AuthorizeDataSourceAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}/oauth2/authorize",
- 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,
@@ -62,7 +87,7 @@ partial void ProcessAuthorizeDataSourceResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs
index c71687d..a3c19ff 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateConnectorSecurityRequirement0 =
+ 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_CreateConnectorSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateConnectorSecurityRequirement0,
+ };
partial void PrepareCreateConnectorArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId,
@@ -53,9 +72,15 @@ partial void ProcessCreateConnectorResponseContent(
dataSourceId: ref dataSourceId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateConnectorSecurityRequirements,
+ operationName: "CreateConnectorAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}/connectors",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessCreateConnectorResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs
index 7c0240a..e6c1ea7 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateDataSourceSecurityRequirement0 =
+ 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_CreateDataSourceSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateDataSourceSecurityRequirement0,
+ };
partial void PrepareCreateDataSourceArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.AnyOf request);
@@ -43,9 +62,15 @@ partial void ProcessCreateDataSourceResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateDataSourceSecurityRequirements,
+ operationName: "CreateDataSourceAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/data_sources/",
- 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,
@@ -55,7 +80,7 @@ partial void ProcessCreateDataSourceResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs
index 26c617c..76a351f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteConnectorSecurityRequirement0 =
+ 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_DeleteConnectorSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteConnectorSecurityRequirement0,
+ };
partial void PrepareDeleteConnectorArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId,
@@ -52,9 +71,15 @@ partial void ProcessDeleteConnectorResponseContent(
dataSourceId: ref dataSourceId,
connectorId: ref connectorId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteConnectorSecurityRequirements,
+ operationName: "DeleteConnectorAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}/connectors/{connectorId}",
- 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,
@@ -64,7 +89,7 @@ partial void ProcessDeleteConnectorResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs
index 0d4bd84..a960e71 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteDataSourceSecurityRequirement0 =
+ 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_DeleteDataSourceSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteDataSourceSecurityRequirement0,
+ };
partial void PrepareDeleteDataSourceArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId);
@@ -42,9 +61,15 @@ partial void ProcessDeleteDataSourceResponseContent(
httpClient: HttpClient,
dataSourceId: ref dataSourceId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteDataSourceSecurityRequirements,
+ operationName: "DeleteDataSourceAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}",
- 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,
@@ -54,7 +79,7 @@ partial void ProcessDeleteDataSourceResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs
index d058abd..9befadd 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetConnectorSecurityRequirement0 =
+ 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_GetConnectorSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetConnectorSecurityRequirement0,
+ };
partial void PrepareGetConnectorArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId,
@@ -52,9 +71,15 @@ partial void ProcessGetConnectorResponseContent(
dataSourceId: ref dataSourceId,
connectorId: ref connectorId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetConnectorSecurityRequirements,
+ operationName: "GetConnectorAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}/connectors/{connectorId}",
- 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,
@@ -64,7 +89,7 @@ partial void ProcessGetConnectorResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs
index 236f69e..a76cc92 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetDataSourceSecurityRequirement0 =
+ 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_GetDataSourceSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetDataSourceSecurityRequirement0,
+ };
partial void PrepareGetDataSourceArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId);
@@ -44,9 +63,15 @@ partial void ProcessGetDataSourceResponseContent(
httpClient: HttpClient,
dataSourceId: ref dataSourceId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetDataSourceSecurityRequirements,
+ operationName: "GetDataSourceAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessGetDataSourceResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs
index f3502f9..8eca39f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListConnectorsSecurityRequirement0 =
+ 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_ListConnectorsSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListConnectorsSecurityRequirement0,
+ };
partial void PrepareListConnectorsArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId,
@@ -75,6 +94,12 @@ partial void ProcessListConnectorsResponseContent(
before: ref before,
includeTotal: ref includeTotal);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListConnectorsSecurityRequirements,
+ operationName: "ListConnectorsAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}/connectors",
baseUri: HttpClient.BaseAddress);
@@ -83,7 +108,7 @@ partial void ProcessListConnectorsResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -93,7 +118,7 @@ partial void ProcessListConnectorsResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs
index d5fc8c4..a0d435a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListDataSourcesSecurityRequirement0 =
+ 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_ListDataSourcesSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListDataSourcesSecurityRequirement0,
+ };
partial void PrepareListDataSourcesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -65,6 +84,12 @@ partial void ProcessListDataSourcesResponseContent(
before: ref before,
includeTotal: ref includeTotal);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListDataSourcesSecurityRequirements,
+ operationName: "ListDataSourcesAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/data_sources/",
baseUri: HttpClient.BaseAddress);
@@ -73,7 +98,7 @@ partial void ProcessListDataSourcesResponseContent(
.AddOptionalParameter("after", after)
.AddOptionalParameter("before", before)
.AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -83,7 +108,7 @@ partial void ProcessListDataSourcesResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs
index fc70a4e..09919a3 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_Oauth2CallbackSecurityRequirement0 =
+ 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_Oauth2CallbackSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_Oauth2CallbackSecurityRequirement0,
+ };
partial void PrepareOauth2CallbackArguments(
global::System.Net.Http.HttpClient httpClient,
ref string state,
@@ -69,6 +88,12 @@ partial void ProcessOauth2CallbackResponse(
error: ref error,
errorDescription: ref errorDescription);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_Oauth2CallbackSecurityRequirements,
+ operationName: "Oauth2CallbackAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/data_sources/oauth2/callback",
baseUri: HttpClient.BaseAddress);
@@ -77,7 +102,7 @@ partial void ProcessOauth2CallbackResponse(
.AddRequiredParameter("code", code)
.AddOptionalParameter("error", error)
.AddOptionalParameter("error_description", errorDescription)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -87,7 +112,7 @@ partial void ProcessOauth2CallbackResponse(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs
index 30d60c1..28df02d 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateConnectorSecurityRequirement0 =
+ 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_UpdateConnectorSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateConnectorSecurityRequirement0,
+ };
partial void PrepareUpdateConnectorArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId,
@@ -61,9 +80,15 @@ partial void ProcessUpdateConnectorResponseContent(
connectorId: ref connectorId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateConnectorSecurityRequirements,
+ operationName: "UpdateConnectorAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}/connectors/{connectorId}",
- 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.Put,
@@ -73,7 +98,7 @@ partial void ProcessUpdateConnectorResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs
index 7475b12..69f6ad1 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class DataSourcesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateDataSourceSecurityRequirement0 =
+ 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_UpdateDataSourceSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateDataSourceSecurityRequirement0,
+ };
partial void PrepareUpdateDataSourceArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid dataSourceId,
@@ -51,9 +70,15 @@ partial void ProcessUpdateDataSourceResponseContent(
dataSourceId: ref dataSourceId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateDataSourceSecurityRequirements,
+ operationName: "UpdateDataSourceAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/data_sources/{dataSourceId}",
- 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.Put,
@@ -63,7 +88,7 @@ partial void ProcessUpdateDataSourceResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs
index 613304d..36bb125 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class DataSourcesClient : global::Mixedbread.IDataSourcesC
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs
index 3e389a4..7255326 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ExtractionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateExtractionJobSecurityRequirement0 =
+ 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_CreateExtractionJobSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateExtractionJobSecurityRequirement0,
+ };
partial void PrepareCreateExtractionJobArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.ExtractJobCreateParams request);
@@ -45,9 +64,15 @@ partial void ProcessCreateExtractionJobResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateExtractionJobSecurityRequirements,
+ operationName: "CreateExtractionJobAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/extractions/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,
@@ -57,7 +82,7 @@ partial void ProcessCreateExtractionJobResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs
index fb09c97..e877c12 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ExtractionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateSchemaSecurityRequirement0 =
+ 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_CreateSchemaSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateSchemaSecurityRequirement0,
+ };
partial void PrepareCreateSchemaArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.JsonSchemaCreateParams request);
@@ -45,9 +64,15 @@ partial void ProcessCreateSchemaResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSchemaSecurityRequirements,
+ operationName: "CreateSchemaAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/extractions/schema",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessCreateSchemaResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs
index c9e0ec4..884de3e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ExtractionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_EnhanceSchemaSecurityRequirement0 =
+ 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_EnhanceSchemaSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_EnhanceSchemaSecurityRequirement0,
+ };
partial void PrepareEnhanceSchemaArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.JsonSchemaEnhanceParams request);
@@ -45,9 +64,15 @@ partial void ProcessEnhanceSchemaResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EnhanceSchemaSecurityRequirements,
+ operationName: "EnhanceSchemaAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/extractions/schema/enhance",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessEnhanceSchemaResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs
index cc43409..ad1924f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ExtractionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ExtractContentSecurityRequirement0 =
+ 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_ExtractContentSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ExtractContentSecurityRequirement0,
+ };
partial void PrepareExtractContentArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.ExtractContentCreateParams request);
@@ -45,9 +64,15 @@ partial void ProcessExtractContentResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ExtractContentSecurityRequirements,
+ operationName: "ExtractContentAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/extractions/content",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessExtractContentResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs
index f2c9fde..ac596df 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ExtractionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveExtractionJobSecurityRequirement0 =
+ 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_RetrieveExtractionJobSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RetrieveExtractionJobSecurityRequirement0,
+ };
partial void PrepareRetrieveExtractionJobArguments(
global::System.Net.Http.HttpClient httpClient,
ref string jobId);
@@ -44,9 +63,15 @@ partial void ProcessRetrieveExtractionJobResponseContent(
httpClient: HttpClient,
jobId: ref jobId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveExtractionJobSecurityRequirements,
+ operationName: "RetrieveExtractionJobAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/extractions/jobs/{jobId}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessRetrieveExtractionJobResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs
index c9a683a..5210759 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ExtractionsClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ValidateSchemaSecurityRequirement0 =
+ 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_ValidateSchemaSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ValidateSchemaSecurityRequirement0,
+ };
partial void PrepareValidateSchemaArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.JsonSchemaValidateParams request);
@@ -45,9 +64,15 @@ partial void ProcessValidateSchemaResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ValidateSchemaSecurityRequirements,
+ operationName: "ValidateSchemaAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/extractions/schema/validate",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessValidateSchemaResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs
index b2288d1..52f755f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ExtractionsClient : global::Mixedbread.IExtractionsC
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs
index 9b95abb..765403a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_AbortMultipartUploadSecurityRequirement0 =
+ 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_AbortMultipartUploadSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_AbortMultipartUploadSecurityRequirement0,
+ };
partial void PrepareAbortMultipartUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid uploadId);
@@ -40,9 +59,15 @@ partial void ProcessAbortMultipartUploadResponseContent(
httpClient: HttpClient,
uploadId: ref uploadId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AbortMultipartUploadSecurityRequirements,
+ operationName: "AbortMultipartUploadAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/uploads/{uploadId}/abort",
- 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,
@@ -52,7 +77,7 @@ partial void ProcessAbortMultipartUploadResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs
index 17d1efa..8a79a26 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CompleteMultipartUploadSecurityRequirement0 =
+ 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_CompleteMultipartUploadSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CompleteMultipartUploadSecurityRequirement0,
+ };
partial void PrepareCompleteMultipartUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid uploadId,
@@ -49,9 +68,15 @@ partial void ProcessCompleteMultipartUploadResponseContent(
uploadId: ref uploadId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CompleteMultipartUploadSecurityRequirements,
+ operationName: "CompleteMultipartUploadAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/uploads/{uploadId}/complete",
- 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,
@@ -61,7 +86,7 @@ partial void ProcessCompleteMultipartUploadResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs
index 21c68a4..ae27c1c 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateFileSecurityRequirement0 =
+ 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_CreateFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateFileSecurityRequirement0,
+ };
partial void PrepareCreateFileArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.BodyCreateFile request);
@@ -45,9 +64,15 @@ partial void ProcessCreateFileResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateFileSecurityRequirements,
+ operationName: "CreateFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/files",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessCreateFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs
index bda3f39..501849e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateMultipartUploadSecurityRequirement0 =
+ 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_CreateMultipartUploadSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateMultipartUploadSecurityRequirement0,
+ };
partial void PrepareCreateMultipartUploadArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.CreateMultipartUploadRequest request);
@@ -41,9 +60,15 @@ partial void ProcessCreateMultipartUploadResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateMultipartUploadSecurityRequirements,
+ operationName: "CreateMultipartUploadAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/files/uploads",
- 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,
@@ -53,7 +78,7 @@ partial void ProcessCreateMultipartUploadResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs
index 00488a0..7760692 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteFileSecurityRequirement0 =
+ 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_DeleteFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteFileSecurityRequirement0,
+ };
partial void PrepareDeleteFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid fileId);
@@ -44,9 +63,15 @@ partial void ProcessDeleteFileResponseContent(
httpClient: HttpClient,
fileId: ref fileId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteFileSecurityRequirements,
+ operationName: "DeleteFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/{fileId}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessDeleteFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs
index aeecdfe..eed3594 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DownloadFileSecurityRequirement0 =
+ 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_DownloadFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DownloadFileSecurityRequirement0,
+ };
partial void PrepareDownloadFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid fileId);
@@ -44,9 +63,15 @@ partial void ProcessDownloadFileResponseContent(
httpClient: HttpClient,
fileId: ref fileId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DownloadFileSecurityRequirements,
+ operationName: "DownloadFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/{fileId}/content",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessDownloadFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs
index fe06b00..091b790 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetMultipartUploadSecurityRequirement0 =
+ 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_GetMultipartUploadSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetMultipartUploadSecurityRequirement0,
+ };
partial void PrepareGetMultipartUploadArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid uploadId);
@@ -40,9 +59,15 @@ partial void ProcessGetMultipartUploadResponseContent(
httpClient: HttpClient,
uploadId: ref uploadId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetMultipartUploadSecurityRequirements,
+ operationName: "GetMultipartUploadAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/uploads/{uploadId}",
- 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,
@@ -52,7 +77,7 @@ partial void ProcessGetMultipartUploadResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs
index 3d036a1..d473662 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListFilesSecurityRequirement0 =
+ 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_ListFilesSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListFilesSecurityRequirement0,
+ };
partial void PrepareListFilesArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -74,6 +93,12 @@ partial void ProcessListFilesResponseContent(
includeTotal: ref includeTotal,
q: ref q);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListFilesSecurityRequirements,
+ operationName: "ListFilesAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/files",
baseUri: HttpClient.BaseAddress);
@@ -83,7 +108,7 @@ partial void ProcessListFilesResponseContent(
.AddOptionalParameter("before", before)
.AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant())
.AddOptionalParameter("q", q)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -93,7 +118,7 @@ partial void ProcessListFilesResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs
index 05e39b0..3c249ad 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListMultipartUploadsSecurityRequirement0 =
+ 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_ListMultipartUploadsSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListMultipartUploadsSecurityRequirement0,
+ };
partial void PrepareListMultipartUploadsArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareListMultipartUploadsRequest(
@@ -33,9 +52,15 @@ partial void ProcessListMultipartUploadsResponseContent(
PrepareListMultipartUploadsArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListMultipartUploadsSecurityRequirements,
+ operationName: "ListMultipartUploadsAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/files/uploads",
- 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,
@@ -45,7 +70,7 @@ partial void ProcessListMultipartUploadsResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs
index f832475..835a219 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveFileSecurityRequirement0 =
+ 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_RetrieveFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RetrieveFileSecurityRequirement0,
+ };
partial void PrepareRetrieveFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid fileId);
@@ -44,9 +63,15 @@ partial void ProcessRetrieveFileResponseContent(
httpClient: HttpClient,
fileId: ref fileId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveFileSecurityRequirements,
+ operationName: "RetrieveFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/{fileId}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessRetrieveFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs
index f5c6906..8a447d1 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class FilesClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateFileSecurityRequirement0 =
+ 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_UpdateFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateFileSecurityRequirement0,
+ };
partial void PrepareUpdateFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid fileId,
@@ -53,9 +72,15 @@ partial void ProcessUpdateFileResponseContent(
fileId: ref fileId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateFileSecurityRequirements,
+ operationName: "UpdateFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/files/{fileId}",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessUpdateFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs
index 861b755..fa2f208 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class FilesClient : global::Mixedbread.IFilesClient, globa
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.Authorizations.Bearer.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.Authorizations.Bearer.g.cs
index e53c6ca..aec76a1 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.Authorizations.Bearer.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.Authorizations.Bearer.g.cs
@@ -9,6 +9,7 @@ public partial interface IMixedbreadClient
/// Authorize using bearer authentication.
///
///
+
public void AuthorizeUsingBearer(
string apiKey);
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Authorizations.Bearer.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Authorizations.Bearer.g.cs
index 3c2b308..4633d35 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Authorizations.Bearer.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Authorizations.Bearer.g.cs
@@ -5,13 +5,23 @@ namespace Mixedbread
{
public sealed partial class MixedbreadClient
{
+
///
public void AuthorizeUsingBearer(
string apiKey)
{
apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
- Authorizations.Clear();
+ for (var i = Authorizations.Count - 1; i >= 0; i--)
+ {
+ var __authorization = Authorizations[i];
+ if (__authorization.Type == "Http" &&
+ __authorization.Name == "Bearer")
+ {
+ Authorizations.RemoveAt(i);
+ }
+ }
+
Authorizations.Add(new global::Mixedbread.EndPointAuthorization
{
Type = "Http",
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Constructors.Bearer.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Constructors.Bearer.g.cs
index 8dbf635..9a36058 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Constructors.Bearer.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Constructors.Bearer.g.cs
@@ -6,6 +6,7 @@ namespace Mixedbread
public sealed partial class MixedbreadClient
{
///
+
public MixedbreadClient(
string apiKey,
global::System.Net.Http.HttpClient? httpClient = null,
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs
index 06907ca..b65f107 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.CreateEmbeddings.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class MixedbreadClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateEmbeddingsSecurityRequirement0 =
+ 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_CreateEmbeddingsSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateEmbeddingsSecurityRequirement0,
+ };
partial void PrepareCreateEmbeddingsArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.EmbeddingCreateParams request);
@@ -45,9 +64,15 @@ partial void ProcessCreateEmbeddingsResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateEmbeddingsSecurityRequirements,
+ operationName: "CreateEmbeddingsAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/embeddings",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessCreateEmbeddingsResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs
index 85a719e..2e9a475 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Info.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class MixedbreadClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_InfoSecurityRequirement0 =
+ 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_InfoSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_InfoSecurityRequirement0,
+ };
partial void PrepareInfoArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareInfoRequest(
@@ -35,9 +54,15 @@ partial void ProcessInfoResponseContent(
PrepareInfoArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_InfoSecurityRequirements,
+ operationName: "InfoAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/",
- 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,
@@ -47,7 +72,7 @@ partial void ProcessInfoResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs
index c6affd4..71fbc25 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.Rerank.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class MixedbreadClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RerankSecurityRequirement0 =
+ 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_RerankSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RerankSecurityRequirement0,
+ };
partial void PrepareRerankArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.RerankParams request);
@@ -45,9 +64,15 @@ partial void ProcessRerankResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RerankSecurityRequirements,
+ operationName: "RerankAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/reranking",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessRerankResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs
index a6d59c8..6cddf49 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.MixedbreadClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class MixedbreadClient : global::Mixedbread.IMixedbreadCli
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs
index 8e900cf..51bc35b 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CancelParsingJob.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ParsingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CancelParsingJobSecurityRequirement0 =
+ 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_CancelParsingJobSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CancelParsingJobSecurityRequirement0,
+ };
partial void PrepareCancelParsingJobArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid jobId);
@@ -44,9 +63,15 @@ partial void ProcessCancelParsingJobResponseContent(
httpClient: HttpClient,
jobId: ref jobId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CancelParsingJobSecurityRequirements,
+ operationName: "CancelParsingJobAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/parsing/jobs/{jobId}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
@@ -56,7 +81,7 @@ partial void ProcessCancelParsingJobResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs
index 7b0586a..4d53b21 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.CreateParsingJob.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ParsingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateParsingJobSecurityRequirement0 =
+ 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_CreateParsingJobSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateParsingJobSecurityRequirement0,
+ };
partial void PrepareCreateParsingJobArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.ParsingJobCreateParams request);
@@ -45,9 +64,15 @@ partial void ProcessCreateParsingJobResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateParsingJobSecurityRequirements,
+ operationName: "CreateParsingJobAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/parsing/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,
@@ -57,7 +82,7 @@ partial void ProcessCreateParsingJobResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs
index cf03446..b0c134e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.DeleteParsingJob.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ParsingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteParsingJobSecurityRequirement0 =
+ 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_DeleteParsingJobSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteParsingJobSecurityRequirement0,
+ };
partial void PrepareDeleteParsingJobArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid jobId);
@@ -44,9 +63,15 @@ partial void ProcessDeleteParsingJobResponseContent(
httpClient: HttpClient,
jobId: ref jobId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteParsingJobSecurityRequirements,
+ operationName: "DeleteParsingJobAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/parsing/jobs/{jobId}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessDeleteParsingJobResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs
index cddbb1d..a9c558a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.ListParsingJobs.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ParsingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListParsingJobsSecurityRequirement0 =
+ 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_ListParsingJobsSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListParsingJobsSecurityRequirement0,
+ };
partial void PrepareListParsingJobsArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -82,6 +101,12 @@ partial void ProcessListParsingJobsResponseContent(
statuses: statuses,
q: ref q);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListParsingJobsSecurityRequirements,
+ operationName: "ListParsingJobsAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/parsing/jobs",
baseUri: HttpClient.BaseAddress);
@@ -92,7 +117,7 @@ partial void ProcessListParsingJobsResponseContent(
.AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant())
.AddOptionalParameter("statuses", statuses?.ToString())
.AddOptionalParameter("q", q)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -102,7 +127,7 @@ partial void ProcessListParsingJobsResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs
index 04f6134..bfa4ada 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.RetrieveParsingJob.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class ParsingClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveParsingJobSecurityRequirement0 =
+ 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_RetrieveParsingJobSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RetrieveParsingJobSecurityRequirement0,
+ };
partial void PrepareRetrieveParsingJobArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::System.Guid jobId);
@@ -44,9 +63,15 @@ partial void ProcessRetrieveParsingJobResponseContent(
httpClient: HttpClient,
jobId: ref jobId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveParsingJobSecurityRequirements,
+ operationName: "RetrieveParsingJobAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/parsing/jobs/{jobId}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessRetrieveParsingJobResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.g.cs
index ce3c442..9afc859 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ParsingClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ParsingClient : global::Mixedbread.IParsingClient, g
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.PathBuilder.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.PathBuilder.g.cs
index edcb796..2ca2caf 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.PathBuilder.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.PathBuilder.g.cs
@@ -224,6 +224,40 @@ public PathBuilder AddOptionalParameter(
return this;
}
+ ///
+ /// Adds a pre-serialized query string fragment to the URL.
+ ///
+ /// The serialized query string value.
+ /// The current instance.
+ public PathBuilder AddRawQueryString(
+ string value)
+ {
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ return this;
+ }
+
+ value = value.TrimStart('?', '&');
+ if (value.Length == 0)
+ {
+ return this;
+ }
+
+ if (_firstParameter)
+ {
+ _stringBuilder.Append('?');
+ _firstParameter = false;
+ }
+ else
+ {
+ _stringBuilder.Append('&');
+ }
+
+ _stringBuilder.Append(value);
+
+ return this;
+ }
+
///
/// Returns the constructed URL as a string.
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs
index e9746a9..ecf08d5 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.GetMxbaiJsonSchema.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class SchemasClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetMxbaiJsonSchemaSecurityRequirement0 =
+ 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_GetMxbaiJsonSchemaSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetMxbaiJsonSchemaSecurityRequirement0,
+ };
partial void PrepareGetMxbaiJsonSchemaArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareGetMxbaiJsonSchemaRequest(
@@ -35,9 +54,15 @@ partial void ProcessGetMxbaiJsonSchemaResponseContent(
PrepareGetMxbaiJsonSchemaArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetMxbaiJsonSchemaSecurityRequirements,
+ operationName: "GetMxbaiJsonSchemaAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/schemas/mxjson",
- 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,
@@ -47,7 +72,7 @@ partial void ProcessGetMxbaiJsonSchemaResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.g.cs
index 6ab5941..9234b56 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.SchemasClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class SchemasClient : global::Mixedbread.ISchemasClient, g
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Security.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Security.g.cs
new file mode 100644
index 0000000..01803e6
--- /dev/null
+++ b/src/libs/Mixedbread/Generated/Mixedbread.Security.g.cs
@@ -0,0 +1,145 @@
+#nullable enable
+
+namespace Mixedbread
+{
+ internal sealed class EndPointAuthorizationRequirement
+ {
+ internal string Type { get; set; } = string.Empty;
+
+ internal string Location { get; set; } = string.Empty;
+
+ internal string Name { get; set; } = string.Empty;
+
+ internal string FriendlyName { get; set; } = string.Empty;
+ }
+
+ internal sealed class EndPointSecurityRequirement
+ {
+ internal global::System.Collections.Generic.IReadOnlyList Authorizations { get; set; } =
+ global::System.Array.Empty();
+ }
+
+ internal static class EndPointSecurityResolver
+ {
+ internal static global::System.Collections.Generic.List ResolveAuthorizations(
+ global::System.Collections.Generic.IReadOnlyList availableAuthorizations,
+ global::System.Collections.Generic.IReadOnlyList securityRequirements,
+ string operationName)
+ {
+ availableAuthorizations = availableAuthorizations ?? throw new global::System.ArgumentNullException(nameof(availableAuthorizations));
+ securityRequirements = securityRequirements ?? throw new global::System.ArgumentNullException(nameof(securityRequirements));
+ operationName = operationName ?? throw new global::System.ArgumentNullException(nameof(operationName));
+
+ if (securityRequirements.Count == 0)
+ {
+ return new global::System.Collections.Generic.List();
+ }
+
+ var allowsAnonymous = false;
+
+ foreach (var requirement in securityRequirements)
+ {
+ if (requirement.Authorizations.Count == 0)
+ {
+ allowsAnonymous = true;
+ continue;
+ }
+
+ var selected = new global::System.Collections.Generic.List(requirement.Authorizations.Count);
+ var satisfied = true;
+
+ foreach (var requiredAuthorization in requirement.Authorizations)
+ {
+ var found = false;
+
+ for (var i = 0; i < availableAuthorizations.Count; i++)
+ {
+ if (!Matches(availableAuthorizations[i], requiredAuthorization))
+ {
+ continue;
+ }
+
+ selected.Add(availableAuthorizations[i]);
+ found = true;
+ break;
+ }
+
+ if (!found)
+ {
+ satisfied = false;
+ break;
+ }
+ }
+
+ if (satisfied)
+ {
+ return selected;
+ }
+ }
+
+ if (allowsAnonymous)
+ {
+ return new global::System.Collections.Generic.List();
+ }
+
+ throw new global::System.InvalidOperationException(
+ $"Operation '{operationName}' requires one of the configured security alternatives: {DescribeRequirements(securityRequirements)}.");
+ }
+
+ private static bool Matches(
+ EndPointAuthorization availableAuthorization,
+ EndPointAuthorizationRequirement requiredAuthorization)
+ {
+ if (!string.Equals(availableAuthorization.Type, requiredAuthorization.Type, global::System.StringComparison.Ordinal))
+ {
+ return false;
+ }
+
+ return requiredAuthorization.Type switch
+ {
+ "OAuth2" => true,
+ "Http" => string.Equals(
+ availableAuthorization.Name,
+ requiredAuthorization.Name,
+ global::System.StringComparison.Ordinal),
+ "ApiKey" => string.Equals(
+ availableAuthorization.Location,
+ requiredAuthorization.Location,
+ global::System.StringComparison.Ordinal) &&
+ string.Equals(
+ availableAuthorization.Name,
+ requiredAuthorization.Name,
+ global::System.StringComparison.Ordinal),
+ _ => string.Equals(
+ availableAuthorization.Location,
+ requiredAuthorization.Location,
+ global::System.StringComparison.Ordinal) &&
+ string.Equals(
+ availableAuthorization.Name,
+ requiredAuthorization.Name,
+ global::System.StringComparison.Ordinal),
+ };
+ }
+
+ private static string DescribeRequirements(
+ global::System.Collections.Generic.IReadOnlyList securityRequirements)
+ {
+ var parts = new global::System.Collections.Generic.List(securityRequirements.Count);
+
+ foreach (var requirement in securityRequirements)
+ {
+ if (requirement.Authorizations.Count == 0)
+ {
+ parts.Add("anonymous");
+ continue;
+ }
+
+ parts.Add(string.Join(
+ " + ",
+ global::System.Linq.Enumerable.Select(requirement.Authorizations, static x => x.FriendlyName)));
+ }
+
+ return string.Join(" or ", parts);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs
index 8a74708..5127f2c 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateQuestionAnswering.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateQuestionAnsweringSecurityRequirement0 =
+ 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_CreateQuestionAnsweringSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateQuestionAnsweringSecurityRequirement0,
+ };
partial void PrepareCreateQuestionAnsweringArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.StoreQAParams request);
@@ -40,9 +59,15 @@ partial void ProcessCreateQuestionAnsweringResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateQuestionAnsweringSecurityRequirements,
+ operationName: "CreateQuestionAnsweringAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/stores/question-answering",
- 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,
@@ -52,7 +77,7 @@ partial void ProcessCreateQuestionAnsweringResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs
index b194926..fced647 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateSearchRule.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateSearchRuleSecurityRequirement0 =
+ 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_CreateSearchRuleSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateSearchRuleSecurityRequirement0,
+ };
partial void PrepareCreateSearchRuleArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -53,9 +72,15 @@ partial void ProcessCreateSearchRuleResponseContent(
storeIdentifier: ref storeIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateSearchRuleSecurityRequirements,
+ operationName: "CreateSearchRuleAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/rules",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessCreateSearchRuleResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs
index bbf40c9..f4b5fdf 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStore.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateStoreSecurityRequirement0 =
+ 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_CreateStoreSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateStoreSecurityRequirement0,
+ };
partial void PrepareCreateStoreArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.StoreCreateParams request);
@@ -45,9 +64,15 @@ partial void ProcessCreateStoreResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateStoreSecurityRequirements,
+ operationName: "CreateStoreAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/stores",
- 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,
@@ -57,7 +82,7 @@ partial void ProcessCreateStoreResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs
index a226ff4..1b36746 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.CreateStoreFile.g.cs
@@ -7,6 +7,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_CreateStoreFileSecurityRequirement0 =
+ 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_CreateStoreFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_CreateStoreFileSecurityRequirement0,
+ };
partial void PrepareCreateStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -55,9 +74,15 @@ partial void ProcessCreateStoreFileResponseContent(
storeIdentifier: ref storeIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateStoreFileSecurityRequirements,
+ operationName: "CreateStoreFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/files",
- 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,
@@ -67,7 +92,7 @@ partial void ProcessCreateStoreFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs
index fead96b..66394e9 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSearchRule.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteSearchRuleSecurityRequirement0 =
+ 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_DeleteSearchRuleSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteSearchRuleSecurityRequirement0,
+ };
partial void PrepareDeleteSearchRuleArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -52,9 +71,15 @@ partial void ProcessDeleteSearchRuleResponseContent(
storeIdentifier: ref storeIdentifier,
ruleId: ref ruleId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteSearchRuleSecurityRequirements,
+ operationName: "DeleteSearchRuleAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/rules/{ruleId}",
- 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,
@@ -64,7 +89,7 @@ partial void ProcessDeleteSearchRuleResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs
index ffd9ac7..0ba0621 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteSpecificSearchRule.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteSpecificSearchRuleSecurityRequirement0 =
+ 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_DeleteSpecificSearchRuleSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteSpecificSearchRuleSecurityRequirement0,
+ };
partial void PrepareDeleteSpecificSearchRuleArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -61,9 +80,15 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent(
ruleId: ref ruleId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteSpecificSearchRuleSecurityRequirements,
+ operationName: "DeleteSpecificSearchRuleAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/rules/{ruleId}/specific",
- 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,
@@ -73,7 +98,7 @@ partial void ProcessDeleteSpecificSearchRuleResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs
index e53488f..13293d8 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStore.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteStoreSecurityRequirement0 =
+ 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_DeleteStoreSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteStoreSecurityRequirement0,
+ };
partial void PrepareDeleteStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier);
@@ -44,9 +63,15 @@ partial void ProcessDeleteStoreResponseContent(
httpClient: HttpClient,
storeIdentifier: ref storeIdentifier);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteStoreSecurityRequirements,
+ operationName: "DeleteStoreAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessDeleteStoreResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs
index 0a3c3f4..65b389d 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.DeleteStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_DeleteStoreFileSecurityRequirement0 =
+ 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_DeleteStoreFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_DeleteStoreFileSecurityRequirement0,
+ };
partial void PrepareDeleteStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -52,9 +71,15 @@ partial void ProcessDeleteStoreFileResponseContent(
storeIdentifier: ref storeIdentifier,
fileIdentifier: ref fileIdentifier);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DeleteStoreFileSecurityRequirements,
+ operationName: "DeleteStoreFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/files/{fileIdentifier}",
- 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,
@@ -64,7 +89,7 @@ partial void ProcessDeleteStoreFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs
index c74f823..b05d070 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetMetadataFacets.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetMetadataFacetsSecurityRequirement0 =
+ 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_GetMetadataFacetsSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetMetadataFacetsSecurityRequirement0,
+ };
partial void PrepareGetMetadataFacetsArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.MetadataFacetsParams request);
@@ -40,9 +59,15 @@ partial void ProcessGetMetadataFacetsResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetMetadataFacetsSecurityRequirements,
+ operationName: "GetMetadataFacetsAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/stores/metadata-facets",
- 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,
@@ -52,7 +77,7 @@ partial void ProcessGetMetadataFacetsResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs
index bace11e..d7ba8ed 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.GetStoreEventHistogram.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_GetStoreEventHistogramSecurityRequirement0 =
+ 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_GetStoreEventHistogramSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_GetStoreEventHistogramSecurityRequirement0,
+ };
partial void PrepareGetStoreEventHistogramArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -53,9 +72,15 @@ partial void ProcessGetStoreEventHistogramResponseContent(
storeIdentifier: ref storeIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetStoreEventHistogramSecurityRequirements,
+ operationName: "GetStoreEventHistogramAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/events/histogram",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessGetStoreEventHistogramResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs
index c51e1c3..62f592b 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreEvents.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListStoreEventsSecurityRequirement0 =
+ 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_ListStoreEventsSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListStoreEventsSecurityRequirement0,
+ };
partial void PrepareListStoreEventsArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -96,6 +115,12 @@ partial void ProcessListStoreEventsResponseContent(
filterAfter: filterAfter,
eventType: ref eventType);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListStoreEventsSecurityRequirements,
+ operationName: "ListStoreEventsAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/events",
baseUri: HttpClient.BaseAddress);
@@ -107,7 +132,7 @@ partial void ProcessListStoreEventsResponseContent(
.AddOptionalParameter("filter_before", filterBefore?.ToString())
.AddOptionalParameter("filter_after", filterAfter?.ToString())
.AddRequiredParameter("event_type", eventType.ToValueString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -117,7 +142,7 @@ partial void ProcessListStoreEventsResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs
index 6469f2e..d155583 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStoreFilesWithMetadataFilter.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListStoreFilesWithMetadataFilterSecurityRequirement0 =
+ 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_ListStoreFilesWithMetadataFilterSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListStoreFilesWithMetadataFilterSecurityRequirement0,
+ };
partial void PrepareListStoreFilesWithMetadataFilterArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -53,9 +72,15 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent(
storeIdentifier: ref storeIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListStoreFilesWithMetadataFilterSecurityRequirements,
+ operationName: "ListStoreFilesWithMetadataFilterAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/files/list",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessListStoreFilesWithMetadataFilterResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs
index 3a0cc8a..f30ac58 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.ListStores.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_ListStoresSecurityRequirement0 =
+ 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_ListStoresSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_ListStoresSecurityRequirement0,
+ };
partial void PrepareListStoresArguments(
global::System.Net.Http.HttpClient httpClient,
ref int? limit,
@@ -75,6 +94,12 @@ partial void ProcessListStoresResponseContent(
includeTotal: ref includeTotal,
q: ref q);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ListStoresSecurityRequirements,
+ operationName: "ListStoresAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/stores",
baseUri: HttpClient.BaseAddress);
@@ -84,7 +109,7 @@ partial void ProcessListStoresResponseContent(
.AddOptionalParameter("before", before)
.AddOptionalParameter("include_total", includeTotal?.ToString().ToLowerInvariant())
.AddOptionalParameter("q", q)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -94,7 +119,7 @@ partial void ProcessListStoresResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs
index 0c21886..003c4d6 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveSearchRule.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveSearchRuleSecurityRequirement0 =
+ 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_RetrieveSearchRuleSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RetrieveSearchRuleSecurityRequirement0,
+ };
partial void PrepareRetrieveSearchRuleArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -52,9 +71,15 @@ partial void ProcessRetrieveSearchRuleResponseContent(
storeIdentifier: ref storeIdentifier,
ruleId: ref ruleId);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveSearchRuleSecurityRequirements,
+ operationName: "RetrieveSearchRuleAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/rules/{ruleId}",
- 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,
@@ -64,7 +89,7 @@ partial void ProcessRetrieveSearchRuleResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs
index 94baa7a..f4f732b 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStore.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveStoreSecurityRequirement0 =
+ 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_RetrieveStoreSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RetrieveStoreSecurityRequirement0,
+ };
partial void PrepareRetrieveStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier);
@@ -44,9 +63,15 @@ partial void ProcessRetrieveStoreResponseContent(
httpClient: HttpClient,
storeIdentifier: ref storeIdentifier);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveStoreSecurityRequirements,
+ operationName: "RetrieveStoreAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}",
- 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,
@@ -56,7 +81,7 @@ partial void ProcessRetrieveStoreResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs
index f9e8961..d6f773b 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.RetrieveStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_RetrieveStoreFileSecurityRequirement0 =
+ 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_RetrieveStoreFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_RetrieveStoreFileSecurityRequirement0,
+ };
partial void PrepareRetrieveStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -61,12 +80,18 @@ partial void ProcessRetrieveStoreFileResponseContent(
fileIdentifier: ref fileIdentifier,
returnChunks: ref returnChunks);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RetrieveStoreFileSecurityRequirements,
+ operationName: "RetrieveStoreFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/files/{fileIdentifier}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("return_chunks", returnChunks?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -76,7 +101,7 @@ partial void ProcessRetrieveStoreFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs
index 4274f1a..26289cb 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreChunks.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_SearchStoreChunksSecurityRequirement0 =
+ 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_SearchStoreChunksSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_SearchStoreChunksSecurityRequirement0,
+ };
partial void PrepareSearchStoreChunksArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.StoreChunkSearchParams request);
@@ -63,9 +82,15 @@ partial void ProcessSearchStoreChunksResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_SearchStoreChunksSecurityRequirements,
+ operationName: "SearchStoreChunksAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/stores/search",
- 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,
@@ -75,7 +100,7 @@ partial void ProcessSearchStoreChunksResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreFiles.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreFiles.g.cs
index 36322ef..d02ec6e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreFiles.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.SearchStoreFiles.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_SearchStoreFilesSecurityRequirement0 =
+ 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_SearchStoreFilesSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_SearchStoreFilesSecurityRequirement0,
+ };
partial void PrepareSearchStoreFilesArguments(
global::System.Net.Http.HttpClient httpClient,
global::Mixedbread.StoreFileSearchParams request);
@@ -46,9 +65,15 @@ partial void ProcessSearchStoreFilesResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_SearchStoreFilesSecurityRequirements,
+ operationName: "SearchStoreFilesAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: "/v1/stores/files/search",
- 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,
@@ -58,7 +83,7 @@ partial void ProcessSearchStoreFilesResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs
index 80df0d6..375318a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateSearchRule.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateSearchRuleSecurityRequirement0 =
+ 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_UpdateSearchRuleSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateSearchRuleSecurityRequirement0,
+ };
partial void PrepareUpdateSearchRuleArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -61,9 +80,15 @@ partial void ProcessUpdateSearchRuleResponseContent(
ruleId: ref ruleId,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateSearchRuleSecurityRequirements,
+ operationName: "UpdateSearchRuleAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/rules/{ruleId}",
- 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.Put,
@@ -73,7 +98,7 @@ partial void ProcessUpdateSearchRuleResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs
index 231a563..3b9b6ab 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStore.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateStoreSecurityRequirement0 =
+ 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_UpdateStoreSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateStoreSecurityRequirement0,
+ };
partial void PrepareUpdateStoreArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -53,9 +72,15 @@ partial void ProcessUpdateStoreResponseContent(
storeIdentifier: ref storeIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateStoreSecurityRequirements,
+ operationName: "UpdateStoreAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}",
- 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.Put,
@@ -65,7 +90,7 @@ partial void ProcessUpdateStoreResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs
index f2e6411..06e0c7a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UpdateStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UpdateStoreFileSecurityRequirement0 =
+ 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_UpdateStoreFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UpdateStoreFileSecurityRequirement0,
+ };
partial void PrepareUpdateStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -61,9 +80,15 @@ partial void ProcessUpdateStoreFileResponseContent(
fileIdentifier: ref fileIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UpdateStoreFileSecurityRequirements,
+ operationName: "UpdateStoreFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/files/{fileIdentifier}",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
@@ -73,7 +98,7 @@ partial void ProcessUpdateStoreFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs
index 9ad0c4c..a91b670 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.UploadStoreFile.g.cs
@@ -5,6 +5,25 @@ namespace Mixedbread
{
public partial class StoresClient
{
+
+
+ private static readonly global::Mixedbread.EndPointSecurityRequirement s_UploadStoreFileSecurityRequirement0 =
+ 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_UploadStoreFileSecurityRequirements =
+ new global::Mixedbread.EndPointSecurityRequirement[]
+ { s_UploadStoreFileSecurityRequirement0,
+ };
partial void PrepareUploadStoreFileArguments(
global::System.Net.Http.HttpClient httpClient,
ref global::Mixedbread.AnyOf storeIdentifier,
@@ -55,9 +74,15 @@ partial void ProcessUploadStoreFileResponseContent(
storeIdentifier: ref storeIdentifier,
request: request);
+
+ var __authorizations = global::Mixedbread.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_UploadStoreFileSecurityRequirements,
+ operationName: "UploadStoreFileAsync");
+
var __pathBuilder = new global::Mixedbread.PathBuilder(
path: $"/v1/stores/{storeIdentifier}/files/upload",
- 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,
@@ -67,7 +92,7 @@ partial void ProcessUploadStoreFileResponseContent(
__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")
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.g.cs
index 35684fd..7fdfde9 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.StoresClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class StoresClient : global::Mixedbread.IStoresClient, glo
///
/// mixedbread ai production server
///
- public const string DefaultBaseUrl = "https://api.mixedbread.com";
+ public const string DefaultBaseUrl = "https://api.mixedbread.com/";
private bool _disposeHttpClient = true;