···5 let nsid = "app.bsky.contact.importContacts"
67 type params = unit
08 let params_to_yojson () = `Assoc []
910- type input =
11- {
12- token: string;
13- contacts: string list;
14- }
15 [@@deriving yojson {strict= false}]
1617 type output =
18- {
19- matches_and_contact_indexes: App_bsky_contact_defs.match_and_contact_index list [@key "matchesAndContactIndexes"];
20- }
21-[@@deriving yojson {strict= false}]
2223- let call
24- ~token
25- ~contacts
26- (client : Hermes.client) : output Lwt.t =
27 let params = () in
28 let input = Some ({token; contacts} |> input_to_yojson) in
29- Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson
030end
31-
···5 let nsid = "app.bsky.contact.importContacts"
67 type params = unit
8+9 let params_to_yojson () = `Assoc []
1011+ type input = {token: string; contacts: string list}
000012 [@@deriving yojson {strict= false}]
1314 type output =
15+ { matches_and_contact_indexes:
16+ App_bsky_contact_defs.match_and_contact_index list
17+ [@key "matchesAndContactIndexes"] }
18+ [@@deriving yojson {strict= false}]
1920+ let call ~token ~contacts (client : Hermes.client) : output Lwt.t =
00021 let params = () in
22 let input = Some ({token; contacts} |> input_to_yojson) in
23+ Hermes.procedure client nsid (params_to_yojson params) input
24+ output_of_yojson
25end
0
+10-6
pegasus/lexicons/app_bsky_contact_removeData.ml
···5 let nsid = "app.bsky.contact.removeData"
67 type params = unit
08 let params_to_yojson () = `Assoc []
910 type input = unit
011 let input_of_yojson _ = Ok ()
012 let input_to_yojson () = `Assoc []
1314 type output = unit
15-let output_of_yojson _ = Ok ()
16-let output_to_yojson () = `Assoc []
1718- let call
19- (client : Hermes.client) : output Lwt.t =
00020 let params = () in
21 let input = Some (input_to_yojson ()) in
22- Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson
023end
24-
···5 let nsid = "app.bsky.contact.removeData"
67 type params = unit
8+9 let params_to_yojson () = `Assoc []
1011 type input = unit
12+13 let input_of_yojson _ = Ok ()
14+15 let input_to_yojson () = `Assoc []
1617 type output = unit
001819+ let output_of_yojson _ = Ok ()
20+21+ let output_to_yojson () = `Assoc []
22+23+ let call (client : Hermes.client) : output Lwt.t =
24 let params = () in
25 let input = Some (input_to_yojson ()) in
26+ Hermes.procedure client nsid (params_to_yojson params) input
27+ output_of_yojson
28end
0
···4module Main = struct
5 let nsid = "com.atproto.lexicon.resolveLexicon"
67+ type params = {nsid: string} [@@deriving yojson {strict= false}]
000089 type output =
10+ {cid: string; schema: Com_atproto_lexicon_schema.main; uri: string}
11+ [@@deriving yojson {strict= false}]
00001213+ let call ~nsid (client : Hermes.client) : output Lwt.t =
0014 let params : params = {nsid} in
15 Hermes.query client nsid (params_to_yojson params) output_of_yojson
16end
0
+7-7
pegasus/lexicons/com_atproto_moderation_defs.ml
···7 | _ -> Error "reason_type: expected string"
8let reason_type_to_yojson s = `String s
910-(** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. *)
11let reason_spam = "com.atproto.moderation.defs#reasonSpam"
1213-(** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. *)
14let reason_violation = "com.atproto.moderation.defs#reasonViolation"
1516-(** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. *)
17let reason_misleading = "com.atproto.moderation.defs#reasonMisleading"
1819-(** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. *)
20let reason_sexual = "com.atproto.moderation.defs#reasonSexual"
2122-(** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. *)
23let reason_rude = "com.atproto.moderation.defs#reasonRude"
2425-(** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonOther`. *)
26let reason_other = "com.atproto.moderation.defs#reasonOther"
2728-(** Appeal a previously taken moderation action *)
29let reason_appeal = "com.atproto.moderation.defs#reasonAppeal"
3031(** string type with known values: Tag describing a type of subject that might be reported. *)
···7 | _ -> Error "reason_type: expected string"
8let reason_type_to_yojson s = `String s
910+(** Spam: frequent unwanted promotion, replies, mentions *)
11let reason_spam = "com.atproto.moderation.defs#reasonSpam"
1213+(** Direct violation of server rules, laws, terms of service *)
14let reason_violation = "com.atproto.moderation.defs#reasonViolation"
1516+(** Misleading identity, affiliation, or content *)
17let reason_misleading = "com.atproto.moderation.defs#reasonMisleading"
1819+(** Unwanted or mislabeled sexual content *)
20let reason_sexual = "com.atproto.moderation.defs#reasonSexual"
2122+(** Rude, harassing, explicit, or otherwise unwelcoming behavior *)
23let reason_rude = "com.atproto.moderation.defs#reasonRude"
2425+(** Other: reports not falling under another report category *)
26let reason_other = "com.atproto.moderation.defs#reasonOther"
2728+(** Appeal: appeal a previously taken moderation action *)
29let reason_appeal = "com.atproto.moderation.defs#reasonAppeal"
3031(** string type with known values: Tag describing a type of subject that might be reported. *)
···1(* generated from com.atproto.server.deleteSession *)
23-(** Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). *)
4module Main = struct
5 let nsid = "com.atproto.server.deleteSession"
6
···1(* generated from com.atproto.server.deleteSession *)
23+(** Delete the current session. Requires auth. *)
4module Main = struct
5 let nsid = "com.atproto.server.deleteSession"
6