@@ -2,6 +2,7 @@ type json <ocaml module="Yojson.Basic" t="t"> = abstract
22
33type view = [
44 | Modal <json name="modal"> of modal
5+ | Home <json name="home"> of json
56] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
67
78type modal <ocaml attr="deriving make"> = {
@@ -22,11 +23,17 @@ type modal <ocaml attr="deriving make"> = {
2223type blocks = block list
2324
2425type block = [
26+ | Actions <json name = "actions"> of actions
2527 | Divider <json name = "divider"> of divider
2628 | Input <json name = "input"> of input
2729 | Section <json name = "section"> of section
2830] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
2931
32+ type actions <ocaml attr="deriving make"> = {
33+ elements : element list <ocaml valid="fun l -> List.length l <= 25">;
34+ ?block_id : string nullable <ocaml valid="fun s -> String.length s <= 255">
35+ }
36+
3037type divider <ocaml attr="deriving make"> = {
3138 block_id : string nullable <ocaml valid="fun s -> String.length s <= 255">
3239}
@@ -54,7 +61,7 @@ type element = [
5461 | Button <json name = "button"> of button
5562 | Plain_text_input <json name = "plain_text_input"> of plain_text_input
5663 | Multi_static_select_menu <json name = "multi_static_select"> of multi_static_select_menu
57- | Multi_users_select_menu <json name = "multi_users_select_menu "> of multi_users_select_menu
64+ | Multi_users_select_menu <json name = "multi_users_select "> of multi_users_select_menu
5865 | Static_select_menu <json name = "static_select"> of static_select_menu
5966] <ocaml repr="classic"> <json adapter.ocaml="Atdgen_runtime.Json_adapter.Type_field">
6067
@@ -92,7 +99,7 @@ type multi_static_select_menu <ocaml attr="deriving make"> = {
9299
93100type multi_users_select_menu <ocaml attr="deriving make"> = {
94101 ?action_id : string nullable <ocaml valid="fun s -> String.length s <= 255">;
95- ?initial_users : string nullable;
102+ ?initial_users : string list nullable;
96103 ?confirm : confirmation_dialog_object nullable;
97104 ?max_selected_items : int nullable <ocaml valid="fun i -> i >= 1">;
98105 ?focus_on_load : bool nullable;
0 commit comments