Matrix protocol in OCaml, Eio specialised
1(** User profile operations. *)
2
3(** User profile. *)
4type profile = {
5 displayname : string option;
6 avatar_url : string option;
7}
8
9(** Get a user's full profile. *)
10val get_profile :
11 Client.t ->
12 user_id:Matrix_proto.Id.User_id.t ->
13 (profile, Error.t) result
14
15(** Get a user's display name. *)
16val get_displayname :
17 Client.t ->
18 user_id:Matrix_proto.Id.User_id.t ->
19 (string option, Error.t) result
20
21(** Get a user's avatar URL. *)
22val get_avatar_url :
23 Client.t ->
24 user_id:Matrix_proto.Id.User_id.t ->
25 (string option, Error.t) result
26
27(** Set the current user's display name. *)
28val set_displayname :
29 Client.t ->
30 displayname:string ->
31 (unit, Error.t) result
32
33(** Set the current user's avatar URL. *)
34val set_avatar_url :
35 Client.t ->
36 avatar_url:string ->
37 (unit, Error.t) result