Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: Peter Bengtsson <mail@peterbe.com> Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com> Co-authored-by: Sarah Edwards <skedwards88@github.com> Co-authored-by: Grace Park <gracepark@github.com> Co-authored-by: Peter Bengtsson <peterbe@github.com>
35 lines
763 B
TypeScript
35 lines
763 B
TypeScript
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<string>
|
|
requestPath: string
|
|
serverUrl: string
|
|
statusCodes: Array<StatusCode>
|
|
parameters: Array<Parameter>
|
|
bodyParameters: Array<BodyParameter>
|
|
category: string
|
|
subcategory: string
|
|
codeExamples: Array<CodeSample>
|
|
availability: Array<string>
|
|
action: string
|
|
payloadExample?: Object
|
|
}
|
|
export interface WebhookAction {
|
|
name: string
|
|
actionTypes: string[]
|
|
data: WebhookActionData
|
|
}
|
|
|
|
export type WebhookData = {
|
|
[key: string]: WebhookActionData
|
|
}
|