import * as t from 'io-ts' ; import { version } from '@kbn/securitysolution-io-ts-types' ; import { RequiredKeepUndefined } from '../../common/required_keep_undefined' ; import { id } from '../../common/id' ; import { _version } from '../../common/underscore_version' ; import { meta } from '../../common/meta' ; import { name } from '../../common/name' ; import { description } from '../../common/description' ; export const patchListSchema = t . intersection ( [ t . exact ( t . type ( { id , } ) ) , t . exact ( t . partial ( { _version , description , meta , name , version , } ) ) , ] ) ; export type PatchListSchema = t . OutputOf < typeof patchListSchema > ; export type PatchListSchemaDecoded = RequiredKeepUndefined < t . TypeOf < typeof patchListSchema > > ;