import * as t from 'io-ts' ; import { saved_object_attributes } from '../saved_object_attributes' ; see x-pack export const action_group = t . string ; export const action_id = t . string ; export const action_action_type_id = t . string ; export const action_params = saved_object_attributes ; export const action = t . exact ( t . type ( { group : action_group , id : action_id , action_type_id : action_action_type_id , params : action_params , } ) ) ; export type Action = t . TypeOf < typeof action > ; export const actions = t . array ( action ) ; export type Actions = t . TypeOf < typeof actions > ; export const actionsCamel = t . array ( t . exact ( t . type ( { group : action_group , id : action_id , actionTypeId : action_action_type_id , params : action_params , } ) ) ) ; export type ActionsCamel = t . TypeOf < typeof actions > ;