import { object , string , array , boolean , Schema } from '@hapi/joi' ; export function gitHubWebhookPayload ( ) { return object ( { action : string ( ) , hook : object ( { events : array ( ) . items ( string ( ) ) } ) . unknown ( ) , pull_request : object ( { user : object ( { login : string ( ) . required ( ) } ) . unknown ( ) , merged : boolean ( ) , } ) . unknown ( ) , sender : object ( { login : string ( ) . required ( ) } ) . required ( ) . unknown ( ) , repository : object ( { full_name : string ( ) . required ( ) } ) . unknown ( ) , sponsorship : object ( { sponsorable : object ( { login : string ( ) . required ( ) , } ) . unknown ( ) , sponsor : object ( { login : string ( ) . required ( ) , } ) . unknown ( ) , } ) . unknown ( ) , forkee : object ( { owner : object ( { login : string ( ) . required ( ) , } ) . required ( ) . unknown ( ) , } ) . unknown ( ) , } ) . unknown ( ) ; }