@contember/schema
Advanced tools
Comparing version 1.1.0-rc.0 to 1.2.0-alpha.1
@@ -51,14 +51,16 @@ import Input from './input'; | ||
type StagesDefinition = AnyStage | readonly string[]; | ||
type TenantManagedVariableSource = true | string; | ||
type TenantManagePermissions = { | ||
readonly [role: string]: { | ||
readonly variables?: true | { | ||
readonly [targetVariable: string]: TenantManagedVariableSource; | ||
}; | ||
}; | ||
type MembershipVariableMatchRule = true | string; | ||
type MembershipVariablesMatchRule = true | { | ||
readonly [targetVariable: string]: MembershipVariableMatchRule; | ||
}; | ||
type MembershipRoleMatchRule = true | { | ||
readonly variables?: MembershipVariablesMatchRule; | ||
}; | ||
type MembershipMatchRule = { | ||
readonly [role: string]: MembershipRoleMatchRule; | ||
}; | ||
type TenantPermissions = { | ||
readonly invite?: boolean; | ||
readonly unmanagedInvite?: boolean; | ||
readonly manage?: TenantManagePermissions; | ||
readonly manage?: MembershipMatchRule; | ||
}; | ||
@@ -79,2 +81,5 @@ enum SystemPermissionsLevel { | ||
}; | ||
type ContentPermissions = { | ||
readonly assumeMembership?: MembershipMatchRule; | ||
}; | ||
interface BaseRolePermissions { | ||
@@ -85,2 +90,3 @@ readonly inherits?: readonly string[]; | ||
readonly system?: SystemPermissions; | ||
readonly content?: ContentPermissions; | ||
readonly variables: Acl.Variables; | ||
@@ -87,0 +93,0 @@ readonly stages?: StagesDefinition; |
{ | ||
"name": "@contember/schema", | ||
"version": "1.1.0-rc.0", | ||
"version": "1.2.0-alpha.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -78,12 +78,18 @@ import Input from './input' | ||
export type TenantManagedVariableSource = true | string | ||
export type MembershipVariableMatchRule = true | string | ||
export type TenantManagePermissions = { | ||
readonly [role: string]: { | ||
readonly variables?: | ||
| true | ||
| { | ||
readonly [targetVariable: string]: TenantManagedVariableSource | ||
} | ||
export type MembershipVariablesMatchRule = | ||
| true | ||
| { | ||
readonly [targetVariable: string]: MembershipVariableMatchRule | ||
} | ||
export type MembershipRoleMatchRule = | ||
| true | ||
| { | ||
readonly variables?: MembershipVariablesMatchRule | ||
} | ||
export type MembershipMatchRule = { | ||
readonly [role: string]: MembershipRoleMatchRule | ||
} | ||
@@ -94,3 +100,3 @@ | ||
readonly unmanagedInvite?: boolean | ||
readonly manage?: TenantManagePermissions | ||
readonly manage?: MembershipMatchRule | ||
} | ||
@@ -115,2 +121,6 @@ | ||
export type ContentPermissions = { | ||
readonly assumeMembership?: MembershipMatchRule | ||
} | ||
export interface BaseRolePermissions { | ||
@@ -121,2 +131,3 @@ readonly inherits?: readonly string[] | ||
readonly system?: SystemPermissions | ||
readonly content?: ContentPermissions | ||
readonly variables: Acl.Variables | ||
@@ -123,0 +134,0 @@ readonly stages?: StagesDefinition |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
105953
1458