forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (31 loc) · 763 Bytes
/
types.ts
File metadata and controls
34 lines (31 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}