@backstage/plugin-permission-common 0.8.1-next.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/index.d.ts +11 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @backstage/plugin-permission-common
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- df784fe: Add the MetadataResponse type from @backstage/plugin-permission-node, since this
|
|
8
|
+
type might be used in frontend code.
|
|
9
|
+
- 137fa34: Add the MetadataResponseSerializedRule type from @backstage/plugin-permission-node, since this type might be used in frontend code.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/config@1.2.0
|
|
12
|
+
- @backstage/errors@1.2.4
|
|
13
|
+
- @backstage/types@1.1.1
|
|
14
|
+
|
|
15
|
+
## 0.8.1-next.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- df784fe: Add the MetadataResponse type from @backstage/plugin-permission-node, since this
|
|
20
|
+
type might be used in frontend code.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/config@1.2.0
|
|
23
|
+
- @backstage/errors@1.2.4
|
|
24
|
+
- @backstage/types@1.1.1
|
|
25
|
+
|
|
3
26
|
## 0.8.1-next.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -320,6 +320,16 @@ type MetadataResponseSerializedRule = {
|
|
|
320
320
|
resourceType: string;
|
|
321
321
|
paramsSchema?: ReturnType<typeof zodToJsonSchema>;
|
|
322
322
|
};
|
|
323
|
+
/**
|
|
324
|
+
* Response type for the .metadata endpoint in
|
|
325
|
+
* {@link @backstage/plugin-permission-node#createPermissionIntegrationRouter}
|
|
326
|
+
*
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
type MetadataResponse = {
|
|
330
|
+
permissions?: Permission[];
|
|
331
|
+
rules: MetadataResponseSerializedRule[];
|
|
332
|
+
};
|
|
323
333
|
|
|
324
334
|
/**
|
|
325
335
|
* Check if the two parameters are equivalent permissions.
|
|
@@ -412,4 +422,4 @@ declare class PermissionClient implements PermissionEvaluator {
|
|
|
412
422
|
private getAuthorizationHeader;
|
|
413
423
|
}
|
|
414
424
|
|
|
415
|
-
export { type AllOfCriteria, type AnyOfCriteria, type AuthorizePermissionRequest, type AuthorizePermissionResponse, type AuthorizeRequestOptions, AuthorizeResult, type BasicPermission, type ConditionalPolicyDecision, type DefinitivePolicyDecision, type DiscoveryApi, type EvaluatePermissionRequest, type EvaluatePermissionRequestBatch, type EvaluatePermissionResponse, type EvaluatePermissionResponseBatch, type EvaluatorRequestOptions, type IdentifiedPermissionMessage, type MetadataResponseSerializedRule, type NotCriteria, type Permission, type PermissionAttributes, type PermissionAuthorizer, type PermissionBase, PermissionClient, type PermissionClientRequestOptions, type PermissionCondition, type PermissionCriteria, type PermissionEvaluator, type PermissionMessageBatch, type PermissionRuleParam, type PermissionRuleParams, type PolicyDecision, type QueryPermissionRequest, type QueryPermissionResponse, type ResourcePermission, createPermission, isCreatePermission, isDeletePermission, isPermission, isReadPermission, isResourcePermission, isUpdatePermission, toPermissionEvaluator };
|
|
425
|
+
export { type AllOfCriteria, type AnyOfCriteria, type AuthorizePermissionRequest, type AuthorizePermissionResponse, type AuthorizeRequestOptions, AuthorizeResult, type BasicPermission, type ConditionalPolicyDecision, type DefinitivePolicyDecision, type DiscoveryApi, type EvaluatePermissionRequest, type EvaluatePermissionRequestBatch, type EvaluatePermissionResponse, type EvaluatePermissionResponseBatch, type EvaluatorRequestOptions, type IdentifiedPermissionMessage, type MetadataResponse, type MetadataResponseSerializedRule, type NotCriteria, type Permission, type PermissionAttributes, type PermissionAuthorizer, type PermissionBase, PermissionClient, type PermissionClientRequestOptions, type PermissionCondition, type PermissionCriteria, type PermissionEvaluator, type PermissionMessageBatch, type PermissionRuleParam, type PermissionRuleParams, type PolicyDecision, type QueryPermissionRequest, type QueryPermissionResponse, type ResourcePermission, createPermission, isCreatePermission, isDeletePermission, isPermission, isReadPermission, isResourcePermission, isUpdatePermission, toPermissionEvaluator };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-permission-common",
|
|
3
|
-
"version": "0.8.1
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Isomorphic types and client for Backstage permissions and authorization",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "common-library",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"zod-to-json-schema": "^3.20.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@backstage/cli": "^0.27.0
|
|
60
|
+
"@backstage/cli": "^0.27.0",
|
|
61
61
|
"msw": "^1.0.0"
|
|
62
62
|
},
|
|
63
63
|
"configSchema": "config.d.ts",
|