1
- type webhook_notification_field = {
1
+ type message_field = {
2
2
?title: string nullable;
3
3
value: string;
4
4
}
5
5
6
- type webhook_notification_attachment = {
6
+ type message_attachment = {
7
7
fallback: string nullable;
8
8
?mrkdwn_in: string list nullable;
9
9
?color: string nullable;
@@ -14,18 +14,18 @@ type webhook_notification_attachment = {
14
14
?title: string nullable;
15
15
?title_link: string nullable;
16
16
?text: string nullable;
17
- ?fields: webhook_notification_field list nullable;
17
+ ?fields: message_field list nullable;
18
18
?image_url: string nullable;
19
19
?thumb_url: string nullable;
20
20
?ts: int nullable;
21
21
?footer: string nullable;
22
22
}
23
23
24
- type notification_section_block_type = [
24
+ type message_section_block_type = [
25
25
Section <json name="section">
26
26
] <ocaml repr="classic">
27
27
28
- type notification_divider_block_type = [
28
+ type message_divider_block_type = [
29
29
Divider <json name="divider">
30
30
] <ocaml repr="classic">
31
31
@@ -39,22 +39,22 @@ type text_object = {
39
39
text: string;
40
40
}
41
41
42
- type webhook_notification_text_block = {
43
- notification_type <json name="type"> : notification_section_block_type ;
42
+ type message_text_block = {
43
+ message_type <json name="type"> : message_section_block_type ;
44
44
text: text_object;
45
45
}
46
46
47
- type webhook_notification_divider_block = {
48
- notification_type <json name="type"> : notification_divider_block_type ;
47
+ type message_divider_block = {
48
+ message_type <json name="type"> : message_divider_block_type ;
49
49
}
50
50
51
- type webhook_notification_block = [
52
- Text of webhook_notification_text_block
53
- | Divider of webhook_notification_divider_block
51
+ type message_block = [
52
+ Text of message_text_block
53
+ | Divider of message_divider_block
54
54
] <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
55
55
56
- type webhook_notification = {
56
+ type post_message_req = {
57
57
?text: string nullable;
58
- ?attachments: webhook_notification_attachment list nullable;
59
- ?blocks: webhook_notification_block list nullable;
58
+ ?attachments: message_attachment list nullable;
59
+ ?blocks: message_block list nullable;
60
60
}
0 commit comments