diff --git a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs
index bb9e822..71c1598 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string queueId,
@@ -46,9 +65,15 @@ partial void ProcessAnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostRespo
queueId: ref queueId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostSecurityRequirements,
+ operationName: "AnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/annotation_queues/{queueId}/items",
- 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 ProcessAnnotationQueueAddCallsAnnotationQueuesQueueIdItemsPostRespo
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs
index 3aeb949..9de6114 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueCreateAnnotationQueuesPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueCreateAnnotationQueuesPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueCreateAnnotationQueuesPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueCreateAnnotationQueuesPostSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueCreateAnnotationQueuesPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.AnnotationQueueCreateReq request);
@@ -41,9 +60,15 @@ partial void ProcessAnnotationQueueCreateAnnotationQueuesPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueCreateAnnotationQueuesPostSecurityRequirements,
+ operationName: "AnnotationQueueCreateAnnotationQueuesPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/annotation_queues",
- 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 ProcessAnnotationQueueCreateAnnotationQueuesPostResponseContent(
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs
index 97b2646..9d58b21 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueDeleteAnnotationQueuesQueueIdDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueDeleteAnnotationQueuesQueueIdDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueDeleteAnnotationQueuesQueueIdDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueDeleteAnnotationQueuesQueueIdDeleteSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueDeleteAnnotationQueuesQueueIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string queueId,
@@ -43,12 +62,18 @@ partial void ProcessAnnotationQueueDeleteAnnotationQueuesQueueIdDeleteResponseCo
queueId: ref queueId,
projectId: ref projectId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueDeleteAnnotationQueuesQueueIdDeleteSecurityRequirements,
+ operationName: "AnnotationQueueDeleteAnnotationQueuesQueueIdDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/annotation_queues/{queueId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("project_id", projectId)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -58,7 +83,7 @@ partial void ProcessAnnotationQueueDeleteAnnotationQueuesQueueIdDeleteResponseCo
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs
index 96b473c..697d0e7 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPostSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string queueId,
@@ -51,9 +70,15 @@ partial void ProcessAnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItem
itemId: ref itemId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPostSecurityRequirements,
+ operationName: "AnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItemsItemIdProgressPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/annotation_queues/{queueId}/items/{itemId}/progress",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessAnnotationQueueItemProgressUpdateAnnotationQueuesQueueIdItem
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs
index 7d449b8..e95d1dd 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPostSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string queueId,
@@ -46,9 +65,15 @@ partial void ProcessAnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPo
queueId: ref queueId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPostSecurityRequirements,
+ operationName: "AnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/annotation_queues/{queueId}/items/query",
- 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 ProcessAnnotationQueueItemsQueryAnnotationQueuesQueueIdItemsQueryPo
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs
index 42530ed..038be6f 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueReadAnnotationQueuesQueueIdGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueReadAnnotationQueuesQueueIdGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueReadAnnotationQueuesQueueIdGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueReadAnnotationQueuesQueueIdGetSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueReadAnnotationQueuesQueueIdGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string queueId,
@@ -43,12 +62,18 @@ partial void ProcessAnnotationQueueReadAnnotationQueuesQueueIdGetResponseContent
queueId: ref queueId,
projectId: ref projectId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueReadAnnotationQueuesQueueIdGetSecurityRequirements,
+ operationName: "AnnotationQueueReadAnnotationQueuesQueueIdGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/annotation_queues/{queueId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("project_id", projectId)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -58,7 +83,7 @@ partial void ProcessAnnotationQueueReadAnnotationQueuesQueueIdGetResponseContent
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs
index 03be5f7..235a7c6 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueueUpdateAnnotationQueuesQueueIdPut.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueueUpdateAnnotationQueuesQueueIdPutSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueueUpdateAnnotationQueuesQueueIdPutSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueueUpdateAnnotationQueuesQueueIdPutSecurityRequirement0,
+ };
partial void PrepareAnnotationQueueUpdateAnnotationQueuesQueueIdPutArguments(
global::System.Net.Http.HttpClient httpClient,
ref string queueId,
@@ -46,9 +65,15 @@ partial void ProcessAnnotationQueueUpdateAnnotationQueuesQueueIdPutResponseConte
queueId: ref queueId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueueUpdateAnnotationQueuesQueueIdPutSecurityRequirements,
+ operationName: "AnnotationQueueUpdateAnnotationQueuesQueueIdPutAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/annotation_queues/{queueId}",
- 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,
@@ -58,7 +83,7 @@ partial void ProcessAnnotationQueueUpdateAnnotationQueuesQueueIdPutResponseConte
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs
index 76603ae..207ca1c 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesQueryStreamAnnotationQueuesQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueuesQueryStreamAnnotationQueuesQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueuesQueryStreamAnnotationQueuesQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueuesQueryStreamAnnotationQueuesQueryPostSecurityRequirement0,
+ };
partial void PrepareAnnotationQueuesQueryStreamAnnotationQueuesQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.AnnotationQueuesQueryReq request);
@@ -41,9 +60,15 @@ partial void ProcessAnnotationQueuesQueryStreamAnnotationQueuesQueryPostResponse
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueuesQueryStreamAnnotationQueuesQueryPostSecurityRequirements,
+ operationName: "AnnotationQueuesQueryStreamAnnotationQueuesQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/annotation_queues/query",
- 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 ProcessAnnotationQueuesQueryStreamAnnotationQueuesQueryPostResponse
__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/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs
index 12e3aa0..4b42d53 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.AnnotationQueuesStatsAnnotationQueuesStatsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class AnnotationQueuesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AnnotationQueuesStatsAnnotationQueuesStatsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AnnotationQueuesStatsAnnotationQueuesStatsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AnnotationQueuesStatsAnnotationQueuesStatsPostSecurityRequirement0,
+ };
partial void PrepareAnnotationQueuesStatsAnnotationQueuesStatsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.AnnotationQueuesStatsReq request);
@@ -41,9 +60,15 @@ partial void ProcessAnnotationQueuesStatsAnnotationQueuesStatsPostResponseConten
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AnnotationQueuesStatsAnnotationQueuesStatsPostSecurityRequirements,
+ operationName: "AnnotationQueuesStatsAnnotationQueuesStatsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/annotation_queues/stats",
- 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 ProcessAnnotationQueuesStatsAnnotationQueuesStatsPostResponseConten
__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/Weave/Generated/Weave.AnnotationQueuesClient.g.cs b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.g.cs
index 6f20956..8839818 100644
--- a/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.AnnotationQueuesClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class AnnotationQueuesClient : global::Weave.IAnnotationQu
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs
index 2c59a37..59b1c10 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallEndCallEndPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallEndCallEndPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallEndCallEndPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallEndCallEndPostSecurityRequirement0,
+ };
partial void PrepareCallEndCallEndPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallEndReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallEndCallEndPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallEndCallEndPostSecurityRequirements,
+ operationName: "CallEndCallEndPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/call/end",
- 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 ProcessCallEndCallEndPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs
index 5911967..546748e 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallReadCallReadPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallReadCallReadPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallReadCallReadPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallReadCallReadPostSecurityRequirement0,
+ };
partial void PrepareCallReadCallReadPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallReadReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallReadCallReadPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallReadCallReadPostSecurityRequirements,
+ operationName: "CallReadCallReadPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/call/read",
- 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 ProcessCallReadCallReadPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs
index bb433e9..bb7ae49 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallStartBatchCallUpsertBatchPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallStartBatchCallUpsertBatchPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallStartBatchCallUpsertBatchPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallStartBatchCallUpsertBatchPostSecurityRequirement0,
+ };
partial void PrepareCallStartBatchCallUpsertBatchPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallCreateBatchReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallStartBatchCallUpsertBatchPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallStartBatchCallUpsertBatchPostSecurityRequirements,
+ operationName: "CallStartBatchCallUpsertBatchPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/call/upsert_batch",
- 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 ProcessCallStartBatchCallUpsertBatchPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs
index 879c51b..7d362ac 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallStartCallStartPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallStartCallStartPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallStartCallStartPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallStartCallStartPostSecurityRequirement0,
+ };
partial void PrepareCallStartCallStartPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallStartReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallStartCallStartPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallStartCallStartPostSecurityRequirements,
+ operationName: "CallStartCallStartPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/call/start",
- 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 ProcessCallStartCallStartPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs
index 528ded0..cbcf514 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallStatsCallsStatsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallStatsCallsStatsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallStatsCallsStatsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallStatsCallsStatsPostSecurityRequirement0,
+ };
partial void PrepareCallStatsCallsStatsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallStatsReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallStatsCallsStatsPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallStatsCallsStatsPostSecurityRequirements,
+ operationName: "CallStatsCallsStatsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/calls/stats",
- 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 ProcessCallStatsCallsStatsPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs
index 8acdcd7..40e2f2f 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallUpdateCallUpdatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallUpdateCallUpdatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallUpdateCallUpdatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallUpdateCallUpdatePostSecurityRequirement0,
+ };
partial void PrepareCallUpdateCallUpdatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallUpdateReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallUpdateCallUpdatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallUpdateCallUpdatePostSecurityRequirements,
+ operationName: "CallUpdateCallUpdatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/call/update",
- 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 ProcessCallUpdateCallUpdatePostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs
index fb216f3..23d1b51 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsDeleteCallsDeletePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallsDeleteCallsDeletePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallsDeleteCallsDeletePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallsDeleteCallsDeletePostSecurityRequirement0,
+ };
partial void PrepareCallsDeleteCallsDeletePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallsDeleteReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallsDeleteCallsDeletePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallsDeleteCallsDeletePostSecurityRequirements,
+ operationName: "CallsDeleteCallsDeletePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/calls/delete",
- 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 ProcessCallsDeleteCallsDeletePostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs
index d2312cf..cac44e2 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStatsCallsQueryStatsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallsQueryStatsCallsQueryStatsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallsQueryStatsCallsQueryStatsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallsQueryStatsCallsQueryStatsPostSecurityRequirement0,
+ };
partial void PrepareCallsQueryStatsCallsQueryStatsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallsQueryStatsReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallsQueryStatsCallsQueryStatsPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallsQueryStatsCallsQueryStatsPostSecurityRequirements,
+ operationName: "CallsQueryStatsCallsQueryStatsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/calls/query_stats",
- 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 ProcessCallsQueryStatsCallsQueryStatsPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs
index ef569b6..92baac1 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsQueryStreamCallsStreamQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallsQueryStreamCallsStreamQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallsQueryStreamCallsStreamQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallsQueryStreamCallsStreamQueryPostSecurityRequirement0,
+ };
partial void PrepareCallsQueryStreamCallsStreamQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? accept,
@@ -47,9 +66,15 @@ partial void ProcessCallsQueryStreamCallsStreamQueryPostResponseContent(
accept: ref accept,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallsQueryStreamCallsStreamQueryPostSecurityRequirements,
+ operationName: "CallsQueryStreamCallsStreamQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/calls/stream_query",
- 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,
@@ -59,7 +84,7 @@ partial void ProcessCallsQueryStreamCallsStreamQueryPostResponseContent(
__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/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs
index fdb3950..cbe6464 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.CallsUsageCallsUsagePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallsUsageCallsUsagePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallsUsageCallsUsagePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallsUsageCallsUsagePostSecurityRequirement0,
+ };
partial void PrepareCallsUsageCallsUsagePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallsUsageReq request);
@@ -41,9 +60,15 @@ partial void ProcessCallsUsageCallsUsagePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallsUsageCallsUsagePostSecurityRequirements,
+ operationName: "CallsUsageCallsUsagePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/calls/usage",
- 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 ProcessCallsUsageCallsUsagePostResponseContent(
__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/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs
index c93668e..4ff40ff 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.TraceUsageTraceUsagePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CallsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TraceUsageTraceUsagePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TraceUsageTraceUsagePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TraceUsageTraceUsagePostSecurityRequirement0,
+ };
partial void PrepareTraceUsageTraceUsagePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TraceUsageReq request);
@@ -41,9 +60,15 @@ partial void ProcessTraceUsageTraceUsagePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TraceUsageTraceUsagePostSecurityRequirements,
+ operationName: "TraceUsageTraceUsagePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/trace/usage",
- 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 ProcessTraceUsageTraceUsagePostResponseContent(
__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/Weave/Generated/Weave.CallsClient.g.cs b/src/libs/Weave/Generated/Weave.CallsClient.g.cs
index d61b828..5803ad1 100644
--- a/src/libs/Weave/Generated/Weave.CallsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.CallsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class CallsClient : global::Weave.ICallsClient, global::Sy
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs
index 9d41f61..583ef61 100644
--- a/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CostsClient.CostCreateCostCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CostsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CostCreateCostCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CostCreateCostCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CostCreateCostCreatePostSecurityRequirement0,
+ };
partial void PrepareCostCreateCostCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CostCreateReq request);
@@ -40,9 +59,15 @@ partial void ProcessCostCreateCostCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CostCreateCostCreatePostSecurityRequirements,
+ operationName: "CostCreateCostCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/cost/create",
- 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 ProcessCostCreateCostCreatePostResponseContent(
__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/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs
index d72c584..f221178 100644
--- a/src/libs/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CostsClient.CostPurgeCostPurgePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CostsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CostPurgeCostPurgePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CostPurgeCostPurgePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CostPurgeCostPurgePostSecurityRequirement0,
+ };
partial void PrepareCostPurgeCostPurgePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CostPurgeReq request);
@@ -40,9 +59,15 @@ partial void ProcessCostPurgeCostPurgePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CostPurgeCostPurgePostSecurityRequirements,
+ operationName: "CostPurgeCostPurgePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/cost/purge",
- 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 ProcessCostPurgeCostPurgePostResponseContent(
__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/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs
index 80e8932..753a651 100644
--- a/src/libs/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.CostsClient.CostQueryCostQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class CostsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CostQueryCostQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CostQueryCostQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CostQueryCostQueryPostSecurityRequirement0,
+ };
partial void PrepareCostQueryCostQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CostQueryReq request);
@@ -40,9 +59,15 @@ partial void ProcessCostQueryCostQueryPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CostQueryCostQueryPostSecurityRequirements,
+ operationName: "CostQueryCostQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/cost/query",
- 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 ProcessCostQueryCostQueryPostResponseContent(
__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/Weave/Generated/Weave.CostsClient.g.cs b/src/libs/Weave/Generated/Weave.CostsClient.g.cs
index 9c3f7a5..e3d29c0 100644
--- a/src/libs/Weave/Generated/Weave.CostsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.CostsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class CostsClient : global::Weave.ICostsClient, global::Sy
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs
index 39f0121..92a460c 100644
--- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetCreateV2EntityProjectDatasetsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class DatasetsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_DatasetCreateV2EntityProjectDatasetsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_DatasetCreateV2EntityProjectDatasetsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_DatasetCreateV2EntityProjectDatasetsPostSecurityRequirement0,
+ };
partial void PrepareDatasetCreateV2EntityProjectDatasetsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessDatasetCreateV2EntityProjectDatasetsPostResponseContent(
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DatasetCreateV2EntityProjectDatasetsPostSecurityRequirements,
+ operationName: "DatasetCreateV2EntityProjectDatasetsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/datasets",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessDatasetCreateV2EntityProjectDatasetsPostResponseContent(
__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/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs
index 537523d..41ff8dd 100644
--- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetDeleteV2EntityProjectDatasetsObjectIdDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class DatasetsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_DatasetDeleteV2EntityProjectDatasetsObjectIdDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_DatasetDeleteV2EntityProjectDatasetsObjectIdDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_DatasetDeleteV2EntityProjectDatasetsObjectIdDeleteSecurityRequirement0,
+ };
partial void PrepareDatasetDeleteV2EntityProjectDatasetsObjectIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -55,12 +74,18 @@ partial void ProcessDatasetDeleteV2EntityProjectDatasetsObjectIdDeleteResponseCo
objectId: ref objectId,
digests: digests);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DatasetDeleteV2EntityProjectDatasetsObjectIdDeleteSecurityRequirements,
+ operationName: "DatasetDeleteV2EntityProjectDatasetsObjectIdDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/datasets/{objectId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("digests", digests?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -70,7 +95,7 @@ partial void ProcessDatasetDeleteV2EntityProjectDatasetsObjectIdDeleteResponseCo
__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/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs
index 558c273..d78d579 100644
--- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetListV2EntityProjectDatasetsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class DatasetsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_DatasetListV2EntityProjectDatasetsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_DatasetListV2EntityProjectDatasetsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_DatasetListV2EntityProjectDatasetsGetSecurityRequirement0,
+ };
partial void PrepareDatasetListV2EntityProjectDatasetsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -57,13 +76,19 @@ partial void ProcessDatasetListV2EntityProjectDatasetsGetResponseContent(
limit: limit,
offset: offset);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DatasetListV2EntityProjectDatasetsGetSecurityRequirements,
+ operationName: "DatasetListV2EntityProjectDatasetsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/datasets",
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,
@@ -73,7 +98,7 @@ partial void ProcessDatasetListV2EntityProjectDatasetsGetResponseContent(
__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/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs
index 40d9296..fd9f212 100644
--- a/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.DatasetsClient.DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class DatasetsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetSecurityRequirement0,
+ };
partial void PrepareDatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -53,9 +72,15 @@ partial void ProcessDatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetR
objectId: ref objectId,
digest: ref digest);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetSecurityRequirements,
+ operationName: "DatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/datasets/{objectId}/versions/{digest}",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessDatasetReadV2EntityProjectDatasetsObjectIdVersionsDigestGetR
__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/Weave/Generated/Weave.DatasetsClient.g.cs b/src/libs/Weave/Generated/Weave.DatasetsClient.g.cs
index eb6f674..bebcde8 100644
--- a/src/libs/Weave/Generated/Weave.DatasetsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.DatasetsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class DatasetsClient : global::Weave.IDatasetsClient, glob
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs
index e3ac540..dcdf9a1 100644
--- a/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvalResultsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvalResultsQueryV2EntityProjectEvalResultsQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvalResultsQueryV2EntityProjectEvalResultsQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvalResultsQueryV2EntityProjectEvalResultsQueryPostSecurityRequirement0,
+ };
partial void PrepareEvalResultsQueryV2EntityProjectEvalResultsQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvalResultsQueryV2EntityProjectEvalResultsQueryPostSecurityRequirements,
+ operationName: "EvalResultsQueryV2EntityProjectEvalResultsQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/eval_results/query",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC
__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/Weave/Generated/Weave.EvalResultsClient.g.cs b/src/libs/Weave/Generated/Weave.EvalResultsClient.g.cs
index e1d6aa6..5c7532b 100644
--- a/src/libs/Weave/Generated/Weave.EvalResultsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvalResultsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class EvalResultsClient : global::Weave.IEvalResultsClient
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs
index c9774ed..b4c9430 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunCreateV2EntityProjectEvaluationRunsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationRunsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationRunCreateV2EntityProjectEvaluationRunsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationRunCreateV2EntityProjectEvaluationRunsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationRunCreateV2EntityProjectEvaluationRunsPostSecurityRequirement0,
+ };
partial void PrepareEvaluationRunCreateV2EntityProjectEvaluationRunsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationRunCreateV2EntityProjectEvaluationRunsPostSecurityRequirements,
+ operationName: "EvaluationRunCreateV2EntityProjectEvaluationRunsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluation_runs",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessEvaluationRunCreateV2EntityProjectEvaluationRunsPostResponse
__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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs
index 98326af..2f5be16 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunDeleteV2EntityProjectEvaluationRunsDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationRunsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteSecurityRequirement0,
+ };
partial void PrepareEvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -50,12 +69,18 @@ partial void ProcessEvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteRespon
project: ref project,
evaluationRunIds: evaluationRunIds);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteSecurityRequirements,
+ operationName: "EvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluation_runs",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("evaluation_run_ids", evaluationRunIds, delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -65,7 +90,7 @@ partial void ProcessEvaluationRunDeleteV2EntityProjectEvaluationRunsDeleteRespon
__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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs
index 8066e6f..6122be0 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationRunsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPostSecurityRequirement0,
+ };
partial void PrepareEvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -56,9 +75,15 @@ partial void ProcessEvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRu
evaluationRunId: ref evaluationRunId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPostSecurityRequirements,
+ operationName: "EvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRunIdFinishPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluation_runs/{evaluationRunId}/finish",
- 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,
@@ -68,7 +93,7 @@ partial void ProcessEvaluationRunFinishV2EntityProjectEvaluationRunsEvaluationRu
__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/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs
index 9532692..09de7dd 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationRunsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationRunListV2EntityProjectEvaluationRunsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationRunListV2EntityProjectEvaluationRunsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationRunListV2EntityProjectEvaluationRunsGetSecurityRequirement0,
+ };
partial void PrepareEvaluationRunListV2EntityProjectEvaluationRunsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -28,11 +47,6 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
///
/// Evaluation Run List
/// List evaluation runs.
@@ -56,7 +70,7 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task> EvaluationRunListV2EntityProjectEvaluationRunsGetAsync(
+ public async global::System.Collections.Generic.IAsyncEnumerable EvaluationRunListV2EntityProjectEvaluationRunsGetAsync(
string entity,
string project,
global::System.Collections.Generic.IList? evaluations = default,
@@ -64,7 +78,7 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
global::System.Collections.Generic.IList? evaluationRunIds = default,
int? limit = default,
int? offset = default,
- global::System.Threading.CancellationToken cancellationToken = default)
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -78,6 +92,12 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
limit: limit,
offset: offset);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationRunListV2EntityProjectEvaluationRunsGetSecurityRequirements,
+ operationName: "EvaluationRunListV2EntityProjectEvaluationRunsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluation_runs",
baseUri: HttpClient.BaseAddress);
@@ -87,7 +107,7 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
.AddOptionalParameter("evaluation_run_ids", evaluationRunIds?.ToString())
.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,
@@ -97,7 +117,7 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
__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")
@@ -129,7 +149,7 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: cancellationToken).ConfigureAwait(false);
ProcessResponse(
@@ -138,38 +158,32 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
- // Validation Error
- if ((int)__response.StatusCode == 422)
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
{
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Weave.HTTPValidationError? __value_422 = null;
+ string? __content = null;
try
{
- if (ReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
}
- catch (global::System.Exception __ex)
+ catch (global::System.Exception)
{
- __exception_422 = __ex;
}
- throw new global::Weave.ApiException(
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
+ throw new global::Weave.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
statusCode: __response.StatusCode)
{
- ResponseBody = __content_422,
- ResponseObject = __value_422,
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
@@ -177,88 +191,35 @@ partial void ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseCon
};
}
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
+ using var __stream = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
- cancellationToken
+ cancellationToken
#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessEvaluationRunListV2EntityProjectEvaluationRunsGetResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
+ ).ConfigureAwait(false);
- try
- {
- __response.EnsureSuccessStatusCode();
+ using var __reader = new global::System.IO.StreamReader(__stream);
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::Weave.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
+ while (!__reader.EndOfStream && !cancellationToken.IsCancellationRequested)
{
- try
+ var __content = await __reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ if (global::System.String.IsNullOrWhiteSpace(__content))
{
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
+ continue;
}
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
- throw new global::Weave.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
+ var __streamedResponse = global::Weave.EvaluationRunReadRes.FromJson(__content, JsonSerializerContext) ??
+ throw new global::Weave.ApiException(
+ message: $"Response deserialization failed for \"{__content}\" ",
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+
+ yield return __streamedResponse;
}
}
}
diff --git a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs
index 541ead0..7477245 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationRunsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGetSecurityRequirement0,
+ };
partial void PrepareEvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -48,9 +67,15 @@ partial void ProcessEvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunI
project: ref project,
evaluationRunId: ref evaluationRunId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGetSecurityRequirements,
+ operationName: "EvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunIdGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluation_runs/{evaluationRunId}",
- 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,
@@ -60,7 +85,7 @@ partial void ProcessEvaluationRunReadV2EntityProjectEvaluationRunsEvaluationRunI
__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/Weave/Generated/Weave.EvaluationRunsClient.g.cs b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.g.cs
index b211e89..2c8c0a7 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationRunsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationRunsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class EvaluationRunsClient : global::Weave.IEvaluationRuns
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs
index f28c301..0de21b9 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluateModelEvaluationsEvaluateModelPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluateModelEvaluationsEvaluateModelPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluateModelEvaluationsEvaluateModelPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluateModelEvaluationsEvaluateModelPostSecurityRequirement0,
+ };
partial void PrepareEvaluateModelEvaluationsEvaluateModelPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.EvaluateModelReq request);
@@ -40,9 +59,15 @@ partial void ProcessEvaluateModelEvaluationsEvaluateModelPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluateModelEvaluationsEvaluateModelPostSecurityRequirements,
+ operationName: "EvaluateModelEvaluationsEvaluateModelPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/evaluations/evaluate_model",
- 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 ProcessEvaluateModelEvaluationsEvaluateModelPostResponseContent(
__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/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs
index ca97d43..5bb6ac5 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationCreateV2EntityProjectEvaluationsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationCreateV2EntityProjectEvaluationsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationCreateV2EntityProjectEvaluationsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationCreateV2EntityProjectEvaluationsPostSecurityRequirement0,
+ };
partial void PrepareEvaluationCreateV2EntityProjectEvaluationsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessEvaluationCreateV2EntityProjectEvaluationsPostResponseConten
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationCreateV2EntityProjectEvaluationsPostSecurityRequirements,
+ operationName: "EvaluationCreateV2EntityProjectEvaluationsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluations",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessEvaluationCreateV2EntityProjectEvaluationsPostResponseConten
__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/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs
index 4df66cb..d0ec1ae 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationDeleteV2EntityProjectEvaluationsObjectIdDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteSecurityRequirement0,
+ };
partial void PrepareEvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -55,12 +74,18 @@ partial void ProcessEvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteResp
objectId: ref objectId,
digests: digests);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteSecurityRequirements,
+ operationName: "EvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluations/{objectId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("digests", digests?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -70,7 +95,7 @@ partial void ProcessEvaluationDeleteV2EntityProjectEvaluationsObjectIdDeleteResp
__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/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs
index 2d9f3d9..980efec 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationListV2EntityProjectEvaluationsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationListV2EntityProjectEvaluationsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationListV2EntityProjectEvaluationsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationListV2EntityProjectEvaluationsGetSecurityRequirement0,
+ };
partial void PrepareEvaluationListV2EntityProjectEvaluationsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -43,9 +62,15 @@ partial void ProcessEvaluationListV2EntityProjectEvaluationsGetResponseContent(
entity: ref entity,
project: ref project);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationListV2EntityProjectEvaluationsGetSecurityRequirements,
+ operationName: "EvaluationListV2EntityProjectEvaluationsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluations",
- 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,
@@ -55,7 +80,7 @@ partial void ProcessEvaluationListV2EntityProjectEvaluationsGetResponseContent(
__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/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs
index 37204bd..471fc67 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGetSecurityRequirement0,
+ };
partial void PrepareEvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -53,9 +72,15 @@ partial void ProcessEvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDige
objectId: ref objectId,
digest: ref digest);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGetSecurityRequirements,
+ operationName: "EvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDigestGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/evaluations/{objectId}/versions/{digest}",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessEvaluationReadV2EntityProjectEvaluationsObjectIdVersionsDige
__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/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs
index 48fc13c..133ee82 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.EvaluationStatusEvaluationsStatusPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class EvaluationsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_EvaluationStatusEvaluationsStatusPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_EvaluationStatusEvaluationsStatusPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_EvaluationStatusEvaluationsStatusPostSecurityRequirement0,
+ };
partial void PrepareEvaluationStatusEvaluationsStatusPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.EvaluationStatusReq request);
@@ -40,9 +59,15 @@ partial void ProcessEvaluationStatusEvaluationsStatusPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EvaluationStatusEvaluationsStatusPostSecurityRequirements,
+ operationName: "EvaluationStatusEvaluationsStatusPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/evaluations/status",
- 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 ProcessEvaluationStatusEvaluationsStatusPostResponseContent(
__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/Weave/Generated/Weave.EvaluationsClient.g.cs b/src/libs/Weave/Generated/Weave.EvaluationsClient.g.cs
index 024248d..9893dfe 100644
--- a/src/libs/Weave/Generated/Weave.EvaluationsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.EvaluationsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class EvaluationsClient : global::Weave.IEvaluationsClient
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs
index 3df9f36..4121c73 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateBatchFeedbackBatchCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackCreateBatchFeedbackBatchCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackCreateBatchFeedbackBatchCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackCreateBatchFeedbackBatchCreatePostSecurityRequirement0,
+ };
partial void PrepareFeedbackCreateBatchFeedbackBatchCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackCreateBatchReq request);
@@ -41,9 +60,15 @@ partial void ProcessFeedbackCreateBatchFeedbackBatchCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackCreateBatchFeedbackBatchCreatePostSecurityRequirements,
+ operationName: "FeedbackCreateBatchFeedbackBatchCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/batch/create",
- 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 ProcessFeedbackCreateBatchFeedbackBatchCreatePostResponseContent(
__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/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs
index a1852a9..4e74321 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackCreateFeedbackCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackCreateFeedbackCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackCreateFeedbackCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackCreateFeedbackCreatePostSecurityRequirement0,
+ };
partial void PrepareFeedbackCreateFeedbackCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackCreateReq request);
@@ -41,9 +60,15 @@ partial void ProcessFeedbackCreateFeedbackCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackCreateFeedbackCreatePostSecurityRequirements,
+ operationName: "FeedbackCreateFeedbackCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/create",
- 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 ProcessFeedbackCreateFeedbackCreatePostResponseContent(
__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/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs
index 0dc8241..31f123a 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPayloadSchemaFeedbackPayloadSchemaPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackPayloadSchemaFeedbackPayloadSchemaPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackPayloadSchemaFeedbackPayloadSchemaPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackPayloadSchemaFeedbackPayloadSchemaPostSecurityRequirement0,
+ };
partial void PrepareFeedbackPayloadSchemaFeedbackPayloadSchemaPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackPayloadSchemaReq request);
@@ -41,9 +60,15 @@ partial void ProcessFeedbackPayloadSchemaFeedbackPayloadSchemaPostResponseConten
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackPayloadSchemaFeedbackPayloadSchemaPostSecurityRequirements,
+ operationName: "FeedbackPayloadSchemaFeedbackPayloadSchemaPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/payload_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,
@@ -53,7 +78,7 @@ partial void ProcessFeedbackPayloadSchemaFeedbackPayloadSchemaPostResponseConten
__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/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs
index c5a3d8c..61e126c 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackPurgeFeedbackPurgePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackPurgeFeedbackPurgePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackPurgeFeedbackPurgePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackPurgeFeedbackPurgePostSecurityRequirement0,
+ };
partial void PrepareFeedbackPurgeFeedbackPurgePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackPurgeReq request);
@@ -41,9 +60,15 @@ partial void ProcessFeedbackPurgeFeedbackPurgePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackPurgeFeedbackPurgePostSecurityRequirements,
+ operationName: "FeedbackPurgeFeedbackPurgePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/purge",
- 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 ProcessFeedbackPurgeFeedbackPurgePostResponseContent(
__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/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs
index 0323140..d59eacf 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackQueryFeedbackQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackQueryFeedbackQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackQueryFeedbackQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackQueryFeedbackQueryPostSecurityRequirement0,
+ };
partial void PrepareFeedbackQueryFeedbackQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackQueryReq request);
@@ -41,9 +60,15 @@ partial void ProcessFeedbackQueryFeedbackQueryPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackQueryFeedbackQueryPostSecurityRequirements,
+ operationName: "FeedbackQueryFeedbackQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/query",
- 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 ProcessFeedbackQueryFeedbackQueryPostResponseContent(
__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/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs
index 6427ca5..c2996ec 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackReplaceFeedbackReplacePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackReplaceFeedbackReplacePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackReplaceFeedbackReplacePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackReplaceFeedbackReplacePostSecurityRequirement0,
+ };
partial void PrepareFeedbackReplaceFeedbackReplacePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackReplaceReq request);
@@ -40,9 +59,15 @@ partial void ProcessFeedbackReplaceFeedbackReplacePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackReplaceFeedbackReplacePostSecurityRequirements,
+ operationName: "FeedbackReplaceFeedbackReplacePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/replace",
- 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 ProcessFeedbackReplaceFeedbackReplacePostResponseContent(
__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/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs
index a7987e9..220eb83 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.FeedbackStatsFeedbackStatsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FeedbackClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FeedbackStatsFeedbackStatsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FeedbackStatsFeedbackStatsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FeedbackStatsFeedbackStatsPostSecurityRequirement0,
+ };
partial void PrepareFeedbackStatsFeedbackStatsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FeedbackStatsReq request);
@@ -41,9 +60,15 @@ partial void ProcessFeedbackStatsFeedbackStatsPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FeedbackStatsFeedbackStatsPostSecurityRequirements,
+ operationName: "FeedbackStatsFeedbackStatsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/feedback/stats",
- 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 ProcessFeedbackStatsFeedbackStatsPostResponseContent(
__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/Weave/Generated/Weave.FeedbackClient.g.cs b/src/libs/Weave/Generated/Weave.FeedbackClient.g.cs
index 55ff584..5ffe1b0 100644
--- a/src/libs/Weave/Generated/Weave.FeedbackClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.FeedbackClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class FeedbackClient : global::Weave.IFeedbackClient, glob
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs
index ebc34c0..3c4eb5e 100644
--- a/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FilesClient.FileContentFileContentPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FilesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FileContentFileContentPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FileContentFileContentPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FileContentFileContentPostSecurityRequirement0,
+ };
partial void PrepareFileContentFileContentPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FileContentReadReq request);
@@ -40,9 +59,15 @@ partial void ProcessFileContentFileContentPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FileContentFileContentPostSecurityRequirements,
+ operationName: "FileContentFileContentPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/file/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,
@@ -52,7 +77,7 @@ partial void ProcessFileContentFileContentPostResponseContent(
__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/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs
index 9740636..03e98a7 100644
--- a/src/libs/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FilesClient.FileCreateFileCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FilesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FileCreateFileCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FileCreateFileCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FileCreateFileCreatePostSecurityRequirement0,
+ };
partial void PrepareFileCreateFileCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.BodyFileCreateFileCreatePost request);
@@ -40,9 +59,15 @@ partial void ProcessFileCreateFileCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FileCreateFileCreatePostSecurityRequirements,
+ operationName: "FileCreateFileCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/file/create",
- 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 ProcessFileCreateFileCreatePostResponseContent(
__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/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs
index 8c012e1..4fb56b7 100644
--- a/src/libs/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.FilesClient.FilesStatsFilesQueryStatsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class FilesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_FilesStatsFilesQueryStatsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_FilesStatsFilesQueryStatsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_FilesStatsFilesQueryStatsPostSecurityRequirement0,
+ };
partial void PrepareFilesStatsFilesQueryStatsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.FilesStatsReq request);
@@ -40,9 +59,15 @@ partial void ProcessFilesStatsFilesQueryStatsPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_FilesStatsFilesQueryStatsPostSecurityRequirements,
+ operationName: "FilesStatsFilesQueryStatsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/files/query_stats",
- 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 ProcessFilesStatsFilesQueryStatsPostResponseContent(
__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/Weave/Generated/Weave.FilesClient.g.cs b/src/libs/Weave/Generated/Weave.FilesClient.g.cs
index 4967497..1f96b4d 100644
--- a/src/libs/Weave/Generated/Weave.FilesClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.FilesClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class FilesClient : global::Weave.IFilesClient, global::Sy
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.IEvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs b/src/libs/Weave/Generated/Weave.IEvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs
index f2508b2..83c02ea 100644
--- a/src/libs/Weave/Generated/Weave.IEvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.IEvaluationRunsClient.EvaluationRunListV2EntityProjectEvaluationRunsGet.g.cs
@@ -27,7 +27,7 @@ public partial interface IEvaluationRunsClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task> EvaluationRunListV2EntityProjectEvaluationRunsGetAsync(
+ global::System.Collections.Generic.IAsyncEnumerable EvaluationRunListV2EntityProjectEvaluationRunsGetAsync(
string entity,
string project,
global::System.Collections.Generic.IList? evaluations = default,
diff --git a/src/libs/Weave/Generated/Weave.IPredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs b/src/libs/Weave/Generated/Weave.IPredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs
index 4a4253b..bee6359 100644
--- a/src/libs/Weave/Generated/Weave.IPredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.IPredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs
@@ -21,7 +21,7 @@ public partial interface IPredictionsClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task> PredictionListV2EntityProjectPredictionsGetAsync(
+ global::System.Collections.Generic.IAsyncEnumerable PredictionListV2EntityProjectPredictionsGetAsync(
string entity,
string project,
string? evaluationRunId = default,
diff --git a/src/libs/Weave/Generated/Weave.IScoresClient.ScoreListV2EntityProjectScoresGet.g.cs b/src/libs/Weave/Generated/Weave.IScoresClient.ScoreListV2EntityProjectScoresGet.g.cs
index 56a164c..3fa12ea 100644
--- a/src/libs/Weave/Generated/Weave.IScoresClient.ScoreListV2EntityProjectScoresGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.IScoresClient.ScoreListV2EntityProjectScoresGet.g.cs
@@ -21,7 +21,7 @@ public partial interface IScoresClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task> ScoreListV2EntityProjectScoresGetAsync(
+ global::System.Collections.Generic.IAsyncEnumerable ScoreListV2EntityProjectScoresGetAsync(
string entity,
string project,
string? evaluationRunId = default,
diff --git a/src/libs/Weave/Generated/Weave.IWeaveClient.Authorizations.Bearer.g.cs b/src/libs/Weave/Generated/Weave.IWeaveClient.Authorizations.Bearer.g.cs
index ed1f2a2..9f93f96 100644
--- a/src/libs/Weave/Generated/Weave.IWeaveClient.Authorizations.Bearer.g.cs
+++ b/src/libs/Weave/Generated/Weave.IWeaveClient.Authorizations.Bearer.g.cs
@@ -9,6 +9,7 @@ public partial interface IWeaveClient
/// Authorize using bearer authentication.
///
///
+
public void AuthorizeUsingBearer(
string apiKey);
}
diff --git a/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs b/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs
index 0e1e9d4..3b33a04 100644
--- a/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ImagesClient.ImageCreateImageCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ImagesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ImageCreateImageCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ImageCreateImageCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ImageCreateImageCreatePostSecurityRequirement0,
+ };
partial void PrepareImageCreateImageCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ImageGenerationCreateReq request);
@@ -40,9 +59,15 @@ partial void ProcessImageCreateImageCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ImageCreateImageCreatePostSecurityRequirements,
+ operationName: "ImageCreateImageCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/image/create",
- 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 ProcessImageCreateImageCreatePostResponseContent(
__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/Weave/Generated/Weave.ImagesClient.g.cs b/src/libs/Weave/Generated/Weave.ImagesClient.g.cs
index 4f34070..a2895ce 100644
--- a/src/libs/Weave/Generated/Weave.ImagesClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ImagesClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ImagesClient : global::Weave.IImagesClient, global::
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs
index fcce3ff..f52b7aa 100644
--- a/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class InferenceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetSecurityRequirement0,
+ };
partial void PrepareInferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareInferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetRequest(
@@ -34,9 +53,15 @@ partial void ProcessInferenceAnalysisArtificialanalysisModelsInferenceAnalysisAr
PrepareInferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetSecurityRequirements,
+ operationName: "InferenceAnalysisArtificialanalysisModelsInferenceAnalysisArtificialanalysisModelsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/inference/analysis/artificialanalysis/models",
- 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,
@@ -46,7 +71,7 @@ partial void ProcessInferenceAnalysisArtificialanalysisModelsInferenceAnalysisAr
__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/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs
index 7373e5c..cc6c143 100644
--- a/src/libs/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.InferenceClient.InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class InferenceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetSecurityRequirement0,
+ };
partial void PrepareInferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareInferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetRequest(
@@ -34,9 +53,15 @@ partial void ProcessInferenceRouterOpenrouterModelsInferenceRouterOpenrouterMode
PrepareInferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetSecurityRequirements,
+ operationName: "InferenceRouterOpenrouterModelsInferenceRouterOpenrouterModelsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/inference/router/openrouter/models",
- 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,
@@ -46,7 +71,7 @@ partial void ProcessInferenceRouterOpenrouterModelsInferenceRouterOpenrouterMode
__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/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs
index 93c7fc4..60d1cd9 100644
--- a/src/libs/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.InferenceClient.NvidiaHardwareInferenceNvidiaV2HardwareGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class InferenceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_NvidiaHardwareInferenceNvidiaV2HardwareGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_NvidiaHardwareInferenceNvidiaV2HardwareGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_NvidiaHardwareInferenceNvidiaV2HardwareGetSecurityRequirement0,
+ };
partial void PrepareNvidiaHardwareInferenceNvidiaV2HardwareGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string model);
@@ -42,12 +61,18 @@ partial void ProcessNvidiaHardwareInferenceNvidiaV2HardwareGetResponseContent(
httpClient: HttpClient,
model: ref model);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_NvidiaHardwareInferenceNvidiaV2HardwareGetSecurityRequirements,
+ operationName: "NvidiaHardwareInferenceNvidiaV2HardwareGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/inference/nvidia/v2/hardware",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("model", model)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -57,7 +82,7 @@ partial void ProcessNvidiaHardwareInferenceNvidiaV2HardwareGetResponseContent(
__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/Weave/Generated/Weave.InferenceClient.g.cs b/src/libs/Weave/Generated/Weave.InferenceClient.g.cs
index ef6058e..e74ee57 100644
--- a/src/libs/Weave/Generated/Weave.InferenceClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.InferenceClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class InferenceClient : global::Weave.IInferenceClient, gl
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs
index 8035c87..b70ba14 100644
--- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelCreateV2EntityProjectModelsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ModelsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ModelCreateV2EntityProjectModelsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ModelCreateV2EntityProjectModelsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ModelCreateV2EntityProjectModelsPostSecurityRequirement0,
+ };
partial void PrepareModelCreateV2EntityProjectModelsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessModelCreateV2EntityProjectModelsPostResponseContent(
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModelCreateV2EntityProjectModelsPostSecurityRequirements,
+ operationName: "ModelCreateV2EntityProjectModelsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/models",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessModelCreateV2EntityProjectModelsPostResponseContent(
__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/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs
index 2634c73..03e65b3 100644
--- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelDeleteV2EntityProjectModelsObjectIdDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ModelsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ModelDeleteV2EntityProjectModelsObjectIdDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ModelDeleteV2EntityProjectModelsObjectIdDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ModelDeleteV2EntityProjectModelsObjectIdDeleteSecurityRequirement0,
+ };
partial void PrepareModelDeleteV2EntityProjectModelsObjectIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -55,12 +74,18 @@ partial void ProcessModelDeleteV2EntityProjectModelsObjectIdDeleteResponseConten
objectId: ref objectId,
digests: digests);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModelDeleteV2EntityProjectModelsObjectIdDeleteSecurityRequirements,
+ operationName: "ModelDeleteV2EntityProjectModelsObjectIdDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/models/{objectId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("digests", digests?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -70,7 +95,7 @@ partial void ProcessModelDeleteV2EntityProjectModelsObjectIdDeleteResponseConten
__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/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs
index 88da2a3..d3676df 100644
--- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelListV2EntityProjectModelsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ModelsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ModelListV2EntityProjectModelsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ModelListV2EntityProjectModelsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ModelListV2EntityProjectModelsGetSecurityRequirement0,
+ };
partial void PrepareModelListV2EntityProjectModelsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -57,13 +76,19 @@ partial void ProcessModelListV2EntityProjectModelsGetResponseContent(
limit: limit,
offset: offset);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModelListV2EntityProjectModelsGetSecurityRequirements,
+ operationName: "ModelListV2EntityProjectModelsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/models",
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,
@@ -73,7 +98,7 @@ partial void ProcessModelListV2EntityProjectModelsGetResponseContent(
__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/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs
index fae6a4a..5fca726 100644
--- a/src/libs/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ModelsClient.ModelReadV2EntityProjectModelsObjectIdVersionsDigestGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ModelsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ModelReadV2EntityProjectModelsObjectIdVersionsDigestGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ModelReadV2EntityProjectModelsObjectIdVersionsDigestGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ModelReadV2EntityProjectModelsObjectIdVersionsDigestGetSecurityRequirement0,
+ };
partial void PrepareModelReadV2EntityProjectModelsObjectIdVersionsDigestGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -53,9 +72,15 @@ partial void ProcessModelReadV2EntityProjectModelsObjectIdVersionsDigestGetRespo
objectId: ref objectId,
digest: ref digest);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ModelReadV2EntityProjectModelsObjectIdVersionsDigestGetSecurityRequirements,
+ operationName: "ModelReadV2EntityProjectModelsObjectIdVersionsDigestGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/models/{objectId}/versions/{digest}",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessModelReadV2EntityProjectModelsObjectIdVersionsDigestGetRespo
__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/Weave/Generated/Weave.ModelsClient.g.cs b/src/libs/Weave/Generated/Weave.ModelsClient.g.cs
index 7283c62..4f1ef74 100644
--- a/src/libs/Weave/Generated/Weave.ModelsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ModelsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ModelsClient : global::Weave.IModelsClient, global::
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs
index b4cd2fa..01a4a0e 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.AliasesListAliasesGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_AliasesListAliasesGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_AliasesListAliasesGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_AliasesListAliasesGetSecurityRequirement0,
+ };
partial void PrepareAliasesListAliasesGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId);
@@ -38,12 +57,18 @@ partial void ProcessAliasesListAliasesGetResponseContent(
httpClient: HttpClient,
projectId: ref projectId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_AliasesListAliasesGetSecurityRequirements,
+ operationName: "AliasesListAliasesGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/aliases",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("project_id", projectId)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -53,7 +78,7 @@ partial void ProcessAliasesListAliasesGetResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs
index bcb4e93..5ab21cc 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjAddTagsObjsObjectIdVersionsDigestTagsPut.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjAddTagsObjsObjectIdVersionsDigestTagsPutSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjAddTagsObjsObjectIdVersionsDigestTagsPutSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjAddTagsObjsObjectIdVersionsDigestTagsPutSecurityRequirement0,
+ };
partial void PrepareObjAddTagsObjsObjectIdVersionsDigestTagsPutArguments(
global::System.Net.Http.HttpClient httpClient,
ref string objectId,
@@ -51,9 +70,15 @@ partial void ProcessObjAddTagsObjsObjectIdVersionsDigestTagsPutResponseContent(
digest: ref digest,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjAddTagsObjsObjectIdVersionsDigestTagsPutSecurityRequirements,
+ operationName: "ObjAddTagsObjsObjectIdVersionsDigestTagsPutAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/objs/{objectId}/versions/{digest}/tags",
- 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 ProcessObjAddTagsObjsObjectIdVersionsDigestTagsPutResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs
index c7ec145..2a5d355 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjCreateObjCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjCreateObjCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjCreateObjCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjCreateObjCreatePostSecurityRequirement0,
+ };
partial void PrepareObjCreateObjCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ObjCreateReq request);
@@ -40,9 +59,15 @@ partial void ProcessObjCreateObjCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjCreateObjCreatePostSecurityRequirements,
+ operationName: "ObjCreateObjCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/obj/create",
- 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 ProcessObjCreateObjCreatePostResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs
index 7ee60bf..1608b71 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjDeleteObjDeletePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjDeleteObjDeletePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjDeleteObjDeletePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjDeleteObjDeletePostSecurityRequirement0,
+ };
partial void PrepareObjDeleteObjDeletePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ObjDeleteReq request);
@@ -40,9 +59,15 @@ partial void ProcessObjDeleteObjDeletePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjDeleteObjDeletePostSecurityRequirements,
+ operationName: "ObjDeleteObjDeletePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/obj/delete",
- 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 ProcessObjDeleteObjDeletePostResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs
index 06f00ec..03a2ddc 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjReadObjReadPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjReadObjReadPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjReadObjReadPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjReadObjReadPostSecurityRequirement0,
+ };
partial void PrepareObjReadObjReadPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ObjReadReq request);
@@ -40,9 +59,15 @@ partial void ProcessObjReadObjReadPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjReadObjReadPostSecurityRequirements,
+ operationName: "ObjReadObjReadPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/obj/read",
- 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 ProcessObjReadObjReadPostResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs
index f81f486..71183ba 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveAliasesObjsObjectIdAliasesRemovePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjRemoveAliasesObjsObjectIdAliasesRemovePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjRemoveAliasesObjsObjectIdAliasesRemovePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjRemoveAliasesObjsObjectIdAliasesRemovePostSecurityRequirement0,
+ };
partial void PrepareObjRemoveAliasesObjsObjectIdAliasesRemovePostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string objectId,
@@ -46,9 +65,15 @@ partial void ProcessObjRemoveAliasesObjsObjectIdAliasesRemovePostResponseContent
objectId: ref objectId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjRemoveAliasesObjsObjectIdAliasesRemovePostSecurityRequirements,
+ operationName: "ObjRemoveAliasesObjsObjectIdAliasesRemovePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/objs/{objectId}/aliases/remove",
- 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 ProcessObjRemoveAliasesObjsObjectIdAliasesRemovePostResponseContent
__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/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs
index 16ae917..3355373 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostSecurityRequirement0,
+ };
partial void PrepareObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string objectId,
@@ -51,9 +70,15 @@ partial void ProcessObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostRespons
digest: ref digest,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostSecurityRequirements,
+ operationName: "ObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/objs/{objectId}/versions/{digest}/tags/remove",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessObjRemoveTagsObjsObjectIdVersionsDigestTagsRemovePostRespons
__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/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs
index a2d94f7..29dfa45 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjSetAliasesObjsObjectIdAliasesPut.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjSetAliasesObjsObjectIdAliasesPutSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjSetAliasesObjsObjectIdAliasesPutSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjSetAliasesObjsObjectIdAliasesPutSecurityRequirement0,
+ };
partial void PrepareObjSetAliasesObjsObjectIdAliasesPutArguments(
global::System.Net.Http.HttpClient httpClient,
ref string objectId,
@@ -46,9 +65,15 @@ partial void ProcessObjSetAliasesObjsObjectIdAliasesPutResponseContent(
objectId: ref objectId,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjSetAliasesObjsObjectIdAliasesPutSecurityRequirements,
+ operationName: "ObjSetAliasesObjsObjectIdAliasesPutAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/objs/{objectId}/aliases",
- 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,
@@ -58,7 +83,7 @@ partial void ProcessObjSetAliasesObjsObjectIdAliasesPutResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs
index aeb978f..b32eb43 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.ObjsQueryObjsQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ObjsQueryObjsQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ObjsQueryObjsQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ObjsQueryObjsQueryPostSecurityRequirement0,
+ };
partial void PrepareObjsQueryObjsQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ObjQueryReq request);
@@ -40,9 +59,15 @@ partial void ProcessObjsQueryObjsQueryPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ObjsQueryObjsQueryPostSecurityRequirements,
+ operationName: "ObjsQueryObjsQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/objs/query",
- 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 ProcessObjsQueryObjsQueryPostResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs
index e851ba3..e30c58d 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.TagsListTagsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ObjectsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TagsListTagsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TagsListTagsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TagsListTagsGetSecurityRequirement0,
+ };
partial void PrepareTagsListTagsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string projectId);
@@ -38,12 +57,18 @@ partial void ProcessTagsListTagsGetResponseContent(
httpClient: HttpClient,
projectId: ref projectId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TagsListTagsGetSecurityRequirements,
+ operationName: "TagsListTagsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/tags",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("project_id", projectId)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Get,
@@ -53,7 +78,7 @@ partial void ProcessTagsListTagsGetResponseContent(
__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/Weave/Generated/Weave.ObjectsClient.g.cs b/src/libs/Weave/Generated/Weave.ObjectsClient.g.cs
index f0aedec..777a905 100644
--- a/src/libs/Weave/Generated/Weave.ObjectsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ObjectsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ObjectsClient : global::Weave.IObjectsClient, global
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs b/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs
index e0afd45..cb3211d 100644
--- a/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpenTelemetryClient.ExportTraceOtelV1TracesPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class OpenTelemetryClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ExportTraceOtelV1TracesPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ExportTraceOtelV1TracesPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ExportTraceOtelV1TracesPostSecurityRequirement0,
+ };
partial void PrepareExportTraceOtelV1TracesPostArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareExportTraceOtelV1TracesPostRequest(
@@ -32,9 +51,15 @@ partial void ProcessExportTraceOtelV1TracesPostResponseContent(
PrepareExportTraceOtelV1TracesPostArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ExportTraceOtelV1TracesPostSecurityRequirements,
+ operationName: "ExportTraceOtelV1TracesPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/otel/v1/traces",
- 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,
@@ -44,7 +69,7 @@ partial void ProcessExportTraceOtelV1TracesPostResponseContent(
__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/Weave/Generated/Weave.OpenTelemetryClient.g.cs b/src/libs/Weave/Generated/Weave.OpenTelemetryClient.g.cs
index 1b29f07..d508d63 100644
--- a/src/libs/Weave/Generated/Weave.OpenTelemetryClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpenTelemetryClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class OpenTelemetryClient : global::Weave.IOpenTelemetryCl
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs
index 01ea366..8f26a25 100644
--- a/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpsClient.OpCreateV2EntityProjectOpsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class OpsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_OpCreateV2EntityProjectOpsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_OpCreateV2EntityProjectOpsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_OpCreateV2EntityProjectOpsPostSecurityRequirement0,
+ };
partial void PrepareOpCreateV2EntityProjectOpsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessOpCreateV2EntityProjectOpsPostResponseContent(
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_OpCreateV2EntityProjectOpsPostSecurityRequirements,
+ operationName: "OpCreateV2EntityProjectOpsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/ops",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessOpCreateV2EntityProjectOpsPostResponseContent(
__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/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs
index 375e412..ada0aa3 100644
--- a/src/libs/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpsClient.OpDeleteV2EntityProjectOpsObjectIdDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class OpsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_OpDeleteV2EntityProjectOpsObjectIdDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_OpDeleteV2EntityProjectOpsObjectIdDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_OpDeleteV2EntityProjectOpsObjectIdDeleteSecurityRequirement0,
+ };
partial void PrepareOpDeleteV2EntityProjectOpsObjectIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -55,12 +74,18 @@ partial void ProcessOpDeleteV2EntityProjectOpsObjectIdDeleteResponseContent(
objectId: ref objectId,
digests: digests);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_OpDeleteV2EntityProjectOpsObjectIdDeleteSecurityRequirements,
+ operationName: "OpDeleteV2EntityProjectOpsObjectIdDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/ops/{objectId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("digests", digests?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -70,7 +95,7 @@ partial void ProcessOpDeleteV2EntityProjectOpsObjectIdDeleteResponseContent(
__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/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs
index 725b01a..e4a1de0 100644
--- a/src/libs/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpsClient.OpListV2EntityProjectOpsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class OpsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_OpListV2EntityProjectOpsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_OpListV2EntityProjectOpsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_OpListV2EntityProjectOpsGetSecurityRequirement0,
+ };
partial void PrepareOpListV2EntityProjectOpsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -57,13 +76,19 @@ partial void ProcessOpListV2EntityProjectOpsGetResponseContent(
limit: limit,
offset: offset);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_OpListV2EntityProjectOpsGetSecurityRequirements,
+ operationName: "OpListV2EntityProjectOpsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/ops",
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,
@@ -73,7 +98,7 @@ partial void ProcessOpListV2EntityProjectOpsGetResponseContent(
__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/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs
index a21a23b..9c3f7ce 100644
--- a/src/libs/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpsClient.OpReadV2EntityProjectOpsObjectIdVersionsDigestGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class OpsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_OpReadV2EntityProjectOpsObjectIdVersionsDigestGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_OpReadV2EntityProjectOpsObjectIdVersionsDigestGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_OpReadV2EntityProjectOpsObjectIdVersionsDigestGetSecurityRequirement0,
+ };
partial void PrepareOpReadV2EntityProjectOpsObjectIdVersionsDigestGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -61,12 +80,18 @@ partial void ProcessOpReadV2EntityProjectOpsObjectIdVersionsDigestGetResponseCon
digest: ref digest,
eager: ref eager);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_OpReadV2EntityProjectOpsObjectIdVersionsDigestGetSecurityRequirements,
+ operationName: "OpReadV2EntityProjectOpsObjectIdVersionsDigestGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/ops/{objectId}/versions/{digest}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("eager", eager?.ToString().ToLowerInvariant())
- ;
+ ;
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 ProcessOpReadV2EntityProjectOpsObjectIdVersionsDigestGetResponseCon
__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/Weave/Generated/Weave.OpsClient.g.cs b/src/libs/Weave/Generated/Weave.OpsClient.g.cs
index 256125b..43f15c0 100644
--- a/src/libs/Weave/Generated/Weave.OpsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.OpsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class OpsClient : global::Weave.IOpsClient, global::System
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.PathBuilder.g.cs b/src/libs/Weave/Generated/Weave.PathBuilder.g.cs
index df71854..6adf6d5 100644
--- a/src/libs/Weave/Generated/Weave.PathBuilder.g.cs
+++ b/src/libs/Weave/Generated/Weave.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/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs
index 5517109..c5c5354 100644
--- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionCreateV2EntityProjectPredictionsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class PredictionsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_PredictionCreateV2EntityProjectPredictionsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_PredictionCreateV2EntityProjectPredictionsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_PredictionCreateV2EntityProjectPredictionsPostSecurityRequirement0,
+ };
partial void PreparePredictionCreateV2EntityProjectPredictionsPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PredictionCreateV2EntityProjectPredictionsPostSecurityRequirements,
+ operationName: "PredictionCreateV2EntityProjectPredictionsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/predictions",
- baseUri: HttpClient.BaseAddress);
+ baseUri: HttpClient.BaseAddress);
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
@@ -63,7 +88,7 @@ partial void ProcessPredictionCreateV2EntityProjectPredictionsPostResponseConten
__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/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs
index 08c41ec..db2b799 100644
--- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionDeleteV2EntityProjectPredictionsDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class PredictionsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_PredictionDeleteV2EntityProjectPredictionsDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_PredictionDeleteV2EntityProjectPredictionsDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_PredictionDeleteV2EntityProjectPredictionsDeleteSecurityRequirement0,
+ };
partial void PreparePredictionDeleteV2EntityProjectPredictionsDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -50,12 +69,18 @@ partial void ProcessPredictionDeleteV2EntityProjectPredictionsDeleteResponseCont
project: ref project,
predictionIds: predictionIds);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PredictionDeleteV2EntityProjectPredictionsDeleteSecurityRequirements,
+ operationName: "PredictionDeleteV2EntityProjectPredictionsDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/predictions",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("prediction_ids", predictionIds, delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -65,7 +90,7 @@ partial void ProcessPredictionDeleteV2EntityProjectPredictionsDeleteResponseCont
__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/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs
index c386910..c852448 100644
--- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class PredictionsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPostSecurityRequirement0,
+ };
partial void PreparePredictionFinishV2EntityProjectPredictionsPredictionIdFinishPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -48,9 +67,15 @@ partial void ProcessPredictionFinishV2EntityProjectPredictionsPredictionIdFinish
project: ref project,
predictionId: ref predictionId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPostSecurityRequirements,
+ operationName: "PredictionFinishV2EntityProjectPredictionsPredictionIdFinishPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/predictions/{predictionId}/finish",
- 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,
@@ -60,7 +85,7 @@ partial void ProcessPredictionFinishV2EntityProjectPredictionsPredictionIdFinish
__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/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs
index 6ede2d6..99d23af 100644
--- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionListV2EntityProjectPredictionsGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class PredictionsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_PredictionListV2EntityProjectPredictionsGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_PredictionListV2EntityProjectPredictionsGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_PredictionListV2EntityProjectPredictionsGetSecurityRequirement0,
+ };
partial void PreparePredictionListV2EntityProjectPredictionsGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -24,11 +43,6 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
///
/// Prediction List
/// List predictions.
@@ -46,13 +60,13 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task> PredictionListV2EntityProjectPredictionsGetAsync(
+ public async global::System.Collections.Generic.IAsyncEnumerable PredictionListV2EntityProjectPredictionsGetAsync(
string entity,
string project,
string? evaluationRunId = default,
int? limit = default,
int? offset = default,
- global::System.Threading.CancellationToken cancellationToken = default)
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -64,6 +78,12 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
limit: limit,
offset: offset);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PredictionListV2EntityProjectPredictionsGetSecurityRequirements,
+ operationName: "PredictionListV2EntityProjectPredictionsGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/predictions",
baseUri: HttpClient.BaseAddress);
@@ -71,7 +91,7 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
.AddOptionalParameter("evaluation_run_id", evaluationRunId)
.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,
@@ -81,7 +101,7 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
__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")
@@ -111,7 +131,7 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: cancellationToken).ConfigureAwait(false);
ProcessResponse(
@@ -120,38 +140,32 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
ProcessPredictionListV2EntityProjectPredictionsGetResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
- // Validation Error
- if ((int)__response.StatusCode == 422)
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
{
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Weave.HTTPValidationError? __value_422 = null;
+ string? __content = null;
try
{
- if (ReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
}
- catch (global::System.Exception __ex)
+ catch (global::System.Exception)
{
- __exception_422 = __ex;
}
- throw new global::Weave.ApiException(
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
+ throw new global::Weave.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
statusCode: __response.StatusCode)
{
- ResponseBody = __content_422,
- ResponseObject = __value_422,
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
@@ -159,88 +173,35 @@ partial void ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
};
}
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
+ using var __stream = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
- cancellationToken
+ cancellationToken
#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessPredictionListV2EntityProjectPredictionsGetResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
+ ).ConfigureAwait(false);
- try
- {
- __response.EnsureSuccessStatusCode();
+ using var __reader = new global::System.IO.StreamReader(__stream);
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::Weave.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
+ while (!__reader.EndOfStream && !cancellationToken.IsCancellationRequested)
{
- try
+ var __content = await __reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ if (global::System.String.IsNullOrWhiteSpace(__content))
{
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
+ continue;
}
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
- throw new global::Weave.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
+ var __streamedResponse = global::Weave.PredictionReadRes.FromJson(__content, JsonSerializerContext) ??
+ throw new global::Weave.ApiException(
+ message: $"Response deserialization failed for \"{__content}\" ",
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+
+ yield return __streamedResponse;
}
}
}
diff --git a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs
index 9aff5ba..e337fb3 100644
--- a/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.PredictionsClient.PredictionReadV2EntityProjectPredictionsPredictionIdGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class PredictionsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_PredictionReadV2EntityProjectPredictionsPredictionIdGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_PredictionReadV2EntityProjectPredictionsPredictionIdGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_PredictionReadV2EntityProjectPredictionsPredictionIdGetSecurityRequirement0,
+ };
partial void PreparePredictionReadV2EntityProjectPredictionsPredictionIdGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -48,9 +67,15 @@ partial void ProcessPredictionReadV2EntityProjectPredictionsPredictionIdGetRespo
project: ref project,
predictionId: ref predictionId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_PredictionReadV2EntityProjectPredictionsPredictionIdGetSecurityRequirements,
+ operationName: "PredictionReadV2EntityProjectPredictionsPredictionIdGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/predictions/{predictionId}",
- 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,
@@ -60,7 +85,7 @@ partial void ProcessPredictionReadV2EntityProjectPredictionsPredictionIdGetRespo
__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/Weave/Generated/Weave.PredictionsClient.g.cs b/src/libs/Weave/Generated/Weave.PredictionsClient.g.cs
index 704c512..b16d3c2 100644
--- a/src/libs/Weave/Generated/Weave.PredictionsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.PredictionsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class PredictionsClient : global::Weave.IPredictionsClient
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs b/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs
index e81d26c..ae8dc05 100644
--- a/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.RefsClient.RefsReadBatchRefsReadBatchPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class RefsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_RefsReadBatchRefsReadBatchPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_RefsReadBatchRefsReadBatchPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_RefsReadBatchRefsReadBatchPostSecurityRequirement0,
+ };
partial void PrepareRefsReadBatchRefsReadBatchPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.RefsReadBatchReq request);
@@ -40,9 +59,15 @@ partial void ProcessRefsReadBatchRefsReadBatchPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_RefsReadBatchRefsReadBatchPostSecurityRequirements,
+ operationName: "RefsReadBatchRefsReadBatchPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/refs/read_batch",
- 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 ProcessRefsReadBatchRefsReadBatchPostResponseContent(
__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/Weave/Generated/Weave.RefsClient.g.cs b/src/libs/Weave/Generated/Weave.RefsClient.g.cs
index b000c19..8eebe4b 100644
--- a/src/libs/Weave/Generated/Weave.RefsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.RefsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class RefsClient : global::Weave.IRefsClient, global::Syst
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs
index d2b47fb..a58c049 100644
--- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerCreateV2EntityProjectScorersPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScorersClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScorerCreateV2EntityProjectScorersPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScorerCreateV2EntityProjectScorersPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScorerCreateV2EntityProjectScorersPostSecurityRequirement0,
+ };
partial void PrepareScorerCreateV2EntityProjectScorersPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessScorerCreateV2EntityProjectScorersPostResponseContent(
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScorerCreateV2EntityProjectScorersPostSecurityRequirements,
+ operationName: "ScorerCreateV2EntityProjectScorersPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scorers",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessScorerCreateV2EntityProjectScorersPostResponseContent(
__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/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs
index 8cf1e4d..913129a 100644
--- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerDeleteV2EntityProjectScorersObjectIdDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScorersClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScorerDeleteV2EntityProjectScorersObjectIdDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScorerDeleteV2EntityProjectScorersObjectIdDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScorerDeleteV2EntityProjectScorersObjectIdDeleteSecurityRequirement0,
+ };
partial void PrepareScorerDeleteV2EntityProjectScorersObjectIdDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -55,12 +74,18 @@ partial void ProcessScorerDeleteV2EntityProjectScorersObjectIdDeleteResponseCont
objectId: ref objectId,
digests: digests);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScorerDeleteV2EntityProjectScorersObjectIdDeleteSecurityRequirements,
+ operationName: "ScorerDeleteV2EntityProjectScorersObjectIdDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scorers/{objectId}",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("digests", digests?.ToString())
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -70,7 +95,7 @@ partial void ProcessScorerDeleteV2EntityProjectScorersObjectIdDeleteResponseCont
__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/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs
index 06ca86a..a822183 100644
--- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerListV2EntityProjectScorersGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScorersClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScorerListV2EntityProjectScorersGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScorerListV2EntityProjectScorersGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScorerListV2EntityProjectScorersGetSecurityRequirement0,
+ };
partial void PrepareScorerListV2EntityProjectScorersGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -43,9 +62,15 @@ partial void ProcessScorerListV2EntityProjectScorersGetResponseContent(
entity: ref entity,
project: ref project);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScorerListV2EntityProjectScorersGetSecurityRequirements,
+ operationName: "ScorerListV2EntityProjectScorersGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scorers",
- 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,
@@ -55,7 +80,7 @@ partial void ProcessScorerListV2EntityProjectScorersGetResponseContent(
__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/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs
index 4f7fa4c..d1ad020 100644
--- a/src/libs/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScorersClient.ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScorersClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetSecurityRequirement0,
+ };
partial void PrepareScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -53,9 +72,15 @@ partial void ProcessScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetRes
objectId: ref objectId,
digest: ref digest);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetSecurityRequirements,
+ operationName: "ScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scorers/{objectId}/versions/{digest}",
- 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,
@@ -65,7 +90,7 @@ partial void ProcessScorerReadV2EntityProjectScorersObjectIdVersionsDigestGetRes
__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/Weave/Generated/Weave.ScorersClient.g.cs b/src/libs/Weave/Generated/Weave.ScorersClient.g.cs
index b714de9..67ef2c3 100644
--- a/src/libs/Weave/Generated/Weave.ScorersClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScorersClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ScorersClient : global::Weave.IScorersClient, global
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs
index 0cd80ee..8b0d37f 100644
--- a/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScoresClient.CallsScoreCallsScorePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScoresClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_CallsScoreCallsScorePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_CallsScoreCallsScorePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_CallsScoreCallsScorePostSecurityRequirement0,
+ };
partial void PrepareCallsScoreCallsScorePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.CallsScoreReq request);
@@ -40,9 +59,15 @@ partial void ProcessCallsScoreCallsScorePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CallsScoreCallsScorePostSecurityRequirements,
+ operationName: "CallsScoreCallsScorePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/calls/score",
- 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 ProcessCallsScoreCallsScorePostResponseContent(
__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/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs
index f2a79d7..29efb50 100644
--- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreCreateV2EntityProjectScoresPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScoresClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScoreCreateV2EntityProjectScoresPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScoreCreateV2EntityProjectScoresPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScoreCreateV2EntityProjectScoresPostSecurityRequirement0,
+ };
partial void PrepareScoreCreateV2EntityProjectScoresPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -51,9 +70,15 @@ partial void ProcessScoreCreateV2EntityProjectScoresPostResponseContent(
project: ref project,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScoreCreateV2EntityProjectScoresPostSecurityRequirements,
+ operationName: "ScoreCreateV2EntityProjectScoresPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scores",
- 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,
@@ -63,7 +88,7 @@ partial void ProcessScoreCreateV2EntityProjectScoresPostResponseContent(
__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/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs
index 4ea30c0..a08a049 100644
--- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreDeleteV2EntityProjectScoresDelete.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScoresClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScoreDeleteV2EntityProjectScoresDeleteSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScoreDeleteV2EntityProjectScoresDeleteSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScoreDeleteV2EntityProjectScoresDeleteSecurityRequirement0,
+ };
partial void PrepareScoreDeleteV2EntityProjectScoresDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -50,12 +69,18 @@ partial void ProcessScoreDeleteV2EntityProjectScoresDeleteResponseContent(
project: ref project,
scoreIds: scoreIds);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScoreDeleteV2EntityProjectScoresDeleteSecurityRequirements,
+ operationName: "ScoreDeleteV2EntityProjectScoresDeleteAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scores",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("score_ids", scoreIds, delimiter: ",", explode: true)
- ;
+ ;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Delete,
@@ -65,7 +90,7 @@ partial void ProcessScoreDeleteV2EntityProjectScoresDeleteResponseContent(
__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/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs
index 225fef5..cdef7b2 100644
--- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreListV2EntityProjectScoresGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScoresClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScoreListV2EntityProjectScoresGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScoreListV2EntityProjectScoresGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScoreListV2EntityProjectScoresGetSecurityRequirement0,
+ };
partial void PrepareScoreListV2EntityProjectScoresGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -24,11 +43,6 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
- partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
- global::System.Net.Http.HttpClient httpClient,
- global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref string content);
-
///
/// Score List
/// List scores.
@@ -46,13 +60,13 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task> ScoreListV2EntityProjectScoresGetAsync(
+ public async global::System.Collections.Generic.IAsyncEnumerable ScoreListV2EntityProjectScoresGetAsync(
string entity,
string project,
string? evaluationRunId = default,
int? limit = default,
int? offset = default,
- global::System.Threading.CancellationToken cancellationToken = default)
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
@@ -64,6 +78,12 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
limit: limit,
offset: offset);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScoreListV2EntityProjectScoresGetSecurityRequirements,
+ operationName: "ScoreListV2EntityProjectScoresGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scores",
baseUri: HttpClient.BaseAddress);
@@ -71,7 +91,7 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
.AddOptionalParameter("evaluation_run_id", evaluationRunId)
.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,
@@ -81,7 +101,7 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
__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")
@@ -111,7 +131,7 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
- completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
cancellationToken: cancellationToken).ConfigureAwait(false);
ProcessResponse(
@@ -120,38 +140,32 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
ProcessScoreListV2EntityProjectScoresGetResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
- // Validation Error
- if ((int)__response.StatusCode == 422)
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ }
+ catch (global::System.Net.Http.HttpRequestException __ex)
{
- string? __content_422 = null;
- global::System.Exception? __exception_422 = null;
- global::Weave.HTTPValidationError? __value_422 = null;
+ string? __content = null;
try
{
- if (ReadResponseAsString)
- {
- __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
- else
- {
- __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
-
- __value_422 = global::Weave.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
- }
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
}
- catch (global::System.Exception __ex)
+ catch (global::System.Exception)
{
- __exception_422 = __ex;
}
- throw new global::Weave.ApiException(
- message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __exception_422,
+ throw new global::Weave.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
statusCode: __response.StatusCode)
{
- ResponseBody = __content_422,
- ResponseObject = __value_422,
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
@@ -159,88 +173,35 @@ partial void ProcessScoreListV2EntityProjectScoresGetResponseContent(
};
}
- if (ReadResponseAsString)
- {
- var __content = await __response.Content.ReadAsStringAsync(
+ using var __stream = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
- cancellationToken
+ cancellationToken
#endif
- ).ConfigureAwait(false);
-
- ProcessResponseContent(
- client: HttpClient,
- response: __response,
- content: ref __content);
- ProcessScoreListV2EntityProjectScoresGetResponseContent(
- httpClient: HttpClient,
- httpResponseMessage: __response,
- content: ref __content);
+ ).ConfigureAwait(false);
- try
- {
- __response.EnsureSuccessStatusCode();
+ using var __reader = new global::System.IO.StreamReader(__stream);
- return
- (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ??
- throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
- }
- catch (global::System.Exception __ex)
- {
- throw new global::Weave.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
- }
- else
+ while (!__reader.EndOfStream && !cancellationToken.IsCancellationRequested)
{
- try
+ var __content = await __reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ if (global::System.String.IsNullOrWhiteSpace(__content))
{
- __response.EnsureSuccessStatusCode();
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
- return
- (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ??
- throw new global::System.InvalidOperationException("Response deserialization failed.");
+ continue;
}
- catch (global::System.Exception __ex)
- {
- string? __content = null;
- try
- {
- __content = await __response.Content.ReadAsStringAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
- }
- catch (global::System.Exception)
- {
- }
- throw new global::Weave.ApiException(
- message: __content ?? __response.ReasonPhrase ?? string.Empty,
- innerException: __ex,
- statusCode: __response.StatusCode)
- {
- ResponseBody = __content,
- ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
- __response.Headers,
- h => h.Key,
- h => h.Value),
- };
- }
+ var __streamedResponse = global::Weave.ScoreReadRes.FromJson(__content, JsonSerializerContext) ??
+ throw new global::Weave.ApiException(
+ message: $"Response deserialization failed for \"{__content}\" ",
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+
+ yield return __streamedResponse;
}
}
}
diff --git a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs
index adfdec2..1079827 100644
--- a/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScoresClient.ScoreReadV2EntityProjectScoresScoreIdGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ScoresClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ScoreReadV2EntityProjectScoresScoreIdGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ScoreReadV2EntityProjectScoresScoreIdGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ScoreReadV2EntityProjectScoresScoreIdGetSecurityRequirement0,
+ };
partial void PrepareScoreReadV2EntityProjectScoresScoreIdGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string entity,
@@ -48,9 +67,15 @@ partial void ProcessScoreReadV2EntityProjectScoresScoreIdGetResponseContent(
project: ref project,
scoreId: ref scoreId);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ScoreReadV2EntityProjectScoresScoreIdGetSecurityRequirements,
+ operationName: "ScoreReadV2EntityProjectScoresScoreIdGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: $"/v2/{entity}/{project}/scores/{scoreId}",
- 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,
@@ -60,7 +85,7 @@ partial void ProcessScoreReadV2EntityProjectScoresScoreIdGetResponseContent(
__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/Weave/Generated/Weave.ScoresClient.g.cs b/src/libs/Weave/Generated/Weave.ScoresClient.g.cs
index d1987ec..bfa5f72 100644
--- a/src/libs/Weave/Generated/Weave.ScoresClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ScoresClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ScoresClient : global::Weave.IScoresClient, global::
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.Security.g.cs b/src/libs/Weave/Generated/Weave.Security.g.cs
new file mode 100644
index 0000000..72e19f3
--- /dev/null
+++ b/src/libs/Weave/Generated/Weave.Security.g.cs
@@ -0,0 +1,145 @@
+#nullable enable
+
+namespace Weave
+{
+ 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/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs
index c1e9ea8..ddbcc4c 100644
--- a/src/libs/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ServiceClient.GetCallerLocationGeolocateGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ServiceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_GetCallerLocationGeolocateGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_GetCallerLocationGeolocateGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_GetCallerLocationGeolocateGetSecurityRequirement0,
+ };
partial void PrepareGetCallerLocationGeolocateGetArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? ip);
@@ -41,12 +60,18 @@ partial void ProcessGetCallerLocationGeolocateGetResponseContent(
httpClient: HttpClient,
ip: ref ip);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_GetCallerLocationGeolocateGetSecurityRequirements,
+ operationName: "GetCallerLocationGeolocateGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/geolocate",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("ip", ip)
- ;
+ ;
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 ProcessGetCallerLocationGeolocateGetResponseContent(
__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/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs
index 9a9c324..721a76c 100644
--- a/src/libs/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ServiceClient.ProjectsInfoServiceProjectsInfoPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ServiceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ProjectsInfoServiceProjectsInfoPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ProjectsInfoServiceProjectsInfoPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ProjectsInfoServiceProjectsInfoPostSecurityRequirement0,
+ };
partial void PrepareProjectsInfoServiceProjectsInfoPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ProjectsInfoReq request);
@@ -40,9 +59,15 @@ partial void ProcessProjectsInfoServiceProjectsInfoPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ProjectsInfoServiceProjectsInfoPostSecurityRequirements,
+ operationName: "ProjectsInfoServiceProjectsInfoPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/service/projects_info",
- 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 ProcessProjectsInfoServiceProjectsInfoPostResponseContent(
__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/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs
index b61092c..f18f19c 100644
--- a/src/libs/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ServiceClient.ReadRootHealthGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ServiceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ReadRootHealthGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ReadRootHealthGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ReadRootHealthGetSecurityRequirement0,
+ };
partial void PrepareReadRootHealthGetArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareReadRootHealthGetRequest(
@@ -32,9 +51,15 @@ partial void ProcessReadRootHealthGetResponseContent(
PrepareReadRootHealthGetArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ReadRootHealthGetSecurityRequirements,
+ operationName: "ReadRootHealthGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/health",
- 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 ProcessReadRootHealthGetResponseContent(
__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/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs
index ea7c231..65c495f 100644
--- a/src/libs/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ServiceClient.ReadVersionVersionGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ServiceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ReadVersionVersionGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ReadVersionVersionGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ReadVersionVersionGetSecurityRequirement0,
+ };
partial void PrepareReadVersionVersionGetArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareReadVersionVersionGetRequest(
@@ -32,9 +51,15 @@ partial void ProcessReadVersionVersionGetResponseContent(
PrepareReadVersionVersionGetArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ReadVersionVersionGetSecurityRequirements,
+ operationName: "ReadVersionVersionGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/version",
- 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 ProcessReadVersionVersionGetResponseContent(
__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/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs
index f6ef110..926d373 100644
--- a/src/libs/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs
+++ b/src/libs/Weave/Generated/Weave.ServiceClient.ServerInfoServerInfoGet.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ServiceClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ServerInfoServerInfoGetSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ServerInfoServerInfoGetSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ServerInfoServerInfoGetSecurityRequirement0,
+ };
partial void PrepareServerInfoServerInfoGetArguments(
global::System.Net.Http.HttpClient httpClient);
partial void PrepareServerInfoServerInfoGetRequest(
@@ -32,9 +51,15 @@ partial void ProcessServerInfoServerInfoGetResponseContent(
PrepareServerInfoServerInfoGetArguments(
httpClient: HttpClient);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ServerInfoServerInfoGetSecurityRequirements,
+ operationName: "ServerInfoServerInfoGetAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/server_info",
- 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 ProcessServerInfoServerInfoGetResponseContent(
__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/Weave/Generated/Weave.ServiceClient.g.cs b/src/libs/Weave/Generated/Weave.ServiceClient.g.cs
index d435b72..c5eac89 100644
--- a/src/libs/Weave/Generated/Weave.ServiceClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ServiceClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ServiceClient : global::Weave.IServiceClient, global
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs
index 3778408..b3605fb 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateFromDigestsTableCreateFromDigestsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class TablesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TableCreateFromDigestsTableCreateFromDigestsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TableCreateFromDigestsTableCreateFromDigestsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TableCreateFromDigestsTableCreateFromDigestsPostSecurityRequirement0,
+ };
partial void PrepareTableCreateFromDigestsTableCreateFromDigestsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TableCreateFromDigestsReq request);
@@ -40,9 +59,15 @@ partial void ProcessTableCreateFromDigestsTableCreateFromDigestsPostResponseCont
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TableCreateFromDigestsTableCreateFromDigestsPostSecurityRequirements,
+ operationName: "TableCreateFromDigestsTableCreateFromDigestsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/table/create_from_digests",
- 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 ProcessTableCreateFromDigestsTableCreateFromDigestsPostResponseCont
__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/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs
index abf0f3d..3e62831 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.TableCreateTableCreatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class TablesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TableCreateTableCreatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TableCreateTableCreatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TableCreateTableCreatePostSecurityRequirement0,
+ };
partial void PrepareTableCreateTableCreatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TableCreateReq request);
@@ -40,9 +59,15 @@ partial void ProcessTableCreateTableCreatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TableCreateTableCreatePostSecurityRequirements,
+ operationName: "TableCreateTableCreatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/table/create",
- 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 ProcessTableCreateTableCreatePostResponseContent(
__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/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs
index 1d914f1..d022e85 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsBatchTableQueryStatsBatchPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class TablesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TableQueryStatsBatchTableQueryStatsBatchPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TableQueryStatsBatchTableQueryStatsBatchPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TableQueryStatsBatchTableQueryStatsBatchPostSecurityRequirement0,
+ };
partial void PrepareTableQueryStatsBatchTableQueryStatsBatchPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TableQueryStatsBatchReq request);
@@ -40,9 +59,15 @@ partial void ProcessTableQueryStatsBatchTableQueryStatsBatchPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TableQueryStatsBatchTableQueryStatsBatchPostSecurityRequirements,
+ operationName: "TableQueryStatsBatchTableQueryStatsBatchPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/table/query_stats_batch",
- 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 ProcessTableQueryStatsBatchTableQueryStatsBatchPostResponseContent(
__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/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs
index 18a1a19..c488e1f 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryStatsTableQueryStatsPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class TablesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TableQueryStatsTableQueryStatsPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TableQueryStatsTableQueryStatsPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TableQueryStatsTableQueryStatsPostSecurityRequirement0,
+ };
partial void PrepareTableQueryStatsTableQueryStatsPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TableQueryStatsReq request);
@@ -40,9 +59,15 @@ partial void ProcessTableQueryStatsTableQueryStatsPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TableQueryStatsTableQueryStatsPostSecurityRequirements,
+ operationName: "TableQueryStatsTableQueryStatsPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/table/query_stats",
- 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 ProcessTableQueryStatsTableQueryStatsPostResponseContent(
__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/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs
index 2eadb1c..5f7b6ba 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.TableQueryTableQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class TablesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TableQueryTableQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TableQueryTableQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TableQueryTableQueryPostSecurityRequirement0,
+ };
partial void PrepareTableQueryTableQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TableQueryReq request);
@@ -40,9 +59,15 @@ partial void ProcessTableQueryTableQueryPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TableQueryTableQueryPostSecurityRequirements,
+ operationName: "TableQueryTableQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/table/query",
- 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 ProcessTableQueryTableQueryPostResponseContent(
__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/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs
index 31a6e79..ea2cccb 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.TableUpdateTableUpdatePost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class TablesClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_TableUpdateTableUpdatePostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_TableUpdateTableUpdatePostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_TableUpdateTableUpdatePostSecurityRequirement0,
+ };
partial void PrepareTableUpdateTableUpdatePostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.TableUpdateReq request);
@@ -40,9 +59,15 @@ partial void ProcessTableUpdateTableUpdatePostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_TableUpdateTableUpdatePostSecurityRequirements,
+ operationName: "TableUpdateTableUpdatePostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/table/update",
- 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 ProcessTableUpdateTableUpdatePostResponseContent(
__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/Weave/Generated/Weave.TablesClient.g.cs b/src/libs/Weave/Generated/Weave.TablesClient.g.cs
index ae593c3..fe237a9 100644
--- a/src/libs/Weave/Generated/Weave.TablesClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.TablesClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class TablesClient : global::Weave.ITablesClient, global::
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs b/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs
index c509280..5c0efa6 100644
--- a/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs
+++ b/src/libs/Weave/Generated/Weave.ThreadsClient.ThreadsQueryStreamThreadsStreamQueryPost.g.cs
@@ -5,6 +5,25 @@ namespace Weave
{
public partial class ThreadsClient
{
+
+
+ private static readonly global::Weave.EndPointSecurityRequirement s_ThreadsQueryStreamThreadsStreamQueryPostSecurityRequirement0 =
+ new global::Weave.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Weave.EndPointAuthorizationRequirement[]
+ { new global::Weave.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Weave.EndPointSecurityRequirement[] s_ThreadsQueryStreamThreadsStreamQueryPostSecurityRequirements =
+ new global::Weave.EndPointSecurityRequirement[]
+ { s_ThreadsQueryStreamThreadsStreamQueryPostSecurityRequirement0,
+ };
partial void PrepareThreadsQueryStreamThreadsStreamQueryPostArguments(
global::System.Net.Http.HttpClient httpClient,
global::Weave.ThreadsQueryReq request);
@@ -40,9 +59,15 @@ partial void ProcessThreadsQueryStreamThreadsStreamQueryPostResponseContent(
httpClient: HttpClient,
request: request);
+
+ var __authorizations = global::Weave.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_ThreadsQueryStreamThreadsStreamQueryPostSecurityRequirements,
+ operationName: "ThreadsQueryStreamThreadsStreamQueryPostAsync");
+
var __pathBuilder = new global::Weave.PathBuilder(
path: "/threads/stream_query",
- 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 ProcessThreadsQueryStreamThreadsStreamQueryPostResponseContent(
__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/Weave/Generated/Weave.ThreadsClient.g.cs b/src/libs/Weave/Generated/Weave.ThreadsClient.g.cs
index 633229a..4a85128 100644
--- a/src/libs/Weave/Generated/Weave.ThreadsClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.ThreadsClient.g.cs
@@ -12,7 +12,7 @@ public sealed partial class ThreadsClient : global::Weave.IThreadsClient, global
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;
diff --git a/src/libs/Weave/Generated/Weave.WeaveClient.Authorizations.Bearer.g.cs b/src/libs/Weave/Generated/Weave.WeaveClient.Authorizations.Bearer.g.cs
index df0f81a..bebf059 100644
--- a/src/libs/Weave/Generated/Weave.WeaveClient.Authorizations.Bearer.g.cs
+++ b/src/libs/Weave/Generated/Weave.WeaveClient.Authorizations.Bearer.g.cs
@@ -5,13 +5,23 @@ namespace Weave
{
public sealed partial class WeaveClient
{
+
///
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::Weave.EndPointAuthorization
{
Type = "Http",
diff --git a/src/libs/Weave/Generated/Weave.WeaveClient.Constructors.Bearer.g.cs b/src/libs/Weave/Generated/Weave.WeaveClient.Constructors.Bearer.g.cs
index 26de8be..b59cca2 100644
--- a/src/libs/Weave/Generated/Weave.WeaveClient.Constructors.Bearer.g.cs
+++ b/src/libs/Weave/Generated/Weave.WeaveClient.Constructors.Bearer.g.cs
@@ -6,6 +6,7 @@ namespace Weave
public sealed partial class WeaveClient
{
///
+
public WeaveClient(
string apiKey,
global::System.Net.Http.HttpClient? httpClient = null,
diff --git a/src/libs/Weave/Generated/Weave.WeaveClient.g.cs b/src/libs/Weave/Generated/Weave.WeaveClient.g.cs
index f283149..a384d26 100644
--- a/src/libs/Weave/Generated/Weave.WeaveClient.g.cs
+++ b/src/libs/Weave/Generated/Weave.WeaveClient.g.cs
@@ -13,7 +13,7 @@ public sealed partial class WeaveClient : global::Weave.IWeaveClient, global::Sy
///
///
///
- public const string DefaultBaseUrl = "https://trace.wandb.ai";
+ public const string DefaultBaseUrl = "https://trace.wandb.ai/";
private bool _disposeHttpClient = true;