diff --git a/src/libs/Greptile/Generated/Greptile.Models.ErrorResponse.g.cs b/src/libs/Greptile/Generated/Greptile.Models.ErrorResponse.g.cs
index 4b0eac6..bfef3ca 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.ErrorResponse.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.ErrorResponse.g.cs
@@ -52,5 +52,6 @@ public ErrorResponse(
public ErrorResponse()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryRequest.g.cs b/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryRequest.g.cs
index 45c8d35..e284d43 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryRequest.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryRequest.g.cs
@@ -102,5 +102,6 @@ public IndexRepositoryRequest(
public IndexRepositoryRequest()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryResponse.g.cs b/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryResponse.g.cs
index 172bcb6..ac49939 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryResponse.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.IndexRepositoryResponse.g.cs
@@ -72,5 +72,6 @@ public IndexRepositoryResponse(
public IndexRepositoryResponse()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.QueryMessage.g.cs b/src/libs/Greptile/Generated/Greptile.Models.QueryMessage.g.cs
index f056138..f756a59 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.QueryMessage.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.QueryMessage.g.cs
@@ -75,5 +75,6 @@ public QueryMessage(
public QueryMessage()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.QueryRequest.g.cs b/src/libs/Greptile/Generated/Greptile.Models.QueryRequest.g.cs
index 1fd1775..e48b0d8 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.QueryRequest.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.QueryRequest.g.cs
@@ -94,5 +94,6 @@ public QueryRequest(
public QueryRequest()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.QueryResponse.g.cs b/src/libs/Greptile/Generated/Greptile.Models.QueryResponse.g.cs
index eac77ae..7137510 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.QueryResponse.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.QueryResponse.g.cs
@@ -63,5 +63,6 @@ public QueryResponse(
public QueryResponse()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.RepositoryInfo.g.cs b/src/libs/Greptile/Generated/Greptile.Models.RepositoryInfo.g.cs
index 426721d..da3a212 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.RepositoryInfo.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.RepositoryInfo.g.cs
@@ -148,5 +148,6 @@ public RepositoryInfo(
public RepositoryInfo()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.RepositoryRef.g.cs b/src/libs/Greptile/Generated/Greptile.Models.RepositoryRef.g.cs
index e79dddd..df8f82e 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.RepositoryRef.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.RepositoryRef.g.cs
@@ -76,5 +76,6 @@ public RepositoryRef(
public RepositoryRef()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.SearchRequest.g.cs b/src/libs/Greptile/Generated/Greptile.Models.SearchRequest.g.cs
index ed3ca17..aecb335 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.SearchRequest.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.SearchRequest.g.cs
@@ -78,5 +78,6 @@ public SearchRequest(
public SearchRequest()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.SearchResponse.g.cs b/src/libs/Greptile/Generated/Greptile.Models.SearchResponse.g.cs
index 0ca7b1f..bc22245 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.SearchResponse.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.SearchResponse.g.cs
@@ -41,5 +41,6 @@ public SearchResponse(
public SearchResponse()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.Models.Source.g.cs b/src/libs/Greptile/Generated/Greptile.Models.Source.g.cs
index 84dc8d4..41e6f3a 100644
--- a/src/libs/Greptile/Generated/Greptile.Models.Source.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.Models.Source.g.cs
@@ -139,5 +139,6 @@ public Source(
public Source()
{
}
+
}
}
\ No newline at end of file
diff --git a/src/libs/Greptile/Generated/Greptile.OptionsSupport.g.cs b/src/libs/Greptile/Generated/Greptile.OptionsSupport.g.cs
index bcd52b8..4f3c509 100644
--- a/src/libs/Greptile/Generated/Greptile.OptionsSupport.g.cs
+++ b/src/libs/Greptile/Generated/Greptile.OptionsSupport.g.cs
@@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Greptile.AutoSDKH
{
context = context ?? throw new global::System.ArgumentNullException(nameof(context));
+ if (context.Request == null)
+ {
+ return;
+ }
+
+ var perRequest = context.RequestOptions?.Authorizations;
+ if (perRequest != null && perRequest.Count > 0)
+ {
+ for (var index = 0; index < perRequest.Count; index++)
+ {
+ ApplyAuthorization(context.Request, perRequest[index]);
+ }
+
+ return;
+ }
+
var provider = context.ClientOptions?.AuthorizationProvider;
- if (provider == null || context.Request == null)
+ if (provider == null)
{
return;
}
@@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions
/// Overrides response buffering for this request when set.
///
public bool? ReadResponseAsString { get; set; }
+
+ ///
+ /// Optional per-request authorization values. When non-empty, the built-in
+ /// applies these instead of consulting
+ /// for this request only.
+ /// Useful for multi-tenant routing or "act-as" admin tooling that needs a different
+ /// credential per call without mutating shared client state.
+ ///
+ public global::System.Collections.Generic.IReadOnlyList? Authorizations { get; set; }
}
///