import * as t from 'io-ts' ; export const enum PrivilegeType { SOURCEMAP = 'sourcemap:write' , EVENT = 'event:write' , AGENT_CONFIG = 'config_agent:read' } export const privilegesTypeRt = t . array ( t . union ( [ t . literal ( PrivilegeType . SOURCEMAP ) , t . literal ( PrivilegeType . EVENT ) , t . literal ( PrivilegeType . AGENT_CONFIG ) , ] ) ) ;