Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public APIKeyMetadata(
public APIKeyMetadata()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public AlertConfig(
public AlertConfig()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public ConfidenceAdjustment(
public ConfidenceAdjustment()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ public ContextRule(
public ContextRule()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public CryptoConfig(
public CryptoConfig()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ public DetectionRule(
public DetectionRule()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,6 @@ public Detector(
public Detector()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public DetectorMetadata(
public DetectorMetadata()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public EmailAlert(
public EmailAlert()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ public ErrorResponse(
public ErrorResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class ErrorResponseAdditionalData
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@ public ExclusionRule(
public ExclusionRule()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ public FileScanPolicy(
public FileScanPolicy()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ public Finding(
public Finding()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ public FindingLocation(
public FindingLocation()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public FindingMetadata(
public FindingMetadata()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class InfoTypeSubstitutionConfig
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public InitFileUploadRequest(
public InitFileUploadRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ public InitFileUploadResponse(
public InitFileUploadResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public LocationRange(
public LocationRange()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ public MaskConfig(
public MaskConfig()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ public Proximity(
public Proximity()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ public RedactionConfig(
public RedactionConfig()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ public Regex(
public Regex()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public ScanFileRequest(
public ScanFileRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public ScanFileResponse(
public ScanFileResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ public ScanPolicy(
public ScanPolicy()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ public ScanTextRequest(
public ScanTextRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ public ScanTextResponse(
public ScanTextResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public SlackAlert(
public SlackAlert()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ public SubstitutionConfig(
public SubstitutionConfig()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public WebhookAlert(
public WebhookAlert()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ public WordList(
public WordList()
{
}

}
}
27 changes: 26 additions & 1 deletion src/libs/NightfallAI/Generated/NightfallAI.OptionsSupport.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,24 @@ public sealed class AutoSDKAuthorizationProviderHook : global::NightfallAI.AutoS
{
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;
}
Expand Down Expand Up @@ -237,6 +253,15 @@ public sealed class AutoSDKRequestOptions
/// Overrides response buffering for this request when set.
/// </summary>
public bool? ReadResponseAsString { get; set; }

/// <summary>
/// Optional per-request authorization values. When non-empty, the built-in
/// <see cref="AutoSDKAuthorizationProviderHook"/> applies these instead of consulting
/// <see cref="AutoSDKClientOptions.AuthorizationProvider"/> 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.
/// </summary>
public global::System.Collections.Generic.IReadOnlyList<global::NightfallAI.AutoSDKAuthorizationValue>? Authorizations { get; set; }
}

/// <summary>
Expand Down