123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470(* Auto-generated from "slack.atd" *)[@@@ocaml.warning"-27-32-33-35-39"]typeusergroup={id:string;team_id:stringoption;is_usergroup:bool;name:stringoption;description:stringoption;handle:stringoption;is_external:bool;date_create:intoption;date_update:intoption;date_delete:intoption;created_by:stringoption;updated_by:stringoption;deleted_by:stringoption;users:stringlistoption;user_count:intoption}typetwo_fa_type=App|Sms|Not_enabledtypeprofile={display_name:string;display_name_normalized:string;email:stringoption;first_name:string;last_name:string;phone:stringoption;pronouns:stringoption;real_name:string;real_name_normalized:string;status_emoji:stringoption;status_expiration:intoption;status_text:stringoption;team:string;title:stringoption;image_24:stringoption;image_32:stringoption;image_48:stringoption;image_72:stringoption;image_192:stringoption;image_512:stringoption}typeuser={id:string;deleted:bool;has_2fa:bool;is_admin:bool;is_app_user:bool;is_bot:bool;is_invited_user:bool;is_owner:bool;is_restricted:bool;is_stranger:bool;is_ultra_restricted:bool;locale:stringoption;profile:profile;two_factor_type:two_fa_type;tz:stringoption;tz_label:stringoption;tz_offset:int;updated:int}typeuser_info_res={ok:bool;user:user}typeuser_info_req={user:string;include_locale:booloption}[@@derivingmake]typeurl_verification_notification={token:string;challenge:string}typeupdate_usergroups_users_res={ok:bool;usergroup:usergroup}typeupdate_usergroups_users_req={usergroup:string;users:stringlist;include_count:booloption;team_id:stringoption}[@@derivingmake]typeupdate_message_res={channel:string;ts:string}typetext_object_type=Plain_text|Mrkdwntypetext_object={text_type:text_object_type;text:string}[@@derivingmake]typemessage_text_block={text:text_object}[@@derivingmake]typemessage_field={title:stringoption;value:string;short:bool}[@@derivingmake]typemessage_block=Sectionofmessage_text_block|Dividertypemessage_attachment={fallback:stringoption;mrkdwn_in:stringlistoption;color:stringoption;pretext:stringoption;author_name:stringoption;author_link:stringoption;author_icon:stringoption;title:stringoption;title_link:stringoption;text:stringoption;fields:message_fieldlistoption;image_url:stringoption;thumb_url:stringoption;ts:intoption;footer:stringoption}[@@derivingmake]typeupdate_message_req={channel:string;ts:string;text:stringoption;attachments:message_attachmentlistoption;blocks:message_blocklistoption;link_names:booloption;metadata:stringoption;parse:stringoption;reply_broadcast:booloption}[@@derivingmake]typeunfurl_block={blocks:message_blocklist}typeunfurl=Message_attachmentofmessage_attachment|Blocksofunfurl_blocktypetimestamp_int=Devkit.Time.ttypeslack_api_error=[`Access_denied|`Accesslimited|`Account_inactive|`As_user_not_supported|`Block_mismatch|`Blocked_file_type|`Cannot_auth_user|`Cannot_find_channel|`Cannot_find_message|`Cannot_find_service|`Cannot_parse_attachment|`Cannot_prompt|`Cannot_unfurl_message|`Cannot_unfurl_url|`Cant_broadcast_message|`Cant_update_message|`Channel_not_found|`Deprecated_endpoint|`Duplicate_channel_not_found|`Duplicate_message_not_found|`Edit_window_closed|`Ekm_access_denied|`Enterprise_is_restricted|`External_channel_migrating|`Fatal_error|`Internal_error|`Invalid_arg_name|`Invalid_arguments|`Invalid_array_arg|`Invalid_attachments|`Invalid_auth|`Invalid_blocks|`Invalid_blocks_format|`Invalid_channel|`Invalid_charset|`Invalid_cursor|`Invalid_form_data|`Invalid_metadata_filter_keys|`Invalid_metadata_format|`Invalid_metadata_schema|`Invalid_post_type|`Invalid_source|`Invalid_ts_latest|`Invalid_ts_oldest|`Invalid_unfurl_id|`Invalid_unfurls_format|`Invalid_users|`Is_archived|`Is_bot|`Is_inactive|`Malware_detected|`Message_limit_exceeded|`Message_not_found|`Messages_tab_disabled|`Metadata_must_be_sent_from_app|`Metadata_too_large|`Method_deprecated|`Method_not_supported_for_channel_type|`Missing_argument|`Missing_channel|`Missing_post_type|`Missing_scope|`Missing_source|`Missing_ts|`Missing_unfurl_id|`Missing_unfurls|`Msg_too_long|`No_dual_broadcast_content_update|`No_permission|`No_text|`No_users_provided|`Not_allowed_token_type|`Not_authed|`Not_in_channel|`Org_login_required|`Permission_denied|`Plan_upgrade_required|`Post_contents_too_large|`Posting_to_general_channel_denied|`Rate_limited|`Ratelimited|`Request_timeout|`Restricted_action|`Restricted_action_non_threadable_channel|`Restricted_action_read_only_channel|`Restricted_action_thread_locked|`Restricted_action_thread_only_channel|`Service_unavailable|`Slack_connect_blocked_file_type|`Slack_connect_canvas_sharing_blocked|`Slack_connect_clip_sharing_blocked|`Slack_connect_file_link_sharing_blocked|`Slack_connect_file_upload_sharing_blocked|`Slack_connect_team_blocked|`Subteam_max_users_exceeded|`Team_access_not_granted|`Team_added_to_org|`Team_not_found|`Thread_not_found|`Token_expired|`Token_revoked|`Too_many_attachments|`Too_many_contact_cards|`Too_many_members|`Too_many_users|`Two_factor_setup_required|`Update_failed|`User_is_restricted|`User_not_found|`User_not_visible|`Otherofstring]type('ok,'err)http_response=('ok,'err)Stdlib.result=Okof'ok|Errorof'errtype'okslack_response=('ok,slack_api_error)http_responsetypesecrets={slack_access_token:stringoption;slack_signing_secret:stringoption}typepost_message_res={channel:string;ts:string}typepost_message_req={channel:string;text:stringoption;attachments:message_attachmentlistoption;blocks:message_blocklistoption;username:stringoption;icon_url:stringoption;icon_emoji:stringoption;metadata:stringoption;mrkdwn:booloption;parse:stringoption;reply_broadcast:booloption;thread_ts:stringoption;unfurl_links:booloption;unfurl_media:booloption}[@@derivingmake]typeok_res={ok:bool}typemessage_event={subtype:stringoption;channel:string;user:stringoption;text:stringoption;ts:string;bot_id:stringoption;thread_ts:stringoption}typelist_users_res={ok:bool;members:userlist;response_metadata:(string*string)list}typelist_users_req={cursor:stringoption;include_locale:booloption;limit:intoption;team_id:stringoption}[@@derivingmake]typelist_usergroups_res={ok:bool;usergroups:usergrouplist}typelist_usergroups_req={include_count:booloption;team_id:stringoption;include_users:booloption;include_disabled:booloption}[@@derivingmake]typelist_usergroup_users_res={ok:bool;users:stringlist}typelist_usergroup_users_req={usergroup:string;team_id:stringoption;include_disabled:booloption}[@@derivingmake]typelink_shared_source=[`Conversations_history|`Composer]typelink_shared_link={domain:string;url:string}typelink_shared_event={channel:string;is_bot_user_member:bool;user:string;message_ts:string;thread_ts:stringoption;links:link_shared_linklist;source:link_shared_source}typejson=Yojson.Basic.ttypefile={id:string;name:stringoption;title:stringoption;mimetype:stringoption;filetype:stringoption;pretty_type:stringoption;user:stringoption;size:intoption;channels:stringlist;ims:stringlist;groups:stringlist;permalink:stringoption;permalink_public:stringoption}typefiles_upload_res={ok:bool;file:file}typefiles_upload_req={channels:stringoption;content:stringoption;filename:stringoption;filetype:stringoption;initial_comment:stringoption;thread_ts:stringoption;title:stringoption}[@@derivingmake]typeevent=Messageofmessage_event|Link_sharedoflink_shared_eventtypeevent_callback_notification={token:string;team_id:string;api_app_id:string;event:event;event_id:string;event_time:timestamp_int}typeevent_notification=Event_callbackofevent_callback_notification|Url_verificationofurl_verification_notificationtypecreated_value={value:string;creator:string;last_set:int}typeconversation_reply={type_:string;ts:string;thread_ts:stringoption;user:stringoption;text:stringoption;reply_count:intoption;subscribed:booloption;last_read:stringoption;unread_count:intoption;parent_user_id:stringoption}typeconversations_replies_res={messages:conversation_replylistoption;ok:bool;has_more:booloption;response_metadata:(string*json)list}typeconversations_replies_req={channel:string;ts:string;cursor:stringoption;include_all_metadata:booloption;inclusive:booloption;latest:stringoption;limit:intoption;oldest:stringoption}[@@derivingmake]typeconversation={id:string;name:stringoption;is_channel:bool;is_group:bool;is_im:bool;is_member:booloption;user:stringoption;locale:stringoption;num_members:intoption;topic:created_valueoption;purpose:created_valueoption}typeconversations_join_res={channel:conversation;warning:stringoption;response_metadata:(string*json)list}typeconversations_join_req={channel:string}[@@derivingmake]typeconversations_info_res={ok:bool;channel:conversation}typeconversations_info_req={channel:string;include_locale:booloption;include_num_members:booloption}[@@derivingmake]typechat_unfurl_req={channel:string;ts:string;unfurls:(string*unfurl)list}[@@derivingmake]typeauth_test_res={url:string;team:string;user:string;team_id:string;user_id:string}