import { Role } from './types' ; export const noKibanaPrivileges = { name : 'no_kibana_privileges' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , } , } ; export const globalRead = { name : 'global_read' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { securitySolutionFixture : [ 'read' ] , observabilityFixture : [ 'read' ] , actions : [ 'read' ] , actionsSimulators : [ 'read' ] , } , spaces : [ '*' ] , } , ] , } , } ; export const testDisabledPluginAll = { name : 'test_disabled_plugin_all' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { testDisabledFixtureID : [ 'all' ] , securitySolutionFixture : [ 'all' ] , actions : [ 'all' ] , actionsSimulators : [ 'all' ] , } , spaces : [ 'space1' ] , } , ] , } , } ; export const securitySolutionOnlyAll = { name : 'sec_only_all' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { securitySolutionFixture : [ 'all' ] , actions : [ 'all' ] , actionsSimulators : [ 'all' ] , } , spaces : [ 'space1' ] , } , ] , } , } ; export const securitySolutionOnlyRead = { name : 'sec_only_read' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { securitySolutionFixture : [ 'read' ] , actions : [ 'read' ] , actionsSimulators : [ 'read' ] , } , spaces : [ 'space1' ] , } , ] , } , } ; export const observabilityOnlyAll = { name : 'obs_only_all' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { observabilityFixture : [ 'all' ] , actions : [ 'all' ] , actionsSimulators : [ 'all' ] , } , spaces : [ 'space1' ] , } , ] , } , } ; export const observabilityOnlyRead = { name : 'obs_only_read' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { observabilityFixture : [ 'read' ] , actions : [ 'read' ] , actionsSimulators : [ 'read' ] , } , spaces : [ 'space1' ] , } , ] , } , } ; export const roles = [ noKibanaPrivileges , globalRead , securitySolutionOnlyAll , securitySolutionOnlyRead , observabilityOnlyAll , observabilityOnlyRead , testDisabledPluginAll , ] ; /**
 * These roles have access to all spaces.
 */ export const securitySolutionOnlyAllSpacesAll = { name : 'sec_only_all' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { securitySolutionFixture : [ 'all' ] , actions : [ 'all' ] , actionsSimulators : [ 'all' ] , } , spaces : [ '*' ] , } , ] , } , } ; export const securitySolutionOnlyReadSpacesAll = { name : 'sec_only_read' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { securitySolutionFixture : [ 'read' ] , actions : [ 'read' ] , actionsSimulators : [ 'read' ] , } , spaces : [ '*' ] , } , ] , } , } ; export const observabilityOnlyAllSpacesAll = { name : 'obs_only_all' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { observabilityFixture : [ 'all' ] , actions : [ 'all' ] , actionsSimulators : [ 'all' ] , } , spaces : [ '*' ] , } , ] , } , } ; export const observabilityOnlyReadSpacesAll = { name : 'obs_only_read' , privileges : { elasticsearch : { indices : [ { names : [ '*' ] , privileges : [ 'all' ] , } , ] , } , kibana : [ { feature : { observabilityFixture : [ 'read' ] , actions : [ 'read' ] , actionsSimulators : [ 'read' ] , } , spaces : [ '*' ] , } , ] , } , } ;