objective categorical abstract machine language personal data server

Update lexicons

futur.blue a16e0f1b 05aa5c69

verified
+352 -492
-4
pegasus/lexicons/app_bsky_actor_defs.ml
··· 68 68 let personal_details_pref_of_yojson = App_bsky_shared_1.personal_details_pref_of_yojson 69 69 let personal_details_pref_to_yojson = App_bsky_shared_1.personal_details_pref_to_yojson 70 70 71 - type declared_age_pref = App_bsky_shared_1.declared_age_pref 72 - let declared_age_pref_of_yojson = App_bsky_shared_1.declared_age_pref_of_yojson 73 - let declared_age_pref_to_yojson = App_bsky_shared_1.declared_age_pref_to_yojson 74 - 75 71 type feed_view_pref = App_bsky_shared_1.feed_view_pref 76 72 let feed_view_pref_of_yojson = App_bsky_shared_1.feed_view_pref_of_yojson 77 73 let feed_view_pref_to_yojson = App_bsky_shared_1.feed_view_pref_to_yojson
-2
pegasus/lexicons/app_bsky_actor_profile.ml
··· 26 26 { 27 27 display_name: string option [@key "displayName"] [@default None]; 28 28 description: string option [@default None]; 29 - pronouns: string option [@default None]; 30 - website: string option [@default None]; 31 29 avatar: Hermes.blob option [@default None]; 32 30 banner: Hermes.blob option [@default None]; 33 31 labels: labels option [@default None];
+13 -16
pegasus/lexicons/app_bsky_ageassurance_begin.ml
··· 5 5 let nsid = "app.bsky.ageassurance.begin" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 11 type input = 11 - { 12 - email: string; 13 - language: string; 14 - country_code: string [@key "countryCode"]; 15 - region_code: string option [@key "regionCode"] [@default None]; 16 - } 12 + { email: string 13 + ; language: string 14 + ; country_code: string [@key "countryCode"] 15 + ; region_code: string option [@key "regionCode"] [@default None] } 17 16 [@@deriving yojson {strict= false}] 18 17 19 18 type output = App_bsky_ageassurance_defs.state 20 - [@@deriving yojson {strict= false}] 19 + [@@deriving yojson {strict= false}] 21 20 22 - let call 23 - ~email 24 - ~language 25 - ~country_code 26 - ?region_code 27 - (client : Hermes.client) : output Lwt.t = 21 + let call ~email ~language ~country_code ?region_code (client : Hermes.client) 22 + : output Lwt.t = 28 23 let params = () in 29 - let input = Some ({email; language; country_code; region_code} |> input_to_yojson) in 30 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 24 + let input = 25 + Some ({email; language; country_code; region_code} |> input_to_yojson) 26 + in 27 + Hermes.procedure client nsid (params_to_yojson params) input 28 + output_of_yojson 31 29 end 32 -
+164 -131
pegasus/lexicons/app_bsky_ageassurance_defs.ml
··· 2 2 3 3 (** string type with known values: The access level granted based on Age Assurance data we've processed. *) 4 4 type access = string 5 + 5 6 let access_of_yojson = function 6 - | `String s -> Ok s 7 - | _ -> Error "access: expected string" 7 + | `String s -> 8 + Ok s 9 + | _ -> 10 + Error "access: expected string" 11 + 8 12 let access_to_yojson s = `String s 9 13 10 14 (** string type with known values: The status of the Age Assurance process. *) 11 15 type status = string 16 + 12 17 let status_of_yojson = function 13 - | `String s -> Ok s 14 - | _ -> Error "status: expected string" 18 + | `String s -> 19 + Ok s 20 + | _ -> 21 + Error "status: expected string" 22 + 15 23 let status_to_yojson s = `String s 16 24 17 25 type state = 18 - { 19 - last_initiated_at: string option [@key "lastInitiatedAt"] [@default None]; 20 - status: status; 21 - access: access; 22 - } 26 + { last_initiated_at: string option [@key "lastInitiatedAt"] [@default None] 27 + ; status: status 28 + ; access: access } 23 29 [@@deriving yojson {strict= false}] 24 30 25 31 type state_metadata = 26 - { 27 - account_created_at: string option [@key "accountCreatedAt"] [@default None]; 28 - } 32 + {account_created_at: string option [@key "accountCreatedAt"] [@default None]} 29 33 [@@deriving yojson {strict= false}] 30 34 31 - type config_region_rule_if_account_older_than = 32 - { 33 - date: string; 34 - access: access; 35 - } 35 + type config_region_rule_if_account_older_than = {date: string; access: access} 36 36 [@@deriving yojson {strict= false}] 37 37 38 - type config_region_rule_if_account_newer_than = 39 - { 40 - date: string; 41 - access: access; 42 - } 38 + type config_region_rule_if_account_newer_than = {date: string; access: access} 43 39 [@@deriving yojson {strict= false}] 44 40 45 - type config_region_rule_if_assured_under_age = 46 - { 47 - age: int; 48 - access: access; 49 - } 41 + type config_region_rule_if_assured_under_age = {age: int; access: access} 50 42 [@@deriving yojson {strict= false}] 51 43 52 - type config_region_rule_if_assured_over_age = 53 - { 54 - age: int; 55 - access: access; 56 - } 44 + type config_region_rule_if_assured_over_age = {age: int; access: access} 57 45 [@@deriving yojson {strict= false}] 58 46 59 - type config_region_rule_if_declared_under_age = 60 - { 61 - age: int; 62 - access: access; 63 - } 47 + type config_region_rule_if_declared_under_age = {age: int; access: access} 64 48 [@@deriving yojson {strict= false}] 65 49 66 - type config_region_rule_if_declared_over_age = 67 - { 68 - age: int; 69 - access: access; 70 - } 50 + type config_region_rule_if_declared_over_age = {age: int; access: access} 71 51 [@@deriving yojson {strict= false}] 72 52 73 - type config_region_rule_default = 74 - { 75 - access: access; 76 - } 53 + type config_region_rule_default = {access: access} 77 54 [@@deriving yojson {strict= false}] 78 55 79 56 type rules_item = 80 57 | ConfigRegionRuleDefault of config_region_rule_default 81 58 | ConfigRegionRuleIfDeclaredOverAge of config_region_rule_if_declared_over_age 82 - | ConfigRegionRuleIfDeclaredUnderAge of config_region_rule_if_declared_under_age 59 + | ConfigRegionRuleIfDeclaredUnderAge of 60 + config_region_rule_if_declared_under_age 83 61 | ConfigRegionRuleIfAssuredOverAge of config_region_rule_if_assured_over_age 84 62 | ConfigRegionRuleIfAssuredUnderAge of config_region_rule_if_assured_under_age 85 - | ConfigRegionRuleIfAccountNewerThan of config_region_rule_if_account_newer_than 86 - | ConfigRegionRuleIfAccountOlderThan of config_region_rule_if_account_older_than 63 + | ConfigRegionRuleIfAccountNewerThan of 64 + config_region_rule_if_account_newer_than 65 + | ConfigRegionRuleIfAccountOlderThan of 66 + config_region_rule_if_account_older_than 87 67 | Unknown of Yojson.Safe.t 88 68 89 69 let rules_item_of_yojson json = 90 70 let open Yojson.Safe.Util in 91 71 try 92 72 match json |> member "$type" |> to_string with 93 - | "app.bsky.ageassurance.defs#configRegionRuleDefault" -> 94 - (match config_region_rule_default_of_yojson json with 95 - | Ok v -> Ok (ConfigRegionRuleDefault v) 96 - | Error e -> Error e) 97 - | "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge" -> 98 - (match config_region_rule_if_declared_over_age_of_yojson json with 99 - | Ok v -> Ok (ConfigRegionRuleIfDeclaredOverAge v) 100 - | Error e -> Error e) 101 - | "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge" -> 102 - (match config_region_rule_if_declared_under_age_of_yojson json with 103 - | Ok v -> Ok (ConfigRegionRuleIfDeclaredUnderAge v) 104 - | Error e -> Error e) 105 - | "app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge" -> 106 - (match config_region_rule_if_assured_over_age_of_yojson json with 107 - | Ok v -> Ok (ConfigRegionRuleIfAssuredOverAge v) 108 - | Error e -> Error e) 109 - | "app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge" -> 110 - (match config_region_rule_if_assured_under_age_of_yojson json with 111 - | Ok v -> Ok (ConfigRegionRuleIfAssuredUnderAge v) 112 - | Error e -> Error e) 113 - | "app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan" -> 114 - (match config_region_rule_if_account_newer_than_of_yojson json with 115 - | Ok v -> Ok (ConfigRegionRuleIfAccountNewerThan v) 116 - | Error e -> Error e) 117 - | "app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan" -> 118 - (match config_region_rule_if_account_older_than_of_yojson json with 119 - | Ok v -> Ok (ConfigRegionRuleIfAccountOlderThan v) 120 - | Error e -> Error e) 121 - | _ -> Ok (Unknown json) 73 + | "app.bsky.ageassurance.defs#configRegionRuleDefault" -> ( 74 + match config_region_rule_default_of_yojson json with 75 + | Ok v -> 76 + Ok (ConfigRegionRuleDefault v) 77 + | Error e -> 78 + Error e ) 79 + | "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge" -> ( 80 + match config_region_rule_if_declared_over_age_of_yojson json with 81 + | Ok v -> 82 + Ok (ConfigRegionRuleIfDeclaredOverAge v) 83 + | Error e -> 84 + Error e ) 85 + | "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge" -> ( 86 + match config_region_rule_if_declared_under_age_of_yojson json with 87 + | Ok v -> 88 + Ok (ConfigRegionRuleIfDeclaredUnderAge v) 89 + | Error e -> 90 + Error e ) 91 + | "app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge" -> ( 92 + match config_region_rule_if_assured_over_age_of_yojson json with 93 + | Ok v -> 94 + Ok (ConfigRegionRuleIfAssuredOverAge v) 95 + | Error e -> 96 + Error e ) 97 + | "app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge" -> ( 98 + match config_region_rule_if_assured_under_age_of_yojson json with 99 + | Ok v -> 100 + Ok (ConfigRegionRuleIfAssuredUnderAge v) 101 + | Error e -> 102 + Error e ) 103 + | "app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan" -> ( 104 + match config_region_rule_if_account_newer_than_of_yojson json with 105 + | Ok v -> 106 + Ok (ConfigRegionRuleIfAccountNewerThan v) 107 + | Error e -> 108 + Error e ) 109 + | "app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan" -> ( 110 + match config_region_rule_if_account_older_than_of_yojson json with 111 + | Ok v -> 112 + Ok (ConfigRegionRuleIfAccountOlderThan v) 113 + | Error e -> 114 + Error e ) 115 + | _ -> 116 + Ok (Unknown json) 122 117 with _ -> Error "failed to parse union" 123 118 124 119 let rules_item_to_yojson = function 125 - | ConfigRegionRuleDefault v -> 126 - (match config_region_rule_default_to_yojson v with 127 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleDefault") :: fields) 128 - | other -> other) 129 - | ConfigRegionRuleIfDeclaredOverAge v -> 130 - (match config_region_rule_if_declared_over_age_to_yojson v with 131 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge") :: fields) 132 - | other -> other) 133 - | ConfigRegionRuleIfDeclaredUnderAge v -> 134 - (match config_region_rule_if_declared_under_age_to_yojson v with 135 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge") :: fields) 136 - | other -> other) 137 - | ConfigRegionRuleIfAssuredOverAge v -> 138 - (match config_region_rule_if_assured_over_age_to_yojson v with 139 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge") :: fields) 140 - | other -> other) 141 - | ConfigRegionRuleIfAssuredUnderAge v -> 142 - (match config_region_rule_if_assured_under_age_to_yojson v with 143 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge") :: fields) 144 - | other -> other) 145 - | ConfigRegionRuleIfAccountNewerThan v -> 146 - (match config_region_rule_if_account_newer_than_to_yojson v with 147 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan") :: fields) 148 - | other -> other) 149 - | ConfigRegionRuleIfAccountOlderThan v -> 150 - (match config_region_rule_if_account_older_than_to_yojson v with 151 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan") :: fields) 152 - | other -> other) 153 - | Unknown j -> j 120 + | ConfigRegionRuleDefault v -> ( 121 + match config_region_rule_default_to_yojson v with 122 + | `Assoc fields -> 123 + `Assoc 124 + ( ( "$type" 125 + , `String "app.bsky.ageassurance.defs#configRegionRuleDefault" ) 126 + :: fields ) 127 + | other -> 128 + other ) 129 + | ConfigRegionRuleIfDeclaredOverAge v -> ( 130 + match config_region_rule_if_declared_over_age_to_yojson v with 131 + | `Assoc fields -> 132 + `Assoc 133 + ( ( "$type" 134 + , `String 135 + "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge" 136 + ) 137 + :: fields ) 138 + | other -> 139 + other ) 140 + | ConfigRegionRuleIfDeclaredUnderAge v -> ( 141 + match config_region_rule_if_declared_under_age_to_yojson v with 142 + | `Assoc fields -> 143 + `Assoc 144 + ( ( "$type" 145 + , `String 146 + "app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge" 147 + ) 148 + :: fields ) 149 + | other -> 150 + other ) 151 + | ConfigRegionRuleIfAssuredOverAge v -> ( 152 + match config_region_rule_if_assured_over_age_to_yojson v with 153 + | `Assoc fields -> 154 + `Assoc 155 + ( ( "$type" 156 + , `String 157 + "app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge" ) 158 + :: fields ) 159 + | other -> 160 + other ) 161 + | ConfigRegionRuleIfAssuredUnderAge v -> ( 162 + match config_region_rule_if_assured_under_age_to_yojson v with 163 + | `Assoc fields -> 164 + `Assoc 165 + ( ( "$type" 166 + , `String 167 + "app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge" 168 + ) 169 + :: fields ) 170 + | other -> 171 + other ) 172 + | ConfigRegionRuleIfAccountNewerThan v -> ( 173 + match config_region_rule_if_account_newer_than_to_yojson v with 174 + | `Assoc fields -> 175 + `Assoc 176 + ( ( "$type" 177 + , `String 178 + "app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan" 179 + ) 180 + :: fields ) 181 + | other -> 182 + other ) 183 + | ConfigRegionRuleIfAccountOlderThan v -> ( 184 + match config_region_rule_if_account_older_than_to_yojson v with 185 + | `Assoc fields -> 186 + `Assoc 187 + ( ( "$type" 188 + , `String 189 + "app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan" 190 + ) 191 + :: fields ) 192 + | other -> 193 + other ) 194 + | Unknown j -> 195 + j 154 196 155 197 type config_region = 156 - { 157 - country_code: string [@key "countryCode"]; 158 - region_code: string option [@key "regionCode"] [@default None]; 159 - rules: rules_item list; 160 - } 198 + { country_code: string [@key "countryCode"] 199 + ; region_code: string option [@key "regionCode"] [@default None] 200 + ; rules: rules_item list } 161 201 [@@deriving yojson {strict= false}] 162 202 163 - type config = 164 - { 165 - regions: config_region list; 166 - } 167 - [@@deriving yojson {strict= false}] 203 + type config = {regions: config_region list} [@@deriving yojson {strict= false}] 168 204 169 205 type event = 170 - { 171 - created_at: string [@key "createdAt"]; 172 - attempt_id: string [@key "attemptId"]; 173 - status: string; 174 - access: string; 175 - country_code: string [@key "countryCode"]; 176 - region_code: string option [@key "regionCode"] [@default None]; 177 - email: string option [@default None]; 178 - init_ip: string option [@key "initIp"] [@default None]; 179 - init_ua: string option [@key "initUa"] [@default None]; 180 - complete_ip: string option [@key "completeIp"] [@default None]; 181 - complete_ua: string option [@key "completeUa"] [@default None]; 182 - } 206 + { created_at: string [@key "createdAt"] 207 + ; attempt_id: string [@key "attemptId"] 208 + ; status: string 209 + ; access: string 210 + ; country_code: string [@key "countryCode"] 211 + ; region_code: string option [@key "regionCode"] [@default None] 212 + ; email: string option [@default None] 213 + ; init_ip: string option [@key "initIp"] [@default None] 214 + ; init_ua: string option [@key "initUa"] [@default None] 215 + ; complete_ip: string option [@key "completeIp"] [@default None] 216 + ; complete_ua: string option [@key "completeUa"] [@default None] } 183 217 [@@deriving yojson {strict= false}] 184 -
+3 -4
pegasus/lexicons/app_bsky_ageassurance_getConfig.ml
··· 5 5 let nsid = "app.bsky.ageassurance.getConfig" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 11 type output = App_bsky_ageassurance_defs.config 11 - [@@deriving yojson {strict= false}] 12 + [@@deriving yojson {strict= false}] 12 13 13 - let call 14 - (client : Hermes.client) : output Lwt.t = 14 + let call (client : Hermes.client) : output Lwt.t = 15 15 Hermes.query client nsid (`Assoc []) output_of_yojson 16 16 end 17 -
+7 -15
pegasus/lexicons/app_bsky_ageassurance_getState.ml
··· 5 5 let nsid = "app.bsky.ageassurance.getState" 6 6 7 7 type params = 8 - { 9 - country_code: string [@key "countryCode"]; 10 - region_code: string option [@key "regionCode"] [@default None]; 11 - } 12 - [@@deriving yojson {strict= false}] 8 + { country_code: string [@key "countryCode"] 9 + ; region_code: string option [@key "regionCode"] [@default None] } 10 + [@@deriving yojson {strict= false}] 13 11 14 12 type output = 15 - { 16 - state: App_bsky_ageassurance_defs.state; 17 - metadata: App_bsky_ageassurance_defs.state_metadata; 18 - } 19 - [@@deriving yojson {strict= false}] 13 + { state: App_bsky_ageassurance_defs.state 14 + ; metadata: App_bsky_ageassurance_defs.state_metadata } 15 + [@@deriving yojson {strict= false}] 20 16 21 - let call 22 - ~country_code 23 - ?region_code 24 - (client : Hermes.client) : output Lwt.t = 17 + let call ~country_code ?region_code (client : Hermes.client) : output Lwt.t = 25 18 let params : params = {country_code; region_code} in 26 19 Hermes.query client nsid (params_to_yojson params) output_of_yojson 27 20 end 28 -
+6 -12
pegasus/lexicons/app_bsky_bookmark_createBookmark.ml
··· 5 5 let nsid = "app.bsky.bookmark.createBookmark" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - uri: string; 13 - cid: string; 14 - } 15 - [@@deriving yojson {strict= false}] 11 + type input = {uri: string; cid: string} [@@deriving yojson {strict= false}] 16 12 17 13 type output = unit 14 + 18 15 let output_of_yojson _ = Ok () 19 16 20 - let call 21 - ~uri 22 - ~cid 23 - (client : Hermes.client) : output Lwt.t = 17 + let call ~uri ~cid (client : Hermes.client) : output Lwt.t = 24 18 let params = () in 25 19 let input = Some ({uri; cid} |> input_to_yojson) in 26 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 20 + Hermes.procedure client nsid (params_to_yojson params) input 21 + output_of_yojson 27 22 end 28 -
+44 -36
pegasus/lexicons/app_bsky_bookmark_defs.ml
··· 1 1 (* generated from app.bsky.bookmark.defs *) 2 2 3 - type bookmark = 4 - { 5 - subject: Com_atproto_repo_strongRef.main; 6 - } 3 + type bookmark = {subject: Com_atproto_repo_strongRef.main} 7 4 [@@deriving yojson {strict= false}] 8 5 9 6 type item = ··· 16 13 let open Yojson.Safe.Util in 17 14 try 18 15 match json |> member "$type" |> to_string with 19 - | "app.bsky.feed.defs#blockedPost" -> 20 - (match App_bsky_feed_defs.blocked_post_of_yojson json with 21 - | Ok v -> Ok (BlockedPost v) 22 - | Error e -> Error e) 23 - | "app.bsky.feed.defs#notFoundPost" -> 24 - (match App_bsky_feed_defs.not_found_post_of_yojson json with 25 - | Ok v -> Ok (NotFoundPost v) 26 - | Error e -> Error e) 27 - | "app.bsky.feed.defs#postView" -> 28 - (match App_bsky_feed_defs.post_view_of_yojson json with 29 - | Ok v -> Ok (PostView v) 30 - | Error e -> Error e) 31 - | _ -> Ok (Unknown json) 16 + | "app.bsky.feed.defs#blockedPost" -> ( 17 + match App_bsky_feed_defs.blocked_post_of_yojson json with 18 + | Ok v -> 19 + Ok (BlockedPost v) 20 + | Error e -> 21 + Error e ) 22 + | "app.bsky.feed.defs#notFoundPost" -> ( 23 + match App_bsky_feed_defs.not_found_post_of_yojson json with 24 + | Ok v -> 25 + Ok (NotFoundPost v) 26 + | Error e -> 27 + Error e ) 28 + | "app.bsky.feed.defs#postView" -> ( 29 + match App_bsky_feed_defs.post_view_of_yojson json with 30 + | Ok v -> 31 + Ok (PostView v) 32 + | Error e -> 33 + Error e ) 34 + | _ -> 35 + Ok (Unknown json) 32 36 with _ -> Error "failed to parse union" 33 37 34 38 let item_to_yojson = function 35 - | BlockedPost v -> 36 - (match App_bsky_feed_defs.blocked_post_to_yojson v with 37 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.feed.defs#blockedPost") :: fields) 38 - | other -> other) 39 - | NotFoundPost v -> 40 - (match App_bsky_feed_defs.not_found_post_to_yojson v with 41 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.feed.defs#notFoundPost") :: fields) 42 - | other -> other) 43 - | PostView v -> 44 - (match App_bsky_feed_defs.post_view_to_yojson v with 45 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.feed.defs#postView") :: fields) 46 - | other -> other) 47 - | Unknown j -> j 39 + | BlockedPost v -> ( 40 + match App_bsky_feed_defs.blocked_post_to_yojson v with 41 + | `Assoc fields -> 42 + `Assoc (("$type", `String "app.bsky.feed.defs#blockedPost") :: fields) 43 + | other -> 44 + other ) 45 + | NotFoundPost v -> ( 46 + match App_bsky_feed_defs.not_found_post_to_yojson v with 47 + | `Assoc fields -> 48 + `Assoc (("$type", `String "app.bsky.feed.defs#notFoundPost") :: fields) 49 + | other -> 50 + other ) 51 + | PostView v -> ( 52 + match App_bsky_feed_defs.post_view_to_yojson v with 53 + | `Assoc fields -> 54 + `Assoc (("$type", `String "app.bsky.feed.defs#postView") :: fields) 55 + | other -> 56 + other ) 57 + | Unknown j -> 58 + j 48 59 49 60 type bookmark_view = 50 - { 51 - subject: Com_atproto_repo_strongRef.main; 52 - created_at: string option [@key "createdAt"] [@default None]; 53 - item: item; 54 - } 61 + { subject: Com_atproto_repo_strongRef.main 62 + ; created_at: string option [@key "createdAt"] [@default None] 63 + ; item: item } 55 64 [@@deriving yojson {strict= false}] 56 -
+6 -10
pegasus/lexicons/app_bsky_bookmark_deleteBookmark.ml
··· 5 5 let nsid = "app.bsky.bookmark.deleteBookmark" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - uri: string; 13 - } 14 - [@@deriving yojson {strict= false}] 11 + type input = {uri: string} [@@deriving yojson {strict= false}] 15 12 16 13 type output = unit 14 + 17 15 let output_of_yojson _ = Ok () 18 16 19 - let call 20 - ~uri 21 - (client : Hermes.client) : output Lwt.t = 17 + let call ~uri (client : Hermes.client) : output Lwt.t = 22 18 let params = () in 23 19 let input = Some ({uri} |> input_to_yojson) in 24 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 20 + Hermes.procedure client nsid (params_to_yojson params) input 21 + output_of_yojson 25 22 end 26 -
+6 -15
pegasus/lexicons/app_bsky_bookmark_getBookmarks.ml
··· 5 5 let nsid = "app.bsky.bookmark.getBookmarks" 6 6 7 7 type params = 8 - { 9 - limit: int option [@default None]; 10 - cursor: string option [@default None]; 11 - } 12 - [@@deriving yojson {strict= false}] 8 + {limit: int option [@default None]; cursor: string option [@default None]} 9 + [@@deriving yojson {strict= false}] 13 10 14 11 type output = 15 - { 16 - cursor: string option [@default None]; 17 - bookmarks: App_bsky_bookmark_defs.bookmark_view list; 18 - } 19 - [@@deriving yojson {strict= false}] 12 + { cursor: string option [@default None] 13 + ; bookmarks: App_bsky_bookmark_defs.bookmark_view list } 14 + [@@deriving yojson {strict= false}] 20 15 21 - let call 22 - ?limit 23 - ?cursor 24 - (client : Hermes.client) : output Lwt.t = 16 + let call ?limit ?cursor (client : Hermes.client) : output Lwt.t = 25 17 let params : params = {limit; cursor} in 26 18 Hermes.query client nsid (params_to_yojson params) output_of_yojson 27 19 end 28 -
+4 -14
pegasus/lexicons/app_bsky_contact_defs.ml
··· 1 1 (* generated from app.bsky.contact.defs *) 2 2 3 3 type match_and_contact_index = 4 - { 5 - match_: App_bsky_actor_defs.profile_view [@key "match"]; 6 - contact_index: int [@key "contactIndex"]; 7 - } 4 + { match_: App_bsky_actor_defs.profile_view [@key "match"] 5 + ; contact_index: int [@key "contactIndex"] } 8 6 [@@deriving yojson {strict= false}] 9 7 10 8 type sync_status = 11 - { 12 - synced_at: string [@key "syncedAt"]; 13 - matches_count: int [@key "matchesCount"]; 14 - } 9 + {synced_at: string [@key "syncedAt"]; matches_count: int [@key "matchesCount"]} 15 10 [@@deriving yojson {strict= false}] 16 11 17 - type notification = 18 - { 19 - from: string; 20 - to_: string [@key "to"]; 21 - } 12 + type notification = {from: string; to_: string [@key "to"]} 22 13 [@@deriving yojson {strict= false}] 23 -
+9 -12
pegasus/lexicons/app_bsky_contact_dismissMatch.ml
··· 5 5 let nsid = "app.bsky.contact.dismissMatch" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - subject: string; 13 - } 14 - [@@deriving yojson {strict= false}] 11 + type input = {subject: string} [@@deriving yojson {strict= false}] 15 12 16 13 type output = unit 17 - let output_of_yojson _ = Ok () 18 - let output_to_yojson () = `Assoc [] 14 + 15 + let output_of_yojson _ = Ok () 16 + 17 + let output_to_yojson () = `Assoc [] 19 18 20 - let call 21 - ~subject 22 - (client : Hermes.client) : output Lwt.t = 19 + let call ~subject (client : Hermes.client) : output Lwt.t = 23 20 let params = () in 24 21 let input = Some ({subject} |> input_to_yojson) in 25 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 22 + Hermes.procedure client nsid (params_to_yojson params) input 23 + output_of_yojson 26 24 end 27 -
+6 -15
pegasus/lexicons/app_bsky_contact_getMatches.ml
··· 5 5 let nsid = "app.bsky.contact.getMatches" 6 6 7 7 type params = 8 - { 9 - limit: int option [@default None]; 10 - cursor: string option [@default None]; 11 - } 12 - [@@deriving yojson {strict= false}] 8 + {limit: int option [@default None]; cursor: string option [@default None]} 9 + [@@deriving yojson {strict= false}] 13 10 14 11 type output = 15 - { 16 - cursor: string option [@default None]; 17 - matches: App_bsky_actor_defs.profile_view list; 18 - } 19 - [@@deriving yojson {strict= false}] 12 + { cursor: string option [@default None] 13 + ; matches: App_bsky_actor_defs.profile_view list } 14 + [@@deriving yojson {strict= false}] 20 15 21 - let call 22 - ?limit 23 - ?cursor 24 - (client : Hermes.client) : output Lwt.t = 16 + let call ?limit ?cursor (client : Hermes.client) : output Lwt.t = 25 17 let params : params = {limit; cursor} in 26 18 Hermes.query client nsid (params_to_yojson params) output_of_yojson 27 19 end 28 -
+5 -7
pegasus/lexicons/app_bsky_contact_getSyncStatus.ml
··· 5 5 let nsid = "app.bsky.contact.getSyncStatus" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 11 type output = 11 - { 12 - sync_status: App_bsky_contact_defs.sync_status option [@key "syncStatus"] [@default None]; 13 - } 14 - [@@deriving yojson {strict= false}] 12 + { sync_status: App_bsky_contact_defs.sync_status option 13 + [@key "syncStatus"] [@default None] } 14 + [@@deriving yojson {strict= false}] 15 15 16 - let call 17 - (client : Hermes.client) : output Lwt.t = 16 + let call (client : Hermes.client) : output Lwt.t = 18 17 Hermes.query client nsid (`Assoc []) output_of_yojson 19 18 end 20 -
+9 -15
pegasus/lexicons/app_bsky_contact_importContacts.ml
··· 5 5 let nsid = "app.bsky.contact.importContacts" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - token: string; 13 - contacts: string list; 14 - } 11 + type input = {token: string; contacts: string list} 15 12 [@@deriving yojson {strict= false}] 16 13 17 14 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}] 15 + { matches_and_contact_indexes: 16 + App_bsky_contact_defs.match_and_contact_index list 17 + [@key "matchesAndContactIndexes"] } 18 + [@@deriving yojson {strict= false}] 22 19 23 - let call 24 - ~token 25 - ~contacts 26 - (client : Hermes.client) : output Lwt.t = 20 + let call ~token ~contacts (client : Hermes.client) : output Lwt.t = 27 21 let params = () in 28 22 let input = Some ({token; contacts} |> input_to_yojson) in 29 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 23 + Hermes.procedure client nsid (params_to_yojson params) input 24 + output_of_yojson 30 25 end 31 -
+10 -6
pegasus/lexicons/app_bsky_contact_removeData.ml
··· 5 5 let nsid = "app.bsky.contact.removeData" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 11 type input = unit 12 + 11 13 let input_of_yojson _ = Ok () 14 + 12 15 let input_to_yojson () = `Assoc [] 13 16 14 17 type output = unit 15 - let output_of_yojson _ = Ok () 16 - let output_to_yojson () = `Assoc [] 17 18 18 - let call 19 - (client : Hermes.client) : output Lwt.t = 19 + let output_of_yojson _ = Ok () 20 + 21 + let output_to_yojson () = `Assoc [] 22 + 23 + let call (client : Hermes.client) : output Lwt.t = 20 24 let params = () in 21 25 let input = Some (input_to_yojson ()) in 22 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 26 + Hermes.procedure client nsid (params_to_yojson params) input 27 + output_of_yojson 23 28 end 24 -
+9 -13
pegasus/lexicons/app_bsky_contact_sendNotification.ml
··· 5 5 let nsid = "app.bsky.contact.sendNotification" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - from: string; 13 - to_: string [@key "to"]; 14 - } 11 + type input = {from: string; to_: string [@key "to"]} 15 12 [@@deriving yojson {strict= false}] 16 13 17 14 type output = unit 18 - let output_of_yojson _ = Ok () 19 - let output_to_yojson () = `Assoc [] 20 15 21 - let call 22 - ~from 23 - ~to_ 24 - (client : Hermes.client) : output Lwt.t = 16 + let output_of_yojson _ = Ok () 17 + 18 + let output_to_yojson () = `Assoc [] 19 + 20 + let call ~from ~to_ (client : Hermes.client) : output Lwt.t = 25 21 let params = () in 26 22 let input = Some ({from; to_} |> input_to_yojson) in 27 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 23 + Hermes.procedure client nsid (params_to_yojson params) input 24 + output_of_yojson 28 25 end 29 -
+9 -12
pegasus/lexicons/app_bsky_contact_startPhoneVerification.ml
··· 5 5 let nsid = "app.bsky.contact.startPhoneVerification" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - phone: string; 13 - } 14 - [@@deriving yojson {strict= false}] 11 + type input = {phone: string} [@@deriving yojson {strict= false}] 15 12 16 13 type output = unit 17 - let output_of_yojson _ = Ok () 18 - let output_to_yojson () = `Assoc [] 14 + 15 + let output_of_yojson _ = Ok () 16 + 17 + let output_to_yojson () = `Assoc [] 19 18 20 - let call 21 - ~phone 22 - (client : Hermes.client) : output Lwt.t = 19 + let call ~phone (client : Hermes.client) : output Lwt.t = 23 20 let params = () in 24 21 let input = Some ({phone} |> input_to_yojson) in 25 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 22 + Hermes.procedure client nsid (params_to_yojson params) input 23 + output_of_yojson 26 24 end 27 -
+6 -17
pegasus/lexicons/app_bsky_contact_verifyPhone.ml
··· 5 5 let nsid = "app.bsky.contact.verifyPhone" 6 6 7 7 type params = unit 8 + 8 9 let params_to_yojson () = `Assoc [] 9 10 10 - type input = 11 - { 12 - phone: string; 13 - code: string; 14 - } 15 - [@@deriving yojson {strict= false}] 11 + type input = {phone: string; code: string} [@@deriving yojson {strict= false}] 16 12 17 - type output = 18 - { 19 - token: string; 20 - } 21 - [@@deriving yojson {strict= false}] 13 + type output = {token: string} [@@deriving yojson {strict= false}] 22 14 23 - let call 24 - ~phone 25 - ~code 26 - (client : Hermes.client) : output Lwt.t = 15 + let call ~phone ~code (client : Hermes.client) : output Lwt.t = 27 16 let params = () in 28 17 let input = Some ({phone; code} |> input_to_yojson) in 29 - Hermes.procedure client nsid (params_to_yojson params) input output_of_yojson 18 + Hermes.procedure client nsid (params_to_yojson params) input 19 + output_of_yojson 30 20 end 31 -
-1
pegasus/lexicons/app_bsky_graph_follow.ml
··· 4 4 { 5 5 subject: string; 6 6 created_at: string [@key "createdAt"]; 7 - via: Com_atproto_repo_strongRef.main option [@default None]; 8 7 } 9 8 [@@deriving yojson {strict= false}] 10 9
+3 -37
pegasus/lexicons/app_bsky_shared_1.ml
··· 104 104 did: string; 105 105 handle: string; 106 106 display_name: string option [@key "displayName"] [@default None]; 107 - pronouns: string option [@default None]; 108 107 avatar: string option [@default None]; 109 108 associated: profile_associated option [@default None]; 110 109 viewer: actor_viewer_state option [@default None]; ··· 112 111 created_at: string option [@key "createdAt"] [@default None]; 113 112 verification: verification_state option [@default None]; 114 113 status: status_view option [@default None]; 115 - debug: Yojson.Safe.t option [@default None]; 116 114 } 117 115 and actor_viewer_state = { 118 116 muted: bool option [@default None]; ··· 136 134 let did = json |> member "did" |> to_string in 137 135 let handle = json |> member "handle" |> to_string in 138 136 let display_name = json |> member "displayName" |> to_option to_string in 139 - let pronouns = json |> member "pronouns" |> to_option to_string in 140 137 let avatar = json |> member "avatar" |> to_option to_string in 141 138 let associated = json |> member "associated" |> to_option (fun x -> match profile_associated_of_yojson x with Ok v -> Some v | _ -> None) |> Option.join in 142 139 let viewer = json |> member "viewer" |> to_option (fun x -> match actor_viewer_state_of_yojson x with Ok v -> Some v | _ -> None) |> Option.join in ··· 144 141 let created_at = json |> member "createdAt" |> to_option to_string in 145 142 let verification = json |> member "verification" |> to_option (fun x -> match verification_state_of_yojson x with Ok v -> Some v | _ -> None) |> Option.join in 146 143 let status = json |> member "status" |> to_option (fun x -> match status_view_of_yojson x with Ok v -> Some v | _ -> None) |> Option.join in 147 - let debug = json |> member "debug" |> to_option (fun j -> j) in 148 - Ok { did; handle; display_name; pronouns; avatar; associated; viewer; labels; created_at; verification; status; debug } 144 + Ok { did; handle; display_name; avatar; associated; viewer; labels; created_at; verification; status } 149 145 with e -> Error (Printexc.to_string e) 150 146 151 147 and actor_viewer_state_of_yojson json = ··· 176 172 ("did", (fun s -> `String s) r.did); 177 173 ("handle", (fun s -> `String s) r.handle); 178 174 ("displayName", match r.display_name with Some v -> (fun s -> `String s) v | None -> `Null); 179 - ("pronouns", match r.pronouns with Some v -> (fun s -> `String s) v | None -> `Null); 180 175 ("avatar", match r.avatar with Some v -> (fun s -> `String s) v | None -> `Null); 181 176 ("associated", match r.associated with Some v -> profile_associated_to_yojson v | None -> `Null); 182 177 ("viewer", match r.viewer with Some v -> actor_viewer_state_to_yojson v | None -> `Null); 183 178 ("labels", match r.labels with Some v -> (fun l -> `List (List.map Com_atproto_label_defs.label_to_yojson l)) v | None -> `Null); 184 179 ("createdAt", match r.created_at with Some v -> (fun s -> `String s) v | None -> `Null); 185 180 ("verification", match r.verification with Some v -> verification_state_to_yojson v | None -> `Null); 186 - ("status", match r.status with Some v -> status_view_to_yojson v | None -> `Null); 187 - ("debug", match r.debug with Some v -> (fun j -> j) v | None -> `Null) 181 + ("status", match r.status with Some v -> status_view_to_yojson v | None -> `Null) 188 182 ] 189 183 190 184 and actor_viewer_state_to_yojson (r : actor_viewer_state) = ··· 211 205 did: string; 212 206 handle: string; 213 207 display_name: string option [@key "displayName"] [@default None]; 214 - pronouns: string option [@default None]; 215 208 description: string option [@default None]; 216 209 avatar: string option [@default None]; 217 210 associated: profile_associated option [@default None]; ··· 221 214 labels: Com_atproto_label_defs.label list option [@default None]; 222 215 verification: verification_state option [@default None]; 223 216 status: status_view option [@default None]; 224 - debug: Yojson.Safe.t option [@default None]; 225 217 } 226 218 [@@deriving yojson {strict= false}] 227 219 ··· 245 237 handle: string; 246 238 display_name: string option [@key "displayName"] [@default None]; 247 239 description: string option [@default None]; 248 - pronouns: string option [@default None]; 249 - website: string option [@default None]; 250 240 avatar: string option [@default None]; 251 241 banner: string option [@default None]; 252 242 followers_count: int option [@key "followersCount"] [@default None]; ··· 261 251 pinned_post: Com_atproto_repo_strongRef.main option [@key "pinnedPost"] [@default None]; 262 252 verification: verification_state option [@default None]; 263 253 status: status_view option [@default None]; 264 - debug: Yojson.Safe.t option [@default None]; 265 254 } 266 255 [@@deriving yojson {strict= false}] 267 256 ··· 422 411 type thread_view_pref = 423 412 { 424 413 sort: string option [@default None]; 414 + prioritize_followed_users: bool option [@key "prioritizeFollowedUsers"] [@default None]; 425 415 } 426 416 [@@deriving yojson {strict= false}] 427 417 ··· 436 426 } 437 427 [@@deriving yojson {strict= false}] 438 428 439 - type declared_age_pref = 440 - { 441 - is_over_age13: bool option [@key "isOverAge13"] [@default None]; 442 - is_over_age16: bool option [@key "isOverAge16"] [@default None]; 443 - is_over_age18: bool option [@key "isOverAge18"] [@default None]; 444 - } 445 - [@@deriving yojson {strict= false}] 446 - 447 429 type personal_details_pref = 448 430 { 449 431 birth_date: string option [@key "birthDate"] [@default None]; ··· 493 475 | SavedFeedsPref of saved_feeds_pref 494 476 | SavedFeedsPrefV2 of saved_feeds_pref_v2 495 477 | PersonalDetailsPref of personal_details_pref 496 - | DeclaredAgePref of declared_age_pref 497 478 | FeedViewPref of feed_view_pref 498 479 | ThreadViewPref of thread_view_pref 499 480 | InterestsPref of interests_pref ··· 529 510 (match personal_details_pref_of_yojson json with 530 511 | Ok v -> Ok (PersonalDetailsPref v) 531 512 | Error e -> Error e) 532 - | "app.bsky.actor.defs#declaredAgePref" -> 533 - (match declared_age_pref_of_yojson json with 534 - | Ok v -> Ok (DeclaredAgePref v) 535 - | Error e -> Error e) 536 513 | "app.bsky.actor.defs#feedViewPref" -> 537 514 (match feed_view_pref_of_yojson json with 538 515 | Ok v -> Ok (FeedViewPref v) ··· 593 570 (match personal_details_pref_to_yojson v with 594 571 | `Assoc fields -> `Assoc (("$type", `String "app.bsky.actor.defs#personalDetailsPref") :: fields) 595 572 | other -> other) 596 - | DeclaredAgePref v -> 597 - (match declared_age_pref_to_yojson v with 598 - | `Assoc fields -> `Assoc (("$type", `String "app.bsky.actor.defs#declaredAgePref") :: fields) 599 - | other -> other) 600 573 | FeedViewPref v -> 601 574 (match feed_view_pref_to_yojson v with 602 575 | `Assoc fields -> `Assoc (("$type", `String "app.bsky.actor.defs#feedViewPref") :: fields) ··· 1016 989 { 1017 990 repost: string option [@default None]; 1018 991 like: string option [@default None]; 1019 - bookmarked: bool option [@default None]; 1020 992 thread_muted: bool option [@key "threadMuted"] [@default None]; 1021 993 reply_disabled: bool option [@key "replyDisabled"] [@default None]; 1022 994 embedding_disabled: bool option [@key "embeddingDisabled"] [@default None]; ··· 1089 1061 author: profile_view_basic; 1090 1062 record: Yojson.Safe.t; 1091 1063 embed: embeds_item option [@default None]; 1092 - bookmark_count: int option [@key "bookmarkCount"] [@default None]; 1093 1064 reply_count: int option [@key "replyCount"] [@default None]; 1094 1065 repost_count: int option [@key "repostCount"] [@default None]; 1095 1066 like_count: int option [@key "likeCount"] [@default None]; ··· 1098 1069 viewer: feed_viewer_state option [@default None]; 1099 1070 labels: Com_atproto_label_defs.label list option [@default None]; 1100 1071 threadgate: threadgate_view option [@default None]; 1101 - debug: Yojson.Safe.t option [@default None]; 1102 1072 } 1103 1073 [@@deriving yojson {strict= false}] 1104 1074 ··· 1442 1412 did: string; 1443 1413 following: string option [@default None]; 1444 1414 followed_by: string option [@key "followedBy"] [@default None]; 1445 - blocking: string option [@default None]; 1446 - blocked_by: string option [@key "blockedBy"] [@default None]; 1447 - blocking_by_list: string option [@key "blockingByList"] [@default None]; 1448 - blocked_by_list: string option [@key "blockedByList"] [@default None]; 1449 1415 } 1450 1416 [@@deriving yojson {strict= false}] 1451 1417
+6 -13
pegasus/lexicons/app_bsky_unspecced_getOnboardingSuggestedStarterPacks.ml
··· 4 4 module Main = struct 5 5 let nsid = "app.bsky.unspecced.getOnboardingSuggestedStarterPacks" 6 6 7 - type params = 8 - { 9 - limit: int option [@default None]; 10 - } 11 - [@@deriving yojson {strict= false}] 7 + type params = {limit: int option [@default None]} 8 + [@@deriving yojson {strict= false}] 12 9 13 10 type output = 14 - { 15 - starter_packs: App_bsky_graph_defs.starter_pack_view list [@key "starterPacks"]; 16 - } 17 - [@@deriving yojson {strict= false}] 11 + { starter_packs: App_bsky_graph_defs.starter_pack_view list 12 + [@key "starterPacks"] } 13 + [@@deriving yojson {strict= false}] 18 14 19 - let call 20 - ?limit 21 - (client : Hermes.client) : output Lwt.t = 15 + let call ?limit (client : Hermes.client) : output Lwt.t = 22 16 let params : params = {limit} in 23 17 Hermes.query client nsid (params_to_yojson params) output_of_yojson 24 18 end 25 -
+5 -15
pegasus/lexicons/app_bsky_unspecced_getOnboardingSuggestedStarterPacksSkeleton.ml
··· 5 5 let nsid = "app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton" 6 6 7 7 type params = 8 - { 9 - viewer: string option [@default None]; 10 - limit: int option [@default None]; 11 - } 12 - [@@deriving yojson {strict= false}] 8 + {viewer: string option [@default None]; limit: int option [@default None]} 9 + [@@deriving yojson {strict= false}] 13 10 14 - type output = 15 - { 16 - starter_packs: string list [@key "starterPacks"]; 17 - } 18 - [@@deriving yojson {strict= false}] 11 + type output = {starter_packs: string list [@key "starterPacks"]} 12 + [@@deriving yojson {strict= false}] 19 13 20 - let call 21 - ?viewer 22 - ?limit 23 - (client : Hermes.client) : output Lwt.t = 14 + let call ?viewer ?limit (client : Hermes.client) : output Lwt.t = 24 15 let params : params = {viewer; limit} in 25 16 Hermes.query client nsid (params_to_yojson params) output_of_yojson 26 17 end 27 -
+3 -1
pegasus/lexicons/app_bsky_unspecced_getPostThreadOtherV2.ml
··· 37 37 type params = 38 38 { 39 39 anchor: string; 40 + prioritize_followed_users: bool option [@key "prioritizeFollowedUsers"] [@default None]; 40 41 } 41 42 [@@deriving yojson {strict= false}] 42 43 ··· 48 49 49 50 let call 50 51 ~anchor 52 + ?prioritize_followed_users 51 53 (client : Hermes.client) : output Lwt.t = 52 - let params : params = {anchor} in 54 + let params : params = {anchor; prioritize_followed_users} in 53 55 Hermes.query client nsid (params_to_yojson params) output_of_yojson 54 56 end 55 57
+3 -1
pegasus/lexicons/app_bsky_unspecced_getPostThreadV2.ml
··· 67 67 above: bool option [@default None]; 68 68 below: int option [@default None]; 69 69 branching_factor: int option [@key "branchingFactor"] [@default None]; 70 + prioritize_followed_users: bool option [@key "prioritizeFollowedUsers"] [@default None]; 70 71 sort: string option [@default None]; 71 72 } 72 73 [@@deriving yojson {strict= false}] ··· 84 85 ?above 85 86 ?below 86 87 ?branching_factor 88 + ?prioritize_followed_users 87 89 ?sort 88 90 (client : Hermes.client) : output Lwt.t = 89 - let params : params = {anchor; above; below; branching_factor; sort} in 91 + let params : params = {anchor; above; below; branching_factor; prioritize_followed_users; sort} in 90 92 Hermes.query client nsid (params_to_yojson params) output_of_yojson 91 93 end 92 94
+4 -15
pegasus/lexicons/com_atproto_lexicon_resolveLexicon.ml
··· 4 4 module Main = struct 5 5 let nsid = "com.atproto.lexicon.resolveLexicon" 6 6 7 - type params = 8 - { 9 - nsid: string; 10 - } 11 - [@@deriving yojson {strict= false}] 7 + type params = {nsid: string} [@@deriving yojson {strict= false}] 12 8 13 9 type output = 14 - { 15 - cid: string; 16 - schema: Com_atproto_lexicon_schema.main; 17 - uri: string; 18 - } 19 - [@@deriving yojson {strict= false}] 10 + {cid: string; schema: Com_atproto_lexicon_schema.main; uri: string} 11 + [@@deriving yojson {strict= false}] 20 12 21 - let call 22 - ~nsid 23 - (client : Hermes.client) : output Lwt.t = 13 + let call ~nsid (client : Hermes.client) : output Lwt.t = 24 14 let params : params = {nsid} in 25 15 Hermes.query client nsid (params_to_yojson params) output_of_yojson 26 16 end 27 -
+7 -7
pegasus/lexicons/com_atproto_moderation_defs.ml
··· 7 7 | _ -> Error "reason_type: expected string" 8 8 let reason_type_to_yojson s = `String s 9 9 10 - (** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. *) 10 + (** Spam: frequent unwanted promotion, replies, mentions *) 11 11 let reason_spam = "com.atproto.moderation.defs#reasonSpam" 12 12 13 - (** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. *) 13 + (** Direct violation of server rules, laws, terms of service *) 14 14 let reason_violation = "com.atproto.moderation.defs#reasonViolation" 15 15 16 - (** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. *) 16 + (** Misleading identity, affiliation, or content *) 17 17 let reason_misleading = "com.atproto.moderation.defs#reasonMisleading" 18 18 19 - (** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. *) 19 + (** Unwanted or mislabeled sexual content *) 20 20 let reason_sexual = "com.atproto.moderation.defs#reasonSexual" 21 21 22 - (** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. *) 22 + (** Rude, harassing, explicit, or otherwise unwelcoming behavior *) 23 23 let reason_rude = "com.atproto.moderation.defs#reasonRude" 24 24 25 - (** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonOther`. *) 25 + (** Other: reports not falling under another report category *) 26 26 let reason_other = "com.atproto.moderation.defs#reasonOther" 27 27 28 - (** Appeal a previously taken moderation action *) 28 + (** Appeal: appeal a previously taken moderation action *) 29 29 let reason_appeal = "com.atproto.moderation.defs#reasonAppeal" 30 30 31 31 (** string type with known values: Tag describing a type of subject that might be reported. *)
+1 -1
pegasus/lexicons/com_atproto_server_deleteSession.ml
··· 1 1 (* generated from com.atproto.server.deleteSession *) 2 2 3 - (** Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). *) 3 + (** Delete the current session. Requires auth. *) 4 4 module Main = struct 5 5 let nsid = "com.atproto.server.deleteSession" 6 6
+1 -1
pegasus/lexicons/com_atproto_server_getSession.ml
··· 11 11 { 12 12 handle: string; 13 13 did: string; 14 - did_doc: Yojson.Safe.t option [@key "didDoc"] [@default None]; 15 14 email: string option [@default None]; 16 15 email_confirmed: bool option [@key "emailConfirmed"] [@default None]; 17 16 email_auth_factor: bool option [@key "emailAuthFactor"] [@default None]; 17 + did_doc: Yojson.Safe.t option [@key "didDoc"] [@default None]; 18 18 active: bool option [@default None]; 19 19 status: string option [@default None]; 20 20 }
-3
pegasus/lexicons/com_atproto_server_refreshSession.ml
··· 14 14 handle: string; 15 15 did: string; 16 16 did_doc: Yojson.Safe.t option [@key "didDoc"] [@default None]; 17 - email: string option [@default None]; 18 - email_confirmed: bool option [@key "emailConfirmed"] [@default None]; 19 - email_auth_factor: bool option [@key "emailAuthFactor"] [@default None]; 20 17 active: bool option [@default None]; 21 18 status: string option [@default None]; 22 19 }
+3 -14
pegasus/lexicons/com_atproto_temp_dereferenceScope.ml
··· 4 4 module Main = struct 5 5 let nsid = "com.atproto.temp.dereferenceScope" 6 6 7 - type params = 8 - { 9 - scope: string; 10 - } 11 - [@@deriving yojson {strict= false}] 7 + type params = {scope: string} [@@deriving yojson {strict= false}] 12 8 13 - type output = 14 - { 15 - scope: string; 16 - } 17 - [@@deriving yojson {strict= false}] 9 + type output = {scope: string} [@@deriving yojson {strict= false}] 18 10 19 - let call 20 - ~scope 21 - (client : Hermes.client) : output Lwt.t = 11 + let call ~scope (client : Hermes.client) : output Lwt.t = 22 12 let params : params = {scope} in 23 13 Hermes.query client nsid (params_to_yojson params) output_of_yojson 24 14 end 25 -
-27
pegasus/lexicons/lexicons.ml
··· 8 8 module GetJobStatus = App_bsky_video_getJobStatus 9 9 module GetUploadLimits = App_bsky_video_getUploadLimits 10 10 end 11 - module Contact = struct 12 - module Defs = App_bsky_contact_defs 13 - module SendNotification = App_bsky_contact_sendNotification 14 - module GetSyncStatus = App_bsky_contact_getSyncStatus 15 - module StartPhoneVerification = App_bsky_contact_startPhoneVerification 16 - module GetMatches = App_bsky_contact_getMatches 17 - module ImportContacts = App_bsky_contact_importContacts 18 - module DismissMatch = App_bsky_contact_dismissMatch 19 - module RemoveData = App_bsky_contact_removeData 20 - module VerifyPhone = App_bsky_contact_verifyPhone 21 - end 22 - module Bookmark = struct 23 - module Defs = App_bsky_bookmark_defs 24 - module DeleteBookmark = App_bsky_bookmark_deleteBookmark 25 - module GetBookmarks = App_bsky_bookmark_getBookmarks 26 - module CreateBookmark = App_bsky_bookmark_createBookmark 27 - end 28 11 module Embed = struct 29 12 module Defs = App_bsky_embed_defs 30 13 module Record = App_bsky_embed_record ··· 51 34 module GetSuggestedFeedsSkeleton = App_bsky_unspecced_getSuggestedFeedsSkeleton 52 35 module SearchStarterPacksSkeleton = App_bsky_unspecced_searchStarterPacksSkeleton 53 36 module Defs = App_bsky_unspecced_defs 54 - module GetOnboardingSuggestedStarterPacksSkeleton = App_bsky_unspecced_getOnboardingSuggestedStarterPacksSkeleton 55 37 module GetSuggestedUsers = App_bsky_unspecced_getSuggestedUsers 56 38 module GetPostThreadOtherV2 = App_bsky_unspecced_getPostThreadOtherV2 57 39 module GetSuggestedStarterPacks = App_bsky_unspecced_getSuggestedStarterPacks 58 40 module GetSuggestedStarterPacksSkeleton = App_bsky_unspecced_getSuggestedStarterPacksSkeleton 59 - module GetOnboardingSuggestedStarterPacks = App_bsky_unspecced_getOnboardingSuggestedStarterPacks 60 41 module GetSuggestedUsersSkeleton = App_bsky_unspecced_getSuggestedUsersSkeleton 61 42 module GetPostThreadV2 = App_bsky_unspecced_getPostThreadV2 62 43 module GetTrends = App_bsky_unspecced_getTrends ··· 135 116 module Richtext = struct 136 117 module Facet = App_bsky_richtext_facet 137 118 end 138 - module Ageassurance = struct 139 - module Begin = App_bsky_ageassurance_begin 140 - module Defs = App_bsky_ageassurance_defs 141 - module GetState = App_bsky_ageassurance_getState 142 - module GetConfig = App_bsky_ageassurance_getConfig 143 - end 144 119 module Actor = struct 145 120 module SearchActorsTypeahead = App_bsky_actor_searchActorsTypeahead 146 121 module Defs = App_bsky_actor_defs ··· 163 138 module Com = struct 164 139 module Atproto = struct 165 140 module Temp = struct 166 - module DereferenceScope = Com_atproto_temp_dereferenceScope 167 141 module AddReservedHandle = Com_atproto_temp_addReservedHandle 168 142 module CheckSignupQueue = Com_atproto_temp_checkSignupQueue 169 143 module CheckHandleAvailability = Com_atproto_temp_checkHandleAvailability ··· 234 208 module CreateInviteCode = Com_atproto_server_createInviteCode 235 209 end 236 210 module Lexicon = struct 237 - module ResolveLexicon = Com_atproto_lexicon_resolveLexicon 238 211 module Schema = Com_atproto_lexicon_schema 239 212 end 240 213 module Sync = struct