import { schema , TypeOf } from '@kbn/config-schema' ; export const configSchema = schema . object ( { savePolicy : schema . oneOf ( [ schema . literal ( 'none' ) , schema . literal ( 'config' ) , schema . literal ( 'configAndData' ) , schema . literal ( 'configAndDataWithConsent' ) , ] , { defaultValue : 'configAndData' } ) , canEditDrillDownUrls : schema . boolean ( { defaultValue : true } ) , } ) ; export type ConfigSchema = TypeOf < typeof configSchema > ;