Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Slack_lib.Slack_j
Sourcetype usergroup = Slack_t.usergroup = {
id : string;
team_id : string option;
is_usergroup : bool;
name : string option;
description : string option;
handle : string option;
is_external : bool;
date_create : int option;
date_update : int option;
date_delete : int option;
created_by : string option;
updated_by : string option;
deleted_by : string option;
users : string list option;
user_count : int option;
}
type profile = Slack_t.profile = {
display_name : string;
display_name_normalized : string;
email : string option;
first_name : string;
last_name : string;
phone : string option;
pronouns : string option;
real_name : string;
real_name_normalized : string;
status_emoji : string option;
status_expiration : int option;
status_text : string option;
team : string;
title : string option;
image_24 : string option;
image_32 : string option;
image_48 : string option;
image_72 : string option;
image_192 : string option;
image_512 : string option;
}
type user = Slack_t.user = {
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 : string option;
profile : profile;
two_factor_type : two_fa_type;
tz : string option;
tz_label : string option;
tz_offset : int;
updated : int;
}
type update_usergroups_users_res = Slack_t.update_usergroups_users_res = {
ok : bool;
usergroup : usergroup;
}
val make_update_usergroups_users_req :
usergroup:string ->
?users:string list ->
?include_count:bool ->
?team_id:string ->
unit ->
update_usergroups_users_req
type message_attachment = Slack_t.message_attachment = {
fallback : string option;
mrkdwn_in : string list option;
color : string option;
pretext : string option;
title : string option;
title_link : string option;
text : string option;
fields : message_field list option;
image_url : string option;
thumb_url : string option;
ts : int option;
}
val make_message_attachment :
?fallback:string ->
?mrkdwn_in:string list ->
?color:string ->
?pretext:string ->
?author_name:string ->
?author_link:string ->
?author_icon:string ->
?title:string ->
?title_link:string ->
?text:string ->
?fields:message_field list ->
?image_url:string ->
?thumb_url:string ->
?ts:int ->
?footer:string ->
unit ->
message_attachment
type update_message_req = Slack_t.update_message_req = {
channel : string;
ts : string;
text : string option;
attachments : message_attachment list option;
blocks : message_block list option;
link_names : bool option;
metadata : string option;
parse : string option;
reply_broadcast : bool option;
}
val make_update_message_req :
channel:string ->
ts:string ->
?text:string ->
?attachments:message_attachment list ->
?blocks:message_block list ->
?link_names:bool ->
?metadata:string ->
?parse:string ->
?reply_broadcast:bool ->
unit ->
update_message_req
type unfurl = Slack_t.unfurl =
| Message_attachment of message_attachment
| Blocks of unfurl_block
type post_message_req = Slack_t.post_message_req = {
channel : string;
text : string option;
attachments : message_attachment list option;
blocks : message_block list option;
username : string option;
icon_url : string option;
icon_emoji : string option;
metadata : string option;
mrkdwn : bool option;
parse : string option;
reply_broadcast : bool option;
thread_ts : string option;
unfurl_links : bool option;
unfurl_media : bool option;
}
val make_post_message_req :
channel:string ->
?text:string ->
?attachments:message_attachment list ->
?blocks:message_block list ->
?username:string ->
?icon_url:string ->
?icon_emoji:string ->
?metadata:string ->
?mrkdwn:bool ->
?parse:string ->
?reply_broadcast:bool ->
?thread_ts:string ->
?unfurl_links:bool ->
?unfurl_media:bool ->
unit ->
post_message_req
type message_event = Slack_t.message_event = {
subtype : string option;
channel : string;
user : string option;
text : string option;
ts : string;
bot_id : string option;
thread_ts : string option;
}
type list_users_res = Slack_t.list_users_res = {
ok : bool;
members : user list;
response_metadata : (string * string) list;
}
val make_list_users_req :
?cursor:string ->
?include_locale:bool ->
?limit:int ->
?team_id:string ->
unit ->
list_users_req
type list_usergroups_res = Slack_t.list_usergroups_res = {
ok : bool;
usergroups : usergroup list;
}
type list_usergroups_req = Slack_t.list_usergroups_req = {
include_count : bool option;
team_id : string option;
include_users : bool option;
include_disabled : bool option;
}
val make_list_usergroups_req :
?include_count:bool ->
?team_id:string ->
?include_users:bool ->
?include_disabled:bool ->
unit ->
list_usergroups_req
val make_list_usergroup_users_req :
usergroup:string ->
?team_id:string ->
?include_disabled:bool ->
unit ->
list_usergroup_users_req
type file = Slack_t.file = {
id : string;
name : string option;
title : string option;
mimetype : string option;
filetype : string option;
pretty_type : string option;
user : string option;
size : int option;
channels : string list;
ims : string list;
groups : string list;
permalink : string option;
permalink_public : string option;
}
type files_upload_req = Slack_t.files_upload_req = {
channels : string option;
content : string option;
filename : string option;
filetype : string option;
initial_comment : string option;
thread_ts : string option;
title : string option;
}
val make_files_upload_req :
?channels:string ->
?content:string ->
?filename:string ->
?filetype:string ->
?initial_comment:string ->
?thread_ts:string ->
?title:string ->
unit ->
files_upload_req
type event_callback_notification = Slack_t.event_callback_notification = {
token : string;
team_id : string;
api_app_id : string;
event : event;
event_id : string;
event_time : timestamp_int;
}
type event_notification = Slack_t.event_notification =
| Event_callback of event_callback_notification
| Url_verification of url_verification_notification
type conversation_reply = Slack_t.conversation_reply = {
type_ : string;
ts : string;
thread_ts : string option;
user : string option;
text : string option;
reply_count : int option;
subscribed : bool option;
last_read : string option;
unread_count : int option;
parent_user_id : string option;
}
type conversations_replies_res = Slack_t.conversations_replies_res = {
messages : conversation_reply list option;
ok : bool;
has_more : bool option;
response_metadata : (string * json) list;
}
type conversations_replies_req = Slack_t.conversations_replies_req = {
channel : string;
ts : string;
cursor : string option;
include_all_metadata : bool option;
inclusive : bool option;
latest : string option;
limit : int option;
oldest : string option;
}
val make_conversations_replies_req :
channel:string ->
ts:string ->
?cursor:string ->
?include_all_metadata:bool ->
?inclusive:bool ->
?latest:string ->
?limit:int ->
?oldest:string ->
unit ->
conversations_replies_req
type conversation = Slack_t.conversation = {
id : string;
name : string option;
is_channel : bool;
is_group : bool;
is_im : bool;
is_member : bool option;
user : string option;
locale : string option;
num_members : int option;
topic : created_value option;
purpose : created_value option;
}
type conversations_join_res = Slack_t.conversations_join_res = {
channel : conversation;
warning : string option;
response_metadata : (string * json) list;
}
type conversations_info_res = Slack_t.conversations_info_res = {
ok : bool;
channel : conversation;
}
val make_conversations_info_req :
channel:string ->
?include_locale:bool ->
?include_num_members:bool ->
unit ->
conversations_info_req
type chat_unfurl_req = Slack_t.chat_unfurl_req = {
channel : string;
ts : string;
unfurls : (string * unfurl) list;
}
val make_chat_unfurl_req :
channel:string ->
ts:string ->
?unfurls:(string * unfurl) list ->
unit ->
chat_unfurl_req
Serialize a value of type usergroup
into a JSON string.
Input JSON data of type usergroup
.
Output a JSON value of type two_fa_type
.
Serialize a value of type two_fa_type
into a JSON string.
Input JSON data of type two_fa_type
.
Deserialize JSON data of type two_fa_type
.
Serialize a value of type profile
into a JSON string.
Input JSON data of type profile
.
Serialize a value of type user
into a JSON string.
Input JSON data of type user
.
Output a JSON value of type user_info_res
.
Serialize a value of type user_info_res
into a JSON string.
Input JSON data of type user_info_res
.
Deserialize JSON data of type user_info_res
.
Output a JSON value of type user_info_req
.
Serialize a value of type user_info_req
into a JSON string.
Input JSON data of type user_info_req
.
Deserialize JSON data of type user_info_req
.
Output a JSON value of type url_verification_notification
.
val string_of_url_verification_notification :
?len:int ->
url_verification_notification ->
string
Serialize a value of type url_verification_notification
into a JSON string.
val read_url_verification_notification :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
url_verification_notification
Input JSON data of type url_verification_notification
.
Deserialize JSON data of type url_verification_notification
.
Output a JSON value of type update_usergroups_users_res
.
Serialize a value of type update_usergroups_users_res
into a JSON string.
val read_update_usergroups_users_res :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
update_usergroups_users_res
Input JSON data of type update_usergroups_users_res
.
Deserialize JSON data of type update_usergroups_users_res
.
Output a JSON value of type update_usergroups_users_req
.
Serialize a value of type update_usergroups_users_req
into a JSON string.
val read_update_usergroups_users_req :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
update_usergroups_users_req
Input JSON data of type update_usergroups_users_req
.
Deserialize JSON data of type update_usergroups_users_req
.
Output a JSON value of type update_message_res
.
Serialize a value of type update_message_res
into a JSON string.
Input JSON data of type update_message_res
.
Deserialize JSON data of type update_message_res
.
Output a JSON value of type text_object_type
.
Serialize a value of type text_object_type
into a JSON string.
Input JSON data of type text_object_type
.
Deserialize JSON data of type text_object_type
.
Output a JSON value of type text_object
.
Serialize a value of type text_object
into a JSON string.
Input JSON data of type text_object
.
Deserialize JSON data of type text_object
.
Output a JSON value of type message_text_block
.
Serialize a value of type message_text_block
into a JSON string.
Input JSON data of type message_text_block
.
Deserialize JSON data of type message_text_block
.
Output a JSON value of type message_field
.
Serialize a value of type message_field
into a JSON string.
Input JSON data of type message_field
.
Deserialize JSON data of type message_field
.
Output a JSON value of type message_block
.
Serialize a value of type message_block
into a JSON string.
Input JSON data of type message_block
.
Deserialize JSON data of type message_block
.
Output a JSON value of type message_attachment
.
Serialize a value of type message_attachment
into a JSON string.
Input JSON data of type message_attachment
.
Deserialize JSON data of type message_attachment
.
Output a JSON value of type update_message_req
.
Serialize a value of type update_message_req
into a JSON string.
Input JSON data of type update_message_req
.
Deserialize JSON data of type update_message_req
.
Output a JSON value of type unfurl_block
.
Serialize a value of type unfurl_block
into a JSON string.
Input JSON data of type unfurl_block
.
Deserialize JSON data of type unfurl_block
.
Serialize a value of type unfurl
into a JSON string.
Input JSON data of type unfurl
.
Output a JSON value of type timestamp_int
.
Serialize a value of type timestamp_int
into a JSON string.
Input JSON data of type timestamp_int
.
Deserialize JSON data of type timestamp_int
.
Output a JSON value of type slack_api_error
.
Serialize a value of type slack_api_error
into a JSON string.
Input JSON data of type slack_api_error
.
Deserialize JSON data of type slack_api_error
.
val write_http_response :
(Buffer.t -> 'ok -> unit) ->
(Buffer.t -> 'err -> unit) ->
Buffer.t ->
('ok, 'err) http_response ->
unit
Output a JSON value of type http_response
.
val string_of_http_response :
(Buffer.t -> 'ok -> unit) ->
(Buffer.t -> 'err -> unit) ->
?len:int ->
('ok, 'err) http_response ->
string
Serialize a value of type http_response
into a JSON string.
val read_http_response :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'ok) ->
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'err) ->
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
('ok, 'err) http_response
Input JSON data of type http_response
.
val http_response_of_string :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'ok) ->
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'err) ->
string ->
('ok, 'err) http_response
Deserialize JSON data of type http_response
.
val write_slack_response :
(Buffer.t -> 'ok -> unit) ->
Buffer.t ->
'ok slack_response ->
unit
Output a JSON value of type slack_response
.
val string_of_slack_response :
(Buffer.t -> 'ok -> unit) ->
?len:int ->
'ok slack_response ->
string
Serialize a value of type slack_response
into a JSON string.
val read_slack_response :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'ok) ->
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
'ok slack_response
Input JSON data of type slack_response
.
val slack_response_of_string :
(Yojson.Safe.lexer_state -> Lexing.lexbuf -> 'ok) ->
string ->
'ok slack_response
Deserialize JSON data of type slack_response
.
Serialize a value of type secrets
into a JSON string.
Input JSON data of type secrets
.
Output a JSON value of type post_message_res
.
Serialize a value of type post_message_res
into a JSON string.
Input JSON data of type post_message_res
.
Deserialize JSON data of type post_message_res
.
Output a JSON value of type post_message_req
.
Serialize a value of type post_message_req
into a JSON string.
Input JSON data of type post_message_req
.
Deserialize JSON data of type post_message_req
.
Serialize a value of type ok_res
into a JSON string.
Input JSON data of type ok_res
.
Output a JSON value of type message_event
.
Serialize a value of type message_event
into a JSON string.
Input JSON data of type message_event
.
Deserialize JSON data of type message_event
.
Output a JSON value of type list_users_res
.
Serialize a value of type list_users_res
into a JSON string.
Input JSON data of type list_users_res
.
Deserialize JSON data of type list_users_res
.
Output a JSON value of type list_users_req
.
Serialize a value of type list_users_req
into a JSON string.
Input JSON data of type list_users_req
.
Deserialize JSON data of type list_users_req
.
Output a JSON value of type list_usergroups_res
.
Serialize a value of type list_usergroups_res
into a JSON string.
val read_list_usergroups_res :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
list_usergroups_res
Input JSON data of type list_usergroups_res
.
Deserialize JSON data of type list_usergroups_res
.
Output a JSON value of type list_usergroups_req
.
Serialize a value of type list_usergroups_req
into a JSON string.
val read_list_usergroups_req :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
list_usergroups_req
Input JSON data of type list_usergroups_req
.
Deserialize JSON data of type list_usergroups_req
.
Output a JSON value of type list_usergroup_users_res
.
Serialize a value of type list_usergroup_users_res
into a JSON string.
val read_list_usergroup_users_res :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
list_usergroup_users_res
Input JSON data of type list_usergroup_users_res
.
Deserialize JSON data of type list_usergroup_users_res
.
Output a JSON value of type list_usergroup_users_req
.
Serialize a value of type list_usergroup_users_req
into a JSON string.
val read_list_usergroup_users_req :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
list_usergroup_users_req
Input JSON data of type list_usergroup_users_req
.
Deserialize JSON data of type list_usergroup_users_req
.
Output a JSON value of type link_shared_source
.
Serialize a value of type link_shared_source
into a JSON string.
Input JSON data of type link_shared_source
.
Deserialize JSON data of type link_shared_source
.
Output a JSON value of type link_shared_link
.
Serialize a value of type link_shared_link
into a JSON string.
Input JSON data of type link_shared_link
.
Deserialize JSON data of type link_shared_link
.
Output a JSON value of type link_shared_event
.
Serialize a value of type link_shared_event
into a JSON string.
Input JSON data of type link_shared_event
.
Deserialize JSON data of type link_shared_event
.
Serialize a value of type json
into a JSON string.
Input JSON data of type json
.
Serialize a value of type file
into a JSON string.
Input JSON data of type file
.
Output a JSON value of type files_upload_res
.
Serialize a value of type files_upload_res
into a JSON string.
Input JSON data of type files_upload_res
.
Deserialize JSON data of type files_upload_res
.
Output a JSON value of type files_upload_req
.
Serialize a value of type files_upload_req
into a JSON string.
Input JSON data of type files_upload_req
.
Deserialize JSON data of type files_upload_req
.
Serialize a value of type event
into a JSON string.
Input JSON data of type event
.
Output a JSON value of type event_callback_notification
.
Serialize a value of type event_callback_notification
into a JSON string.
val read_event_callback_notification :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
event_callback_notification
Input JSON data of type event_callback_notification
.
Deserialize JSON data of type event_callback_notification
.
Output a JSON value of type event_notification
.
Serialize a value of type event_notification
into a JSON string.
Input JSON data of type event_notification
.
Deserialize JSON data of type event_notification
.
Output a JSON value of type created_value
.
Serialize a value of type created_value
into a JSON string.
Input JSON data of type created_value
.
Deserialize JSON data of type created_value
.
Output a JSON value of type conversation_reply
.
Serialize a value of type conversation_reply
into a JSON string.
Input JSON data of type conversation_reply
.
Deserialize JSON data of type conversation_reply
.
Output a JSON value of type conversations_replies_res
.
Serialize a value of type conversations_replies_res
into a JSON string.
val read_conversations_replies_res :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
conversations_replies_res
Input JSON data of type conversations_replies_res
.
Deserialize JSON data of type conversations_replies_res
.
Output a JSON value of type conversations_replies_req
.
Serialize a value of type conversations_replies_req
into a JSON string.
val read_conversations_replies_req :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
conversations_replies_req
Input JSON data of type conversations_replies_req
.
Deserialize JSON data of type conversations_replies_req
.
Output a JSON value of type conversation
.
Serialize a value of type conversation
into a JSON string.
Input JSON data of type conversation
.
Deserialize JSON data of type conversation
.
Output a JSON value of type conversations_join_res
.
Serialize a value of type conversations_join_res
into a JSON string.
val read_conversations_join_res :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
conversations_join_res
Input JSON data of type conversations_join_res
.
Deserialize JSON data of type conversations_join_res
.
Output a JSON value of type conversations_join_req
.
Serialize a value of type conversations_join_req
into a JSON string.
val read_conversations_join_req :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
conversations_join_req
Input JSON data of type conversations_join_req
.
Deserialize JSON data of type conversations_join_req
.
Output a JSON value of type conversations_info_res
.
Serialize a value of type conversations_info_res
into a JSON string.
val read_conversations_info_res :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
conversations_info_res
Input JSON data of type conversations_info_res
.
Deserialize JSON data of type conversations_info_res
.
Output a JSON value of type conversations_info_req
.
Serialize a value of type conversations_info_req
into a JSON string.
val read_conversations_info_req :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
conversations_info_req
Input JSON data of type conversations_info_req
.
Deserialize JSON data of type conversations_info_req
.
Output a JSON value of type chat_unfurl_req
.
Serialize a value of type chat_unfurl_req
into a JSON string.
Input JSON data of type chat_unfurl_req
.
Deserialize JSON data of type chat_unfurl_req
.
Output a JSON value of type auth_test_res
.
Serialize a value of type auth_test_res
into a JSON string.
Input JSON data of type auth_test_res
.
Deserialize JSON data of type auth_test_res
.