Module Cephalopod_models.Com_Atproto_Server_UpdateEmail

lexicon "com.atproto.server.updateEmail"

def main

type main_input = {
  1. email : string;
  2. emailAuthFactor : bool option;
  3. token : string option;
    (*

    Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.

    *)
}
val show_main_input : main_input -> Ppx_deriving_runtime.string
val main_input_to_value : main_input -> Cephalopod_dasl.Value.t
type main_error = [
  1. | `ExpiredToken
  2. | `InvalidToken
  3. | `TokenRequired
]
val show_main_error : main_error -> Ppx_deriving_runtime.string
val main : (unit, main_input, unit, main_error) Base.procedure

Update an account's email.