audit, advisories and doctors/setup work
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StellaOps.Policy.Gateway.Contracts;
|
||||
|
||||
public sealed record ToolAccessRequest
|
||||
{
|
||||
public string? TenantId { get; init; }
|
||||
public string? Tool { get; init; }
|
||||
public string? Action { get; init; }
|
||||
public string? Resource { get; init; }
|
||||
public IReadOnlyList<string>? Scopes { get; init; }
|
||||
public IReadOnlyList<string>? Roles { get; init; }
|
||||
}
|
||||
|
||||
public sealed record ToolAccessResponse
|
||||
{
|
||||
public bool Allowed { get; init; }
|
||||
public string Reason { get; init; } = string.Empty;
|
||||
public string? RuleId { get; init; }
|
||||
public string? RuleEffect { get; init; }
|
||||
public IReadOnlyList<string> RequiredScopes { get; init; } = Array.Empty<string>();
|
||||
public IReadOnlyList<string> RequiredRoles { get; init; } = Array.Empty<string>();
|
||||
}
|
||||
Reference in New Issue
Block a user