import { MessageType } from '../../utils/MessageType' ; import { v4 as uuidv4 } from 'uuid' ; export function createTrustPingMessage ( responseRequested = true , comment = '' ) { return { '@id' : uuidv4 ( ) , '@type' : MessageType . TrustPingMessage , ... ( comment && { comment } ) , responseRequested , } ; } export function createTrustPingResponseMessage ( threadId , comment = '' ) { return { '@id' : uuidv4 ( ) , '@type' : MessageType . TrustPingResponseMessage , '~thread' : { thid : threadId , } , ... ( comment && { comment } ) , } ; }