import { Parameter, StatusCode, CodeSample, BodyParameter } from '../rest/types' export interface WebhookT { actions: string[] webhookActions: WebhookAction[] } interface WebhookActionData { verb: string title: string descriptionHtml: string summaryHtml: string previews: Array requestPath: string serverUrl: string statusCodes: Array parameters: Array bodyParameters: Array category: string subcategory: string codeExamples: Array availability: Array action: string payloadExample?: Object } export interface WebhookAction { name: string actionTypes: string[] data: WebhookActionData } export type WebhookData = { [key: string]: WebhookActionData }