@backstage/plugin-permission-common
Advanced tools
Comparing version 0.0.0-nightly-20240716021845 to 0.0.0-nightly-20240730021827
# @backstage/plugin-permission-common | ||
## 0.0.0-nightly-20240716021845 | ||
## 0.0.0-nightly-20240730021827 | ||
### Patch Changes | ||
- 137fa34: Add the MetadataResponseSerializedRule type from @backstage/plugin-permission-node, since this type might be used in frontend code. | ||
- Updated dependencies | ||
- @backstage/config@1.2.0 | ||
- @backstage/errors@1.2.4 | ||
- @backstage/types@1.1.1 | ||
## 0.8.0 | ||
### Minor Changes | ||
@@ -6,0 +16,0 @@ |
import { JsonPrimitive } from '@backstage/types'; | ||
import zodToJsonSchema from 'zod-to-json-schema'; | ||
import { Config } from '@backstage/config'; | ||
@@ -311,2 +312,15 @@ | ||
/** | ||
* Serialized permission rules, with the paramsSchema | ||
* converted from a ZodSchema to a JsonSchema. | ||
* | ||
* @public | ||
*/ | ||
type MetadataResponseSerializedRule = { | ||
name: string; | ||
description: string; | ||
resourceType: string; | ||
paramsSchema?: ReturnType<typeof zodToJsonSchema>; | ||
}; | ||
/** | ||
* Check if the two parameters are equivalent permissions. | ||
@@ -402,2 +416,2 @@ * @public | ||
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 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 }; | ||
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 }; |
{ | ||
"name": "@backstage/plugin-permission-common", | ||
"version": "0.0.0-nightly-20240716021845", | ||
"version": "0.0.0-nightly-20240730021827", | ||
"description": "Isomorphic types and client for Backstage permissions and authorization", | ||
@@ -56,6 +56,7 @@ "backstage": { | ||
"uuid": "^9.0.0", | ||
"zod": "^3.22.4" | ||
"zod": "^3.22.4", | ||
"zod-to-json-schema": "^3.20.4" | ||
}, | ||
"devDependencies": { | ||
"@backstage/cli": "^0.0.0-nightly-20240716021845", | ||
"@backstage/cli": "^0.0.0-nightly-20240730021827", | ||
"msw": "^1.0.0" | ||
@@ -62,0 +63,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94499
798
7
+ Addedzod-to-json-schema@^3.20.4
+ Addedzod-to-json-schema@3.24.1(transitive)