import * as t from 'io-ts' ; import { StringToPositiveNumber } from '@kbn/securitysolution-io-ts-types' ; import { DefaultNamespaceArray , NamespaceTypeArray } from '../../common/default_namespace_array' ; import { RequiredKeepUndefined } from '../../common/required_keep_undefined' ; import { filter } from '../../common/filter' ; import { sort_field } from '../../common/sort_field' ; import { sort_order } from '../../common/sort_order' ; export const findExceptionListSchema = t . exact ( t . partial ( { filter , namespace_type : DefaultNamespaceArray , page : StringToPositiveNumber , per_page : StringToPositiveNumber , sort_field , sort_order , } ) ) ; export type FindExceptionListSchema = t . OutputOf < typeof findExceptionListSchema > ; export type FindExceptionListSchemaDecoded = Omit < RequiredKeepUndefined < t . TypeOf < typeof findExceptionListSchema > > , 'namespace_type' > & { namespace_type : NamespaceTypeArray ; } ;