Module Cephalopod_models.Com_Atproto_Server_CreateAccount

lexicon "com.atproto.server.createAccount"

def main

type main_input = {
  1. email : string option;
  2. handle : string;
    (*

    Requested handle for the account. format: "Handle"

    *)
  3. did : string option;
    (*

    Pre-existing atproto DID, being imported to a new account. format: "Did"

    *)
  4. inviteCode : string option;
  5. verificationCode : string option;
  6. verificationPhone : string option;
  7. password : string option;
    (*

    Initial account password. May need to meet instance-specific password strength requirements.

    *)
  8. recoveryKey : string option;
    (*

    DID PLC rotation key (aka, recovery key) to be included in PLC creation operation.

    *)
  9. plcOp : Cephalopod_dasl.Value.t option;
    (*

    A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented.

    *)
}
val show_main_input : main_input -> Ppx_deriving_runtime.string
val main_input_to_value : main_input -> Cephalopod_dasl.Value.t
type main_output = {
  1. accessJwt : string;
  2. refreshJwt : string;
  3. handle : string;
    (*

    format: "Handle"

    *)
  4. did : string;
    (*

    The DID of the new account. format: "Did"

    *)
  5. didDoc : Cephalopod_dasl.Value.t option;
    (*

    Complete DID document.

    *)
}
val show_main_output : main_output -> Ppx_deriving_runtime.string
val main_output_of_value : main_output Cephalopod_dasl.Value.Util.conv
val main_output_to_value : main_output -> Cephalopod_dasl.Value.t
type main_error = [
  1. | `InvalidHandle
  2. | `InvalidPassword
  3. | `InvalidInviteCode
  4. | `HandleNotAvailable
  5. | `UnsupportedDomain
  6. | `UnresolvableDid
  7. | `IncompatibleDidDoc
]
val show_main_error : main_error -> Ppx_deriving_runtime.string

Create an account. Implemented by PDS.