17 class UploadKeysJob :
public BaseJob {
79 , std::string _accessToken
81 std::optional<DeviceKeys> deviceKeys = std::nullopt,
JsonWrap oneTimeKeys = {},
JsonWrap fallbackKeys = {}
101 using namespace Kazv;
145 bool success()
const;
159 immer::map<std::string, JsonWrap> failures()
const;
167 immer::map<std::string, immer::map<std::string, DeviceInformation>> deviceKeys()
const;
176 immer::map<std::string, CrossSigningKey> masterKeys()
const;
183 immer::map<std::string, CrossSigningKey> selfSigningKeys()
const;
191 immer::map<std::string, CrossSigningKey> userSigningKeys()
const;
220 , std::string _accessToken
222 immer::map<std::string, immer::array<std::string>> deviceKeys , std::optional<int> timeout = std::nullopt, std::optional<std::string> token = std::nullopt
229 static BaseJob::Body buildBody(immer::map<std::string, immer::array<std::string>> deviceKeys, std::optional<int> timeout, std::optional<std::string> token);
242 using namespace Kazv;
249 if (! jo.is_object()) { jo = json::object(); }
259 if (jo.contains(
"device_display_name"s)) {
271 if (! jo.is_object()) { jo = json::object(); }
283 if (jo.contains(
"unsigned"s)) {
309 bool success()
const;
323 immer::map<std::string, JsonWrap> failures()
const;
334 immer::map<std::string, immer::map<std::string, JsonWrap>> oneTimeKeys()
const;
356 , std::string _accessToken
358 immer::map<std::string, immer::map<std::string, std::string>> oneTimeKeys , std::optional<int> timeout = std::nullopt
365 static BaseJob::Body buildBody(immer::map<std::string, immer::map<std::string, std::string>> oneTimeKeys, std::optional<int> timeout);
378 using namespace Kazv;
408 bool success()
const;
417 immer::array<std::string> changed()
const;
423 immer::array<std::string> left()
const;
450 , std::string _accessToken
452 std::string from , std::string to
457 std::string from, std::string to);
459 static BaseJob::Body buildBody(std::string from, std::string to);
472 using namespace Kazv;