Remove duplicate type

Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
Joe Porpeglia
2022-03-24 12:03:43 -04:00
committed by Joe Porpeglia
parent 55f72c4445
commit 678d81a6d5
2 changed files with 9 additions and 14 deletions
+1 -8
View File
@@ -72,14 +72,7 @@ export type EvaluatePermissionRequestBatch =
PermissionMessageBatch<EvaluatePermissionRequest>;
// @public
export type EvaluatePermissionResponse =
| {
result: AuthorizeResult.ALLOW | AuthorizeResult.DENY;
}
| {
result: AuthorizeResult.CONDITIONAL;
conditions: PermissionCriteria<PermissionCondition>;
};
export type EvaluatePermissionResponse = PolicyDecision;
// @public
export type EvaluatePermissionResponseBatch =
+8 -6
View File
@@ -161,14 +161,16 @@ export type EvaluatePermissionRequestBatch =
/**
* An individual response from the permission backend.
*
* @remarks
*
* This response type is an alias of {@link PolicyDecision} to maintain separation between the
* {@link @backstage/plugin-permission-node#PermissionPolicy} interface and the permission backend
* api. They may diverge at some point in the future. The response
*
* @public
*/
export type EvaluatePermissionResponse =
| { result: AuthorizeResult.ALLOW | AuthorizeResult.DENY }
| {
result: AuthorizeResult.CONDITIONAL;
conditions: PermissionCriteria<PermissionCondition>;
};
export type EvaluatePermissionResponse = PolicyDecision;
/**
* A batch of responses from the permission backend.