-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcore.tsp
45 lines (35 loc) · 1.02 KB
/
core.tsp
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
35
36
37
38
39
40
41
42
43
44
45
import "@typespec/openapi3";
import "./enums.tsp";
import "../../../types";
using TypeSpec.Http;
using TypeSpec.OpenAPI;
model CXMLWebhookIDPath {
@doc("Unique ID of a CXML Webhook.")
@path
cxml_webhook_id: uuid
}
model CXMLWebhookAddress {
@doc("Unique ID of the Fabric Address.")
@example("691af061-cd86-4893-a605-173f47afc4c2")
id: uuid;
@doc("Fabric resource ID that the Fabric Address belongs to.")
@example("691af061-cd86-4893-a605-173f47afc4c2")
resource_id: uuid;
@doc("Name of the Fabric Address.")
@example("justice-league")
name: string;
@doc("Display name of the Fabric Address.")
@example("Justice League")
display_name: string;
@doc("Type of the Fabric Address.")
@example(DisplayTypes.App)
type: DisplayTypes;
@doc("Cover url of the Fabric Address.")
@example("https://coverurl.com")
cover_url: string;
@doc("Preview url of the Fabric Address.")
@example("https://previewurl.com")
preview_url: string;
@doc("Channels of the Fabric Address.")
channel: AddressChannel;
}