78 std::string
userId()
const;
112 std::optional<std::string>
homeServer()
const;
118 std::optional<std::string>
deviceId()
const;
168 std::string kind = std::string(
"user"), std::optional<AuthenticationData> auth = std::nullopt, std::optional<std::string> username = std::nullopt, std::optional<std::string> password = std::nullopt, std::optional<std::string> deviceId = std::nullopt, std::optional<std::string> initialDeviceDisplayName = std::nullopt, std::optional<bool> inhibitLogin = std::nullopt, std::optional<bool> refreshToken = std::nullopt
175 static BaseJob::Body buildBody(std::string kind, std::optional<AuthenticationData> auth, std::optional<std::string> username, std::optional<std::string> password, std::optional<std::string> deviceId, std::optional<std::string> initialDeviceDisplayName, std::optional<bool> inhibitLogin, std::optional<bool> refreshToken);
188 using namespace Kazv;
213 bool success()
const;
270 using namespace Kazv;
295 bool success()
const;
352 using namespace Kazv;
386 bool success()
const;
413 , std::string _accessToken
415 std::string newPassword , std::optional<bool> logoutDevices = std::nullopt, std::optional<AuthenticationData> auth = std::nullopt
422 static BaseJob::Body buildBody(std::string newPassword, std::optional<bool> logoutDevices, std::optional<AuthenticationData> auth);
435 using namespace Kazv;
471 bool success()
const;
537 using namespace Kazv;
573 bool success()
const;
639 using namespace Kazv;
674 bool success()
const;
689 std::string idServerUnbindResult()
const;
714 , std::string _accessToken
716 std::optional<AuthenticationData> auth = std::nullopt, std::optional<std::string> idServer = std::nullopt
723 static BaseJob::Body buildBody(std::optional<AuthenticationData> auth, std::optional<std::string> idServer);
736 using namespace Kazv;
769 bool success()
const;
778 std::optional<bool> available()
const;
802 std::string username);
817 using namespace Kazv;
Definition: registration.hpp:382
Changes a user's password.
Definition: registration.hpp:376
static constexpr auto needsAuth()
Definition: registration.hpp:389
Definition: registration.hpp:765
Checks to see if a username is available on the server.
Definition: registration.hpp:759
static constexpr auto needsAuth()
Definition: registration.hpp:781
Definition: registration.hpp:670
Deactivate a user's account.
Definition: registration.hpp:664
static constexpr auto needsAuth()
Definition: registration.hpp:692
Definition: registration.hpp:63
std::optional< int > expiresInMs() const
The lifetime of the access token, in milliseconds.
Definition: registration.cpp:133
std::optional< std::string > refreshToken() const
A refresh token for the account.
Definition: registration.cpp:122
bool success() const
Definition: registration.cpp:89
JobResponse(Response r)
Definition: registration.cpp:86
std::optional< std::string > accessToken() const
An access token for the account.
Definition: registration.cpp:111
std::string userId() const
The fully-qualified Matrix user ID (MXID) that has been registered.
Definition: registration.cpp:100
std::optional< std::string > deviceId() const
ID of the registered device.
Definition: registration.cpp:155
std::optional< std::string > homeServer() const
The server_name of the homeserver on which the account has been registered.
Definition: registration.cpp:144
Register for an account on this homeserver.
Definition: registration.hpp:57
RegisterJob withData(JsonWrap j) &&
Definition: registration.cpp:72
RegisterJob(std::string serverUrl, std::string kind=std::string("user"), std::optional< AuthenticationData > auth=std::nullopt, std::optional< std::string > username=std::nullopt, std::optional< std::string > password=std::nullopt, std::optional< std::string > deviceId=std::nullopt, std::optional< std::string > initialDeviceDisplayName=std::nullopt, std::optional< bool > inhibitLogin=std::nullopt, std::optional< bool > refreshToken=std::nullopt)
Register for an account on this homeserver.
Definition: registration.cpp:52
static BaseJob::Body buildBody(std::string kind, std::optional< AuthenticationData > auth, std::optional< std::string > username, std::optional< std::string > password, std::optional< std::string > deviceId, std::optional< std::string > initialDeviceDisplayName, std::optional< bool > inhibitLogin, std::optional< bool > refreshToken)
Definition: registration.cpp:22
static BaseJob::Query buildQuery(std::string kind)
Definition: registration.cpp:13
static constexpr auto needsAuth()
Definition: registration.hpp:121
Definition: registration.hpp:209
RequestTokenResponse data() const
An email has been sent to the specified address.
Definition: registration.hpp:222
Begins the validation process for an email to be used during registration.
Definition: registration.hpp:203
static constexpr auto needsAuth()
Definition: registration.hpp:231
Definition: registration.hpp:291
RequestTokenResponse data() const
An SMS message has been sent to the specified phone number.
Definition: registration.hpp:304
Requests a validation token be sent to the given phone number for the purpose of registering an accou...
Definition: registration.hpp:285
static constexpr auto needsAuth()
Definition: registration.hpp:313
Definition: registration.hpp:467
RequestTokenResponse data() const
An email was sent to the given address.
Definition: registration.hpp:478
Requests a validation token be sent to the given email address for the purpose of resetting a user's ...
Definition: registration.hpp:461
static constexpr auto needsAuth()
Definition: registration.hpp:487
Definition: registration.hpp:569
RequestTokenResponse data() const
An SMS message was sent to the given phone number.
Definition: registration.hpp:580
Requests a validation token be sent to the given phone number for the purpose of resetting a user's p...
Definition: registration.hpp:563
static constexpr auto needsAuth()
Definition: registration.hpp:589
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: request_email_validation.hpp:13
Definition: request_msisdn_validation.hpp:13
Definition: request_token_response.hpp:13
Definition: basejob.hpp:50