Just some more circular dep cleanup

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2025-06-25 10:10:49 +02:00
parent 129cf06d8c
commit 3507fcdf89
35 changed files with 102 additions and 85 deletions
@@ -0,0 +1,30 @@
/*
* Copyright 2025 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EvaluatePermissionRequest, EvaluatePermissionResponse } from './api';
import { AuthorizeRequestOptions } from './permission';
/**
* A client interacting with the permission backend can implement this authorizer interface.
* @public
* @deprecated Use {@link @backstage/plugin-permission-common#PermissionEvaluator} instead
*/
export interface PermissionAuthorizer {
authorize(
requests: EvaluatePermissionRequest[],
options?: AuthorizeRequestOptions,
): Promise<EvaluatePermissionResponse[]>;
}
+1 -1
View File
@@ -48,8 +48,8 @@ export type {
BasicPermission,
PermissionAttributes,
Permission,
PermissionAuthorizer,
PermissionBase,
ResourcePermission,
AuthorizeRequestOptions,
} from './permission';
export type { PermissionAuthorizer } from './deprecated';
@@ -14,8 +14,6 @@
* limitations under the License.
*/
import { EvaluatePermissionRequest, EvaluatePermissionResponse } from './api';
/**
* The attributes related to a given permission; these should be generic and widely applicable to
* all permissions in the system.
@@ -88,18 +86,6 @@ export type ResourcePermission<TResourceType extends string = string> =
}
>;
/**
* A client interacting with the permission backend can implement this authorizer interface.
* @public
* @deprecated Use {@link @backstage/plugin-permission-common#PermissionEvaluator} instead
*/
export interface PermissionAuthorizer {
authorize(
requests: EvaluatePermissionRequest[],
options?: AuthorizeRequestOptions,
): Promise<EvaluatePermissionResponse[]>;
}
/**
* Options for authorization requests.
* @public