-
Notifications
You must be signed in to change notification settings - Fork 3
/
slack.atd
749 lines (662 loc) · 22.1 KB
/
slack.atd
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
(* This secrets record is stored in Context to secure communication with Slack *)
type secrets = {
(* Slack bot token (`xoxb-XXXX`), giving the bot capabilities to interact with the workspace--allowed to be absent for tests *)
?slack_access_token : string nullable;
(* Slack uses this secret to sign requests; provide to verify incoming Slack requests *)
?slack_signing_secret : string nullable;
}
type json <ocaml module="Yojson.Basic" t="t"> = abstract
type timestamp_int = int wrap <ocaml t="Devkit.Time.t" wrap="Devkit.Time.seconds" unwrap="Devkit.Time.to_sec">
type message_field <ocaml attr="deriving make"> = {
?title: string nullable;
~value <ocaml default="\"\"">: string;
~short <ocaml default="false">: bool;
}
type message_attachment <ocaml attr="deriving make"> = {
fallback: string nullable;
?mrkdwn_in: string list nullable;
?blocks: message_block list nullable;
?color: string nullable;
?pretext: string nullable;
?author_name: string nullable;
?author_link: string nullable;
?author_icon: string nullable;
?title: string nullable;
?title_link: string nullable;
?text: string nullable;
?fields: message_field list nullable;
?image_url: string nullable;
?thumb_url: string nullable;
?ts: int nullable;
?footer: string nullable;
?verbatim: bool nullable;
}
type image_object <ocaml attr="deriving make"> = {
image_url: string;
~alt_text <ocaml default="\"\"">: string;
}
type accessory_object = [
Image <json name="image"> of image_object
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
type text_object_type = [
Plain_text <json name="plain_text">
| Mrkdwn <json name="mrkdwn">
] <ocaml repr="classic">
type text_object <ocaml attr="deriving make"> = {
?verbatim: bool nullable;
text_type <json name="type"> : text_object_type;
text: string;
}
type message_text_block <ocaml attr="deriving make"> = {
text: text_object;
?accessory: accessory_object nullable;
}
type divider = {
?empty: bool nullable; (* having a simple variant make Type_field adapter not work*)
}
type context_object = {
elements: text_object list;
}
type message_block = [
Context <json name="context"> of context_object
| Divider <json name="divider"> of divider
| Image <json name="image"> of image_object
| Section <json name="section"> of message_text_block
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
type post_message_req <ocaml attr="deriving make"> = {
channel: string;
?text: string nullable;
?attachments: message_attachment list nullable;
?blocks: message_block list nullable;
?username: string nullable;
?icon_url: string nullable;
?icon_emoji: string nullable;
?metadata: string nullable;
?mrkdwn: bool nullable;
?parse: string nullable;
?reply_broadcast: bool nullable;
?thread_ts: string nullable;
?unfurl_links: bool nullable;
?unfurl_media: bool nullable;
}
type post_message_res = {
channel: string;
ts: string;
}
type update_message_req <ocaml attr="deriving make"> = {
channel: string;
ts: string;
?text: string nullable;
?attachments: message_attachment list nullable;
?blocks: message_block list nullable;
?link_names: bool nullable;
?metadata: string nullable;
?parse: string nullable;
?reply_broadcast: bool nullable;
}
type update_message_res = {
channel: string;
ts: string;
}
(** Not supporting file upload through form using `file` currently *)
type files_upload_req <ocaml attr="deriving make"> = {
(** channels: comma-separated values e.g. [C1234567890,C2345678901,C3456789012]--when it's empty,
it does return a file id but the file is not shared to any channel.
*)
?channels: string nullable;
?content: string nullable;
?filename: string nullable;
?filetype: string nullable;
?initial_comment: string nullable;
?thread_ts: string nullable;
?title: string nullable;
}
type file = {
id: string;
?name: string nullable;
?title: string nullable;
?mimetype: string nullable;
?filetype: string nullable;
?pretty_type: string nullable;
?user: string nullable;
?size: int nullable;
~channels <ocaml default="[]">: string list;
~ims <ocaml default="[]">: string list;
~groups <ocaml default="[]">: string list;
?permalink: string nullable;
?permalink_public: string nullable;
}
type files_upload_res = {
ok: bool;
file: file;
}
type conversations_info_req <ocaml attr="deriving make"> = {
channel: string;
?include_locale: bool nullable;
?include_num_members: bool nullable;
}
type created_value = {
value: string;
creator: string;
last_set: int;
}
(* NB:
- name is not present in IM but user is.
- is_channel and is_group is not present in IM.
- for group and channel, user is not present.
*)
type conversation = {
id: string;
?name: string nullable;
~is_channel <ocaml default="false">: bool;
~is_group <ocaml default="false">: bool;
~is_im <ocaml default="false">: bool;
?is_member: bool nullable;
?user: string nullable;
?locale: string nullable;
?num_members: int nullable;
?topic: created_value nullable;
?purpose: created_value nullable;
}
type conversations_info_res = {
ok: bool;
channel: conversation;
}
type conversations_replies_req <ocaml attr="deriving make"> = {
channel: string;
ts: string;
?cursor: string nullable;
?include_all_metadata: bool nullable;
?inclusive: bool nullable;
?latest: string nullable;
?limit: int nullable;
?oldest: string nullable;
}
type reactions = {
name: string;
}
(* NB:
- thread_ts is present only if it's a thread reply.
*)
type conversation_reply = {
type_ <json name="type">: string;
ts: string;
?subtype : string nullable;
?thread_ts: string nullable;
?user: string nullable;
?text: string nullable;
?reply_count: int nullable;
?subscribed: bool nullable;
?last_read: string nullable;
?unread_count: int nullable;
?parent_user_id: string nullable;
?reactions : reactions list nullable
}
type conversations_replies_res = {
?messages: conversation_reply list nullable;
ok: bool;
?has_more: bool nullable;
~response_metadata <ocaml default="[]">: (string * json) list <json repr="object">;
}
type conversations_history_req <ocaml attr="deriving make"> = {
channel: string;
?cursor: string nullable;
?include_all_metadata: bool nullable;
?inclusive: bool nullable;
?latest: string nullable;
?limit: int nullable;
?oldest: string nullable;
}
type conversation_history = {
inherit conversation_reply;
?subtype : string nullable
}
type conversations_history_res = {
?messages: conversation_history list nullable;
ok: bool;
?has_more: bool nullable;
~response_metadata <ocaml default="[]">: (string * json) list <json repr="object">;
}
type user_info_req <ocaml attr="deriving make"> = {
user: string;
?include_locale: bool nullable;
}
type profile = {
display_name: string;
display_name_normalized: string;
?email: string nullable;
~first_name <ocaml default="\"\"">: string;
~last_name <ocaml default="\"\"">: string;
?phone: string nullable;
?pronouns: string nullable;
real_name: string;
real_name_normalized: string;
?status_emoji: string nullable;
?status_expiration: int nullable;
?status_text: string nullable;
team: string;
?title: string nullable;
?image_24: string nullable;
?image_32: string nullable;
?image_48: string nullable;
?image_72: string nullable;
?image_192: string nullable;
?image_512: string nullable;
}
type two_fa_type = [
| App <json name="app">
| Sms <json name="sms">
| Not_enabled
]<ocaml repr="classic">
type user = {
id: string;
~deleted <ocaml default="false">: bool;
~has_2fa <ocaml default="false">: bool;
~is_admin <ocaml default="false">: bool;
~is_app_user <ocaml default="false">: bool;
~is_bot <ocaml default="false">: bool;
~is_invited_user <ocaml default="false">: bool;
~is_owner <ocaml default="false">: bool;
~is_restricted <ocaml default="false">: bool;
~is_stranger <ocaml default="false">: bool;
~is_ultra_restricted <ocaml default="false">: bool;
?locale: string nullable;
profile: profile;
~two_factor_type <ocaml default="Not_enabled">: two_fa_type;
?tz: string nullable;
?tz_label: string nullable;
~tz_offset <ocaml default="0">: int;
updated: int;
}
type user_info_res = {
ok: bool;
user: user;
}
type list_users_req <ocaml attr="deriving make"> = {
?cursor: string nullable;
?include_locale: bool nullable;
?limit: int nullable;
?team_id: string nullable;
}
type list_users_res = {
ok: bool;
members: user list;
response_metadata: (string * string) list <json repr="object">;
}
type conversations_join_req <ocaml attr="deriving make"> = {
channel: string;
}
type conversations_join_res = {
channel: conversation;
?warning: string nullable;
~response_metadata <ocaml default="[]">: (string * json) list <json repr="object">;
}
type update_usergroups_users_req <ocaml attr="deriving make"> = {
usergroup: string;
users: string list;
?include_count: bool nullable;
?team_id: string nullable;
}
type usergroup = {
id: string;
?team_id: string nullable;
~is_usergroup <ocaml default="false">: bool;
?name: string nullable;
?description: string nullable;
?handle: string nullable;
~is_external <ocaml default="false">: bool;
?date_create: int nullable;
?date_update: int nullable;
?date_delete: int nullable;
?created_by: string nullable;
?updated_by: string nullable;
?deleted_by: string nullable;
?users: string list nullable;
?user_count: int nullable;
}
type update_usergroups_users_res = {
ok: bool;
usergroup: usergroup;
}
type list_usergroups_req <ocaml attr="deriving make"> = {
?include_count: bool nullable;
?team_id: string nullable;
?include_users: bool nullable;
?include_disabled: bool nullable;
}
type list_usergroups_res = {
ok: bool;
usergroups: usergroup list;
}
type list_usergroup_users_req <ocaml attr="deriving make"> = {
usergroup: string;
?team_id: string nullable;
?include_disabled: bool nullable;
}
type list_usergroup_users_res = {
ok: bool;
users : string list;
}
type add_bookmark_req <ocaml attr="deriving make"> = {
channel_id: string;
title: string;
type_ <json name = "type"> : string;
?emoji : string nullable;
?entity_id : string nullable;
?link : string nullable;
?parent_id : string nullable
}
type add_bookmark_res = {
ok: bool;
bookmark: bookmark
}
type edit_bookmark_req <ocaml attr="deriving make"> = {
channel_id: string;
bookmark_id: string;
?emoji : string nullable;
?link : string nullable;
?title : string nullable
}
type edit_bookmark_res = {
ok: bool;
bookmark: bookmark
}
type list_bookmarks_req <ocaml attr="deriving make"> = {
channel_id: string;
}
type list_bookmarks_res = {
ok: bool;
bookmarks: bookmark list
}
type remove_bookmark_req <ocaml attr="deriving make"> = {
channel_id: string;
bookmark_id: string;
?quip_section_id: string nullable
}
type remove_bookmark_res = {
ok: bool;
}
type bookmark = {
id: string;
channel_id: string;
?title: string nullable;
link: string;
}
type unfurl_block = {
blocks: message_block list;
}
type unfurl = [
Message_attachment of message_attachment
| Blocks of unfurl_block
] <ocaml repr="classic"> <json adapter.ocaml="Atd_adapters.Unfurl_adapter">
type chat_unfurl_req <ocaml attr="deriving make"> = {
channel: string;
ts: string;
unfurls: (string * unfurl) list <json repr="object">;
}
type ok_res = {
ok: bool;
}
type auth_test_res = {
url: string;
team: string;
user: string;
team_id: string;
user_id: string;
}
(* NB:
- subtype is not present when it's a regular message
- user is not present when sending as user
- text is not present when message subtype is message_changed for
updating messages as well as other channel events such as
channel joined, left, etc.
- thread_ts is present only if it's a thread reply.
*)
type message_event = {
?subtype: string nullable;
channel: string;
?user : string nullable;
?text : string nullable;
ts: string;
?bot_id: string option;
?thread_ts: string option;
}
type link_shared_link = {
domain: string;
url: string;
}
type link_shared_source = [
| Conversations_history <json name="conversations_history">
| Composer <json name="composer">
]
(* NB:
- thread_ts is present only if it's a thread reply.
*)
type link_shared_event = {
channel: string;
is_bot_user_member: bool;
user: string;
message_ts: string;
?thread_ts: string option;
links: link_shared_link list;
source: link_shared_source;
}
type event = [
| Message <json name="message"> of message_event
| App_mention <json name="app_mention"> of message_event
| Link_shared <json name="link_shared"> of link_shared_event
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
type event_callback_notification = {
token: string;
team_id: string;
api_app_id: string;
event: event;
event_id: string;
event_time: timestamp_int;
}
type url_verification_notification = {
token: string;
challenge: string;
}
type event_notification = [
| Event_callback <json name="event_callback"> of event_callback_notification
| Url_verification <json name="url_verification"> of url_verification_notification
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
type ('ok, 'err) http_response <ocaml predef module="Stdlib" t="result"> = [
| Ok of 'ok
| Error of 'err
] <ocaml repr="classic">
type slack_api_error = [
| Access_denied <json name="access_denied">
| Accesslimited <json name="accesslimited">
| Account_inactive <json name="account_inactive">
| As_user_not_supported <json name="as_user_not_supported">
| Block_mismatch <json name="block_mismatch">
| Blocked_file_type <json name="blocked_file_type">
| Cannot_auth_user <json name="cannot_auth_user">
| Cannot_find_channel <json name="cannot_find_channel">
| Cannot_find_message <json name="cannot_find_message">
| Cannot_find_service <json name="cannot_find_service">
| Cannot_parse_attachment <json name="cannot_parse_attachment">
| Cannot_prompt <json name="cannot_prompt">
| Cannot_unfurl_message <json name="cannot_unfurl_message">
| Cannot_unfurl_url <json name="cannot_unfurl_url">
| Cant_broadcast_message <json name="cant_broadcast_message">
| Cant_update_message <json name="cant_update_message">
| Channel_not_found <json name="channel_not_found">
| Deprecated_endpoint <json name="deprecated_endpoint">
| Duplicate_channel_not_found <json name="duplicate_channel_not_found">
| Duplicate_message_not_found <json name="duplicate_message_not_found">
| Edit_window_closed <json name="edit_window_closed">
| Ekm_access_denied <json name="ekm_access_denied">
| Enterprise_is_restricted <json name="enterprise_is_restricted">
| External_channel_migrating <json name="external_channel_migrating">
| Fatal_error <json name="fatal_error">
| Internal_error <json name="internal_error">
| Invalid_arg_name <json name="invalid_arg_name">
| Invalid_arguments <json name="invalid_arguments">
| Invalid_array_arg <json name="invalid_array_arg">
| Invalid_attachments <json name="invalid_attachments">
| Invalid_auth <json name="invalid_auth">
| Invalid_blocks <json name="invalid_blocks">
| Invalid_blocks_format <json name="invalid_blocks_format">
| Invalid_channel <json name="invalid_channel">
| Invalid_charset <json name="invalid_charset">
| Invalid_cursor <json name="invalid_cursor">
| Invalid_form_data <json name="invalid_form_data">
| Invalid_metadata_filter_keys <json name="invalid_metadata_filter_keys">
| Invalid_metadata_format <json name="invalid_metadata_format">
| Invalid_metadata_schema <json name="invalid_metadata_schema">
| Invalid_post_type <json name="invalid_post_type">
| Invalid_source <json name="invalid_source">
| Invalid_ts_latest <json name="invalid_ts_latest">
| Invalid_ts_oldest <json name="invalid_ts_oldest">
| Invalid_unfurl_id <json name="invalid_unfurl_id">
| Invalid_unfurls_format <json name="invalid_unfurls_format">
| Invalid_users <json name="invalid_users">
| Is_archived <json name="is_archived">
| Is_bot <json name="is_bot">
| Is_inactive <json name="is_inactive">
| Malware_detected <json name="malware_detected">
| Message_limit_exceeded <json name="message_limit_exceeded">
| Message_not_found <json name="message_not_found">
| Messages_tab_disabled <json name="messages_tab_disabled">
| Metadata_must_be_sent_from_app <json name="metadata_must_be_sent_from_app">
| Metadata_too_large <json name="metadata_too_large">
| Method_deprecated <json name="method_deprecated">
| Method_not_supported_for_channel_type <json name="method_not_supported_for_channel_type">
| Missing_argument <json name="missing_argument">
| Missing_channel <json name="missing_channel">
| Missing_post_type <json name="missing_post_type">
| Missing_scope <json name="missing_scope">
| Missing_source <json name="missing_source">
| Missing_ts <json name="missing_ts">
| Missing_unfurl_id <json name="missing_unfurl_id">
| Missing_unfurls <json name="missing_unfurls">
| Msg_too_long <json name="msg_too_long">
| No_dual_broadcast_content_update <json name="no_dual_broadcast_content_update">
| No_permission <json name="no_permission">
| No_text <json name="no_text">
| No_users_provided <json name="no_users_provided">
| Not_allowed_token_type <json name="not_allowed_token_type">
| Not_authed <json name="not_authed">
| Not_in_channel <json name="not_in_channel">
| Org_login_required <json name="org_login_required">
| Permission_denied <json name="permission_denied">
| Plan_upgrade_required <json name="plan_upgrade_required">
| Post_contents_too_large <json name="post_contents_too_large">
| Posting_to_general_channel_denied <json name="posting_to_general_channel_denied">
| Rate_limited <json name="rate_limited">
| Ratelimited <json name="ratelimited">
| Request_timeout <json name="request_timeout">
| Restricted_action <json name="restricted_action">
| Restricted_action_non_threadable_channel <json name="restricted_action_non_threadable_channel">
| Restricted_action_read_only_channel <json name="restricted_action_read_only_channel">
| Restricted_action_thread_locked <json name="restricted_action_thread_locked">
| Restricted_action_thread_only_channel <json name="restricted_action_thread_only_channel">
| Service_unavailable <json name="service_unavailable">
| Slack_connect_blocked_file_type <json name="slack_connect_blocked_file_type">
| Slack_connect_canvas_sharing_blocked <json name="slack_connect_canvas_sharing_blocked">
| Slack_connect_clip_sharing_blocked <json name="slack_connect_clip_sharing_blocked">
| Slack_connect_file_link_sharing_blocked <json name="slack_connect_file_link_sharing_blocked">
| Slack_connect_file_upload_sharing_blocked <json name="slack_connect_file_upload_sharing_blocked">
| Slack_connect_team_blocked <json name="slack_connect_team_blocked">
| Subteam_max_users_exceeded <json name="subteam_max_users_exceeded">
| Team_access_not_granted <json name="team_access_not_granted">
| Team_added_to_org <json name="team_added_to_org">
| Team_not_found <json name="team_not_found">
| Thread_not_found <json name="thread_not_found">
| Token_expired <json name="token_expired">
| Token_revoked <json name="token_revoked">
| Too_many_attachments <json name="too_many_attachments">
| Too_many_contact_cards <json name="too_many_contact_cards">
| Too_many_members <json name="too_many_members">
| Too_many_users <json name="too_many_users">
| Two_factor_setup_required <json name="two_factor_setup_required">
| Update_failed <json name="update_failed">
| User_is_restricted <json name="user_is_restricted">
| User_not_found <json name="user_not_found">
| User_not_visible <json name="user_not_visible">
| Other of string
] <json open_enum>
type 'ok slack_response = ('ok, slack_api_error) http_response
<json adapter.ocaml="Atd_adapters.Slack_response_adapter">
type interaction = [
| Shortcut <json name="shortcut"> of interaction_payload
| Message_actions <json name="message_action"> of interaction_payload
| Block_actions <json name="block_actions"> of interaction_payload
| View_submission <json name="view_submission"> of json
| View_closed <json name="view_closed"> of json
] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
type interaction_payload = {
trigger_id: string;
token: string;
team: interaction_team;
?callback_id: string nullable;
?response_url: string nullable;
?message: interaction_message nullable;
?user: interaction_user nullable;
?channel : interaction_channel nullable;
?actions : interaction_action list nullable;
?state : json nullable
}
type interaction_user = {
id: string;
?name : string nullable;
?username: string nullable;
?team_id: string nullable;
}
type interaction_team = {
id: string;
?domain: string nullable;
}
type interaction_channel = {
id: string;
?name: string nullable;
}
type interaction_message = {
?user : string nullable;
ts : string;
text : string;
}
type interaction_action = {
action_id: string;
block_id: string;
type_ <json name="type">: string; (* button, static_select, etc. *)
action_ts: string; (* timestamp of the action *)
?value: string nullable;
}
type view <ocaml from="Block_kit"> = abstract
type open_views_req <ocaml attr="deriving make"> = {
view : view;
(* One of trigger_id or interactivity_pointer needs to be defined *)
?trigger_id : string nullable;
?interactivity_pointer : string nullable;
}
type open_views_res = {
ok : bool;
view : view;
~response_metadata <ocaml default="[]">: (string * json) list <json repr="object">;
}
type push_views_req <ocaml attr="deriving make"> = {
view: view;
(* One of trigger_id or interactivity_pointer needs to be defined *)
?trigger_id : string nullable;
?interactivity_pointer : string nullable;
}
type push_views_res = {
ok : bool;
view: view;
~response_metadata <ocaml default="[]">: (string * json) list <json repr="object">;
}
type update_views_req <ocaml attr="deriving make"> = {
view: view;
(* One of external_id or view_id needs to be defined *)
?external_id : string nullable;
?view_id : string nullable;
?hash : string nullable;
}
type update_views_res = {
ok : bool;
view: view;
}