import * as t from 'io-ts' ; import { query , agentSelection , ecsMappingOrUndefined , savedQueryIdOrUndefined , } from '../../common/schemas' ; export const createActionRequestBodySchema = t . type ( { agentSelection , query , saved_query_id : savedQueryIdOrUndefined , ecs_mapping : ecsMappingOrUndefined , } ) ; export type CreateActionRequestBodySchema = t . OutputOf < typeof createActionRequestBodySchema > ;