@lifeready/core 6.1.3 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/bundles/lifeready-core.umd.js +303 -295
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +1 -1
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/auth/auth.config.js +57 -0
  6. package/esm2015/lib/auth/auth.gql.private.js +85 -0
  7. package/esm2015/lib/auth/auth.service.js +602 -0
  8. package/esm2015/lib/auth/auth.types.js +21 -0
  9. package/esm2015/lib/idle/idle.service.js +3 -3
  10. package/esm2015/lib/item/item.gql.js +164 -0
  11. package/esm2015/lib/item/item.gql.private.js +23 -0
  12. package/esm2015/lib/item/item.service.js +592 -0
  13. package/esm2015/lib/item/item.types.js +2 -0
  14. package/esm2015/lib/key-exchange/key-exchange.gql.js +174 -0
  15. package/esm2015/lib/key-exchange/key-exchange.service.js +480 -0
  16. package/esm2015/lib/lbop/lbop.service.js +7 -15
  17. package/esm2015/lib/life-ready.module.js +2 -2
  18. package/esm2015/lib/password/password.service.js +1 -1
  19. package/esm2015/lib/plan/plan.gql.js +91 -0
  20. package/esm2015/lib/plan/plan.service.js +191 -0
  21. package/esm2015/lib/plan/plan.types.js +2 -0
  22. package/esm2015/lib/profile/profile.gql.js +2 -2
  23. package/esm2015/lib/profile/profile.service.js +1 -8
  24. package/esm2015/lib/profile/profile.types.js +1 -8
  25. package/esm2015/lib/scenario/scenario.service.js +8 -8
  26. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +1 -1
  27. package/esm2015/lib/trusted-party/trusted-party.gql.js +64 -0
  28. package/esm2015/lib/trusted-party/trusted-party.gql.private.js +25 -0
  29. package/esm2015/lib/trusted-party/trusted-party.service.js +240 -0
  30. package/esm2015/lib/trusted-party/trusted-party.types.js +2 -0
  31. package/esm2015/public-api.js +17 -12
  32. package/fesm2015/lifeready-core.js +191 -213
  33. package/fesm2015/lifeready-core.js.map +1 -1
  34. package/lib/{auth2/auth2.service.d.ts → auth/auth.service.d.ts} +2 -2
  35. package/lib/idle/idle.service.d.ts +9 -2
  36. package/lib/{item2/item2.service.d.ts → item/item.service.d.ts} +39 -39
  37. package/lib/key-exchange/{key-exchange2.service.d.ts → key-exchange.service.d.ts} +2 -2
  38. package/lib/lbop/lbop.service.d.ts +1 -5
  39. package/lib/password/password.service.d.ts +1 -1
  40. package/lib/{plan2/plan2.service.d.ts → plan/plan.service.d.ts} +20 -20
  41. package/lib/profile/profile.service.d.ts +1 -2
  42. package/lib/profile/profile.types.d.ts +2 -15
  43. package/lib/scenario/scenario.service.d.ts +3 -3
  44. package/lib/shared-contact-card/shared-contact-card2.service.d.ts +1 -1
  45. package/lib/trusted-party/{trusted-party2.service.d.ts → trusted-party.service.d.ts} +6 -6
  46. package/lifeready-core.metadata.json +1 -1
  47. package/package.json +1 -1
  48. package/public-api.d.ts +16 -11
  49. package/esm2015/lib/auth2/auth.config.js +0 -57
  50. package/esm2015/lib/auth2/auth2.gql.private.js +0 -85
  51. package/esm2015/lib/auth2/auth2.service.js +0 -602
  52. package/esm2015/lib/auth2/auth2.types.js +0 -21
  53. package/esm2015/lib/item2/item2.gql.js +0 -164
  54. package/esm2015/lib/item2/item2.gql.private.js +0 -23
  55. package/esm2015/lib/item2/item2.service.js +0 -592
  56. package/esm2015/lib/item2/item2.types.js +0 -2
  57. package/esm2015/lib/key-exchange/key-exchange2.gql.js +0 -174
  58. package/esm2015/lib/key-exchange/key-exchange2.service.js +0 -480
  59. package/esm2015/lib/plan2/plan2.gql.js +0 -91
  60. package/esm2015/lib/plan2/plan2.service.js +0 -191
  61. package/esm2015/lib/plan2/plan2.types.js +0 -2
  62. package/esm2015/lib/trusted-party/trusted-party2.gql.js +0 -64
  63. package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +0 -25
  64. package/esm2015/lib/trusted-party/trusted-party2.service.js +0 -240
  65. package/esm2015/lib/trusted-party/trusted-party2.types.js +0 -2
  66. /package/lib/{auth2 → auth}/auth.config.d.ts +0 -0
  67. /package/lib/{auth2/auth2.gql.private.d.ts → auth/auth.gql.private.d.ts} +0 -0
  68. /package/lib/{auth2/auth2.types.d.ts → auth/auth.types.d.ts} +0 -0
  69. /package/lib/{item2/item2.gql.d.ts → item/item.gql.d.ts} +0 -0
  70. /package/lib/{item2/item2.gql.private.d.ts → item/item.gql.private.d.ts} +0 -0
  71. /package/lib/{item2/item2.types.d.ts → item/item.types.d.ts} +0 -0
  72. /package/lib/key-exchange/{key-exchange2.gql.d.ts → key-exchange.gql.d.ts} +0 -0
  73. /package/lib/{plan2/plan2.gql.d.ts → plan/plan.gql.d.ts} +0 -0
  74. /package/lib/{plan2/plan2.types.d.ts → plan/plan.types.d.ts} +0 -0
  75. /package/lib/trusted-party/{trusted-party2.gql.d.ts → trusted-party.gql.d.ts} +0 -0
  76. /package/lib/trusted-party/{trusted-party2.gql.private.d.ts → trusted-party.gql.private.d.ts} +0 -0
  77. /package/lib/trusted-party/{trusted-party2.types.d.ts → trusted-party.types.d.ts} +0 -0
@@ -3961,7 +3961,7 @@
3961
3961
  case 0:
3962
3962
  console.log('Idle timed out');
3963
3963
  this.reset();
3964
- return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout())];
3964
+ return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout({ onInit: false }))];
3965
3965
  case 1:
3966
3966
  _a.sent();
3967
3967
  return [2 /*return*/];
@@ -3983,7 +3983,7 @@
3983
3983
  if (!(idleExpiry &&
3984
3984
  parseInt(idleExpiry, 10) + this.idle.getTimeout() * 1000 < Date.now())) return [3 /*break*/, 2];
3985
3985
  this.reset();
3986
- return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout())];
3986
+ return [4 /*yield*/, Promise.resolve(this.onTimeout && this.onTimeout({ onInit: true }))];
3987
3987
  case 1:
3988
3988
  _a.sent();
3989
3989
  _a.label = 2;
@@ -4431,15 +4431,6 @@
4431
4431
  }
4432
4432
  return MainContactCardPlainFields;
4433
4433
  }());
4434
- (function (PasswordChangeStatus) {
4435
- PasswordChangeStatus["InProgress"] = "IN_PROGRESS";
4436
- PasswordChangeStatus["Recovery"] = "RECOVERY";
4437
- })(exports.PasswordChangeStatus || (exports.PasswordChangeStatus = {}));
4438
- var PassIdpApiResult = /** @class */ (function () {
4439
- function PassIdpApiResult() {
4440
- }
4441
- return PassIdpApiResult;
4442
- }());
4443
4434
  var TrustedPartyDetails = /** @class */ (function () {
4444
4435
  function TrustedPartyDetails() {
4445
4436
  }
@@ -4598,18 +4589,6 @@
4598
4589
  this.keyGraph = keyGraph;
4599
4590
  this.encryptionService = encryptionService;
4600
4591
  }
4601
- ProfileService.prototype.getPassIdpParams = function (emailOrPhone) {
4602
- return __awaiter(this, void 0, void 0, function () {
4603
- return __generator(this, function (_a) {
4604
- switch (_a.label) {
4605
- case 0: return [4 /*yield*/, this.http
4606
- .get(this.config.authUrl + "users/pass-idp-params/?login_name=" + encodeURIComponent(emailOrPhone))
4607
- .toPromise()];
4608
- case 1: return [2 /*return*/, _a.sent()];
4609
- }
4610
- });
4611
- });
4612
- };
4613
4592
  ProfileService.prototype.getCurrentUser = function () {
4614
4593
  return __awaiter(this, void 0, void 0, function () {
4615
4594
  var _a, currentUser, contactCards, contactCard;
@@ -6044,38 +6023,26 @@
6044
6023
  var SetSessionEncryptionKeyMutation = gqlTyped(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\nmutation SetSessionEncryptionKeyMutation($input: SetSessionEncryptionKeyInput!) {\n setSessionEncryptionKey(input: $input) {\n sessionEncryptionKey\n }\n}\n"], ["\nmutation SetSessionEncryptionKeyMutation($input: SetSessionEncryptionKeyInput!) {\n setSessionEncryptionKey(input: $input) {\n sessionEncryptionKey\n }\n}\n"])));
6045
6024
  var templateObject_1$c, templateObject_2$7, templateObject_3$6;
6046
6025
 
6047
- var RecoveryStatus;
6048
6026
  (function (RecoveryStatus) {
6049
6027
  RecoveryStatus["NONE"] = "NONE";
6050
6028
  RecoveryStatus["NEW_PASSWORD"] = "NEW_PASSWORD";
6051
6029
  RecoveryStatus["OLD_PASSWORD"] = "OLD_PASSWORD";
6052
- })(RecoveryStatus || (RecoveryStatus = {}));
6053
- // TODO restrict this type
6054
- // export type AuthResetUser = TpPasswordResetUserNode;
6055
- var PasswordChangeStatus;
6030
+ })(exports.RecoveryStatus || (exports.RecoveryStatus = {}));
6056
6031
  (function (PasswordChangeStatus) {
6057
6032
  PasswordChangeStatus["IN_PROGRESS"] = "IN_PROGRESS";
6058
6033
  PasswordChangeStatus["RECOVERY"] = "RECOVERY";
6059
- })(PasswordChangeStatus || (PasswordChangeStatus = {}));
6060
- var CognitoChallengeName;
6034
+ })(exports.PasswordChangeStatus || (exports.PasswordChangeStatus = {}));
6061
6035
  (function (CognitoChallengeName) {
6062
6036
  CognitoChallengeName["NEW_PASSWORD_REQUIRED"] = "NEW_PASSWORD_REQUIRED";
6063
6037
  CognitoChallengeName["SMS_MFA"] = "SMS_MFA";
6064
6038
  CognitoChallengeName["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
6065
6039
  CognitoChallengeName["MFA_SETUP"] = "MFA_SETUP";
6066
- })(CognitoChallengeName || (CognitoChallengeName = {}));
6040
+ })(exports.CognitoChallengeName || (exports.CognitoChallengeName = {}));
6067
6041
 
6068
- var auth2_types = /*#__PURE__*/Object.freeze({
6069
- __proto__: null,
6070
- get RecoveryStatus () { return RecoveryStatus; },
6071
- get PasswordChangeStatus () { return PasswordChangeStatus; },
6072
- get CognitoChallengeName () { return CognitoChallengeName; }
6073
- });
6074
-
6075
- var Auth2Service_1;
6076
- exports.Auth2Service = Auth2Service_1 = /** @class */ (function (_super) {
6077
- __extends(Auth2Service, _super);
6078
- function Auth2Service(ngZone, injector, http, cognito, api, keyService, keyGraphService, keyFactoryService, passwordService, idleService, persistService, encryptionService, assemblyController, kcConfig) {
6042
+ var AuthService_1;
6043
+ exports.AuthService = AuthService_1 = /** @class */ (function (_super) {
6044
+ __extends(AuthService, _super);
6045
+ function AuthService(ngZone, injector, http, cognito, api, keyService, keyGraphService, keyFactoryService, passwordService, idleService, persistService, encryptionService, assemblyController, kcConfig) {
6079
6046
  var _this = _super.call(this, injector) || this;
6080
6047
  _this.ngZone = ngZone;
6081
6048
  _this.injector = injector;
@@ -6103,10 +6070,10 @@
6103
6070
  }
6104
6071
  return _this;
6105
6072
  }
6106
- Auth2Service.prototype.importPassword = function (plainPassword) {
6073
+ AuthService.prototype.importPassword = function (plainPassword) {
6107
6074
  return this.keyFactoryService.importPassword(plainPassword);
6108
6075
  };
6109
- Auth2Service.prototype.logout = function () {
6076
+ AuthService.prototype.logout = function () {
6110
6077
  var _a;
6111
6078
  return __awaiter(this, void 0, void 0, function () {
6112
6079
  return __generator(this, function (_b) {
@@ -6133,13 +6100,13 @@
6133
6100
  });
6134
6101
  });
6135
6102
  };
6136
- Auth2Service.prototype.addLogoutListener = function (callback) {
6103
+ AuthService.prototype.addLogoutListener = function (callback) {
6137
6104
  this.logoutListeners.add(callback);
6138
6105
  };
6139
- Auth2Service.prototype.removeLogoutListener = function (callback) {
6106
+ AuthService.prototype.removeLogoutListener = function (callback) {
6140
6107
  this.logoutListeners.delete(callback);
6141
6108
  };
6142
- Auth2Service.prototype.login = function (emailOrPhone, password, _b) {
6109
+ AuthService.prototype.login = function (emailOrPhone, password, _b) {
6143
6110
  var _c = _b === void 0 ? {} : _b, _d = _c.tpPasswordResetAutoComplete, tpPasswordResetAutoComplete = _d === void 0 ? true : _d;
6144
6111
  var _a;
6145
6112
  return __awaiter(this, void 0, void 0, function () {
@@ -6151,7 +6118,7 @@
6151
6118
  loginResult = _b.sent();
6152
6119
  // Save the password for use after meeting challenge.
6153
6120
  if (loginResult.challenge) {
6154
- this.password = new KeyContainer(password, Auth2Service_1.CHALLENGE_TIMEOUT);
6121
+ this.password = new KeyContainer(password, AuthService_1.CHALLENGE_TIMEOUT);
6155
6122
  return [2 /*return*/, loginResult];
6156
6123
  }
6157
6124
  if (!(tpPasswordResetAutoComplete &&
@@ -6168,7 +6135,7 @@
6168
6135
  });
6169
6136
  });
6170
6137
  };
6171
- Auth2Service.prototype.verifyLogin = function (options) {
6138
+ AuthService.prototype.verifyLogin = function (options) {
6172
6139
  return __awaiter(this, void 0, void 0, function () {
6173
6140
  var challenge, code, rememberMe, VALID_CHALLENGE_NAMES, cognitoUser, user;
6174
6141
  return __generator(this, function (_b) {
@@ -6176,8 +6143,8 @@
6176
6143
  case 0:
6177
6144
  challenge = options.challenge, code = options.code, rememberMe = options.rememberMe;
6178
6145
  VALID_CHALLENGE_NAMES = [
6179
- CognitoChallengeName.SMS_MFA,
6180
- CognitoChallengeName.SOFTWARE_TOKEN_MFA,
6146
+ exports.CognitoChallengeName.SMS_MFA,
6147
+ exports.CognitoChallengeName.SOFTWARE_TOKEN_MFA,
6181
6148
  ];
6182
6149
  if (!VALID_CHALLENGE_NAMES.includes(challenge.cognitoUser.challengeName)) {
6183
6150
  throw new KcBadRequestException("challengeName must be one of " + VALID_CHALLENGE_NAMES);
@@ -6209,7 +6176,7 @@
6209
6176
  });
6210
6177
  });
6211
6178
  };
6212
- Auth2Service.prototype.getUser = function () {
6179
+ AuthService.prototype.getUser = function () {
6213
6180
  return __awaiter(this, void 0, void 0, function () {
6214
6181
  var cognitoUser;
6215
6182
  return __generator(this, function (_b) {
@@ -6226,7 +6193,7 @@
6226
6193
  });
6227
6194
  });
6228
6195
  };
6229
- Auth2Service.prototype.refreshAccessToken = function () {
6196
+ AuthService.prototype.refreshAccessToken = function () {
6230
6197
  return __awaiter(this, void 0, void 0, function () {
6231
6198
  var cognitoUser, refreshToken;
6232
6199
  return __generator(this, function (_b) {
@@ -6255,7 +6222,7 @@
6255
6222
  // ----------------------------------------------------------------------------------------------------
6256
6223
  // Helpers
6257
6224
  // ----------------------------------------------------------------------------------------------------
6258
- Auth2Service.prototype.fetchCurrentUser = function () {
6225
+ AuthService.prototype.fetchCurrentUser = function () {
6259
6226
  return __awaiter(this, void 0, void 0, function () {
6260
6227
  return __generator(this, function (_b) {
6261
6228
  switch (_b.label) {
@@ -6270,7 +6237,7 @@
6270
6237
  });
6271
6238
  });
6272
6239
  };
6273
- Auth2Service.prototype.fetchResetUser = function () {
6240
+ AuthService.prototype.fetchResetUser = function () {
6274
6241
  return __awaiter(this, void 0, void 0, function () {
6275
6242
  return __generator(this, function (_b) {
6276
6243
  switch (_b.label) {
@@ -6285,7 +6252,7 @@
6285
6252
  });
6286
6253
  });
6287
6254
  };
6288
- Auth2Service.prototype.kcLogout = function () {
6255
+ AuthService.prototype.kcLogout = function () {
6289
6256
  return __awaiter(this, void 0, void 0, function () {
6290
6257
  return __generator(this, function (_b) {
6291
6258
  switch (_b.label) {
@@ -6302,7 +6269,7 @@
6302
6269
  });
6303
6270
  });
6304
6271
  };
6305
- Auth2Service.prototype.fetchPassIdpParams = function (emailOrPhone) {
6272
+ AuthService.prototype.fetchPassIdpParams = function (emailOrPhone) {
6306
6273
  return __awaiter(this, void 0, void 0, function () {
6307
6274
  return __generator(this, function (_b) {
6308
6275
  switch (_b.label) {
@@ -6314,7 +6281,7 @@
6314
6281
  });
6315
6282
  });
6316
6283
  };
6317
- Auth2Service.prototype.loginImpl = function (emailOrPhone, password) {
6284
+ AuthService.prototype.loginImpl = function (emailOrPhone, password) {
6318
6285
  return __awaiter(this, void 0, void 0, function () {
6319
6286
  var loginIdpResult, user;
6320
6287
  return __generator(this, function (_b) {
@@ -6327,8 +6294,8 @@
6327
6294
  loginIdpResult = _b.sent();
6328
6295
  // Can't get the user yet because we still ned to meet MFA challenges
6329
6296
  if ([
6330
- CognitoChallengeName.SMS_MFA,
6331
- CognitoChallengeName.SOFTWARE_TOKEN_MFA,
6297
+ exports.CognitoChallengeName.SMS_MFA,
6298
+ exports.CognitoChallengeName.SOFTWARE_TOKEN_MFA,
6332
6299
  ].includes(loginIdpResult.cognitoUser.challengeName)) {
6333
6300
  return [2 /*return*/, {
6334
6301
  challenge: {
@@ -6350,7 +6317,7 @@
6350
6317
  });
6351
6318
  });
6352
6319
  };
6353
- Auth2Service.prototype.loginIdp = function (emailOrPhone, password) {
6320
+ AuthService.prototype.loginIdp = function (emailOrPhone, password) {
6354
6321
  return __awaiter(this, void 0, void 0, function () {
6355
6322
  var passIdpApiResult, user_1, _b, error_1, user_2, _c, error_2, reset, user_3, _d, err_1, user, _e;
6356
6323
  return __generator(this, function (_f) {
@@ -6358,10 +6325,10 @@
6358
6325
  case 0: return [4 /*yield*/, this.fetchPassIdpParams(emailOrPhone)];
6359
6326
  case 1:
6360
6327
  passIdpApiResult = _f.sent();
6361
- if (passIdpApiResult.passwordChangeStatus === PasswordChangeStatus.IN_PROGRESS) {
6328
+ if (passIdpApiResult.passwordChangeStatus === exports.PasswordChangeStatus.IN_PROGRESS) {
6362
6329
  throw new KcConcurrentAccessException('A password change is in progress');
6363
6330
  }
6364
- if (!(passIdpApiResult.passwordChangeStatus === PasswordChangeStatus.RECOVERY)) return [3 /*break*/, 8];
6331
+ if (!(passIdpApiResult.passwordChangeStatus === exports.PasswordChangeStatus.RECOVERY)) return [3 /*break*/, 8];
6365
6332
  console.log('In recovery mode.');
6366
6333
  _f.label = 2;
6367
6334
  case 2:
@@ -6370,7 +6337,7 @@
6370
6337
  return [4 /*yield*/, this.loginIdpImpl(emailOrPhone, password, passIdpApiResult.newPassIdpParams)];
6371
6338
  case 3:
6372
6339
  user_1 = (_b.cognitoUser = _f.sent(),
6373
- _b.recoveryStatus = RecoveryStatus.NEW_PASSWORD,
6340
+ _b.recoveryStatus = exports.RecoveryStatus.NEW_PASSWORD,
6374
6341
  _b);
6375
6342
  // New password worked. Let's set to the current password
6376
6343
  // --Potential Failure Point 1--
@@ -6390,7 +6357,7 @@
6390
6357
  return [4 /*yield*/, this.loginIdpImpl(emailOrPhone, password, passIdpApiResult.currentPassIdpParams)];
6391
6358
  case 6:
6392
6359
  user_2 = (_c.cognitoUser = _f.sent(),
6393
- _c.recoveryStatus = RecoveryStatus.OLD_PASSWORD,
6360
+ _c.recoveryStatus = exports.RecoveryStatus.OLD_PASSWORD,
6394
6361
  _c);
6395
6362
  // Old password worked.
6396
6363
  console.log('Old password works!');
@@ -6411,7 +6378,7 @@
6411
6378
  return [4 /*yield*/, this.loginIdpImpl(reset.resetUsername, password, reset.passIdpParams)];
6412
6379
  case 10:
6413
6380
  user_3 = (_d.cognitoUser = _f.sent(),
6414
- _d.recoveryStatus = RecoveryStatus.NONE,
6381
+ _d.recoveryStatus = exports.RecoveryStatus.NONE,
6415
6382
  _d);
6416
6383
  return [2 /*return*/, user_3];
6417
6384
  case 11:
@@ -6422,14 +6389,14 @@
6422
6389
  return [4 /*yield*/, this.loginIdpImpl(emailOrPhone, password, passIdpApiResult.currentPassIdpParams)];
6423
6390
  case 13:
6424
6391
  user = (_e.cognitoUser = _f.sent(),
6425
- _e.recoveryStatus = RecoveryStatus.NONE,
6392
+ _e.recoveryStatus = exports.RecoveryStatus.NONE,
6426
6393
  _e);
6427
6394
  return [2 /*return*/, user];
6428
6395
  }
6429
6396
  });
6430
6397
  });
6431
6398
  };
6432
- Auth2Service.prototype.loginIdpImpl = function (emailOrPhone, password, passIdpParams) {
6399
+ AuthService.prototype.loginIdpImpl = function (emailOrPhone, password, passIdpParams) {
6433
6400
  return __awaiter(this, void 0, void 0, function () {
6434
6401
  var passIdpResult;
6435
6402
  return __generator(this, function (_b) {
@@ -6443,7 +6410,7 @@
6443
6410
  });
6444
6411
  });
6445
6412
  };
6446
- Auth2Service.prototype.handlePostAuth = function (recoveryStatus) {
6413
+ AuthService.prototype.handlePostAuth = function (recoveryStatus) {
6447
6414
  return __awaiter(this, void 0, void 0, function () {
6448
6415
  return __generator(this, function (_b) {
6449
6416
  switch (_b.label) {
@@ -6458,14 +6425,14 @@
6458
6425
  });
6459
6426
  });
6460
6427
  };
6461
- Auth2Service.prototype.handlePasswordRecovery = function (recoveryStatus) {
6428
+ AuthService.prototype.handlePasswordRecovery = function (recoveryStatus) {
6462
6429
  return __awaiter(this, void 0, void 0, function () {
6463
6430
  return __generator(this, function (_b) {
6464
6431
  switch (_b.label) {
6465
6432
  case 0:
6466
- if (!(recoveryStatus !== RecoveryStatus.NONE)) return [3 /*break*/, 2];
6433
+ if (!(recoveryStatus !== exports.RecoveryStatus.NONE)) return [3 /*break*/, 2];
6467
6434
  return [4 /*yield*/, this.passwordService.changePasswordComplete({
6468
- useNewPassword: recoveryStatus === RecoveryStatus.NEW_PASSWORD,
6435
+ useNewPassword: recoveryStatus === exports.RecoveryStatus.NEW_PASSWORD,
6469
6436
  })];
6470
6437
  case 1:
6471
6438
  _b.sent();
@@ -6475,7 +6442,7 @@
6475
6442
  });
6476
6443
  });
6477
6444
  };
6478
- Auth2Service.prototype.handleSessionEncryptionKey = function () {
6445
+ AuthService.prototype.handleSessionEncryptionKey = function () {
6479
6446
  return __awaiter(this, void 0, void 0, function () {
6480
6447
  var msg, sessionEncryptionKey;
6481
6448
  return __generator(this, function (_b) {
@@ -6513,11 +6480,11 @@
6513
6480
  });
6514
6481
  });
6515
6482
  };
6516
- Auth2Service.prototype.getCognitoUserAttribute = function (attributeName, userAttributes) {
6483
+ AuthService.prototype.getCognitoUserAttribute = function (attributeName, userAttributes) {
6517
6484
  var userAttribute = userAttributes.find(function (x) { return x.getName() === attributeName; });
6518
6485
  return userAttribute ? userAttribute.getValue() : null;
6519
6486
  };
6520
- Auth2Service.prototype.loadUserKeys = function (options) {
6487
+ AuthService.prototype.loadUserKeys = function (options) {
6521
6488
  return __awaiter(this, void 0, void 0, function () {
6522
6489
  var userKeys, password, sessionEncryptionKey, _b, _c, passKey, _d, _e;
6523
6490
  return __generator(this, function (_f) {
@@ -6546,7 +6513,7 @@
6546
6513
  });
6547
6514
  });
6548
6515
  };
6549
- Auth2Service.prototype.loadUser = function (cognitoUser, password) {
6516
+ AuthService.prototype.loadUser = function (cognitoUser, password) {
6550
6517
  return __awaiter(this, void 0, void 0, function () {
6551
6518
  var _b, _c;
6552
6519
  return __generator(this, function (_d) {
@@ -6572,7 +6539,7 @@
6572
6539
  });
6573
6540
  });
6574
6541
  };
6575
- Auth2Service.prototype.loadRegularUser = function (cognitoUser, password) {
6542
+ AuthService.prototype.loadRegularUser = function (cognitoUser, password) {
6576
6543
  return __awaiter(this, void 0, void 0, function () {
6577
6544
  var currentUser, username, userAttributes;
6578
6545
  return __generator(this, function (_b) {
@@ -6606,7 +6573,7 @@
6606
6573
  });
6607
6574
  });
6608
6575
  };
6609
- Auth2Service.prototype.loadResetUser = function (cognitoUser, password) {
6576
+ AuthService.prototype.loadResetUser = function (cognitoUser, password) {
6610
6577
  return __awaiter(this, void 0, void 0, function () {
6611
6578
  var resetUser, userKeys, username, userAttributes;
6612
6579
  return __generator(this, function (_b) {
@@ -6651,7 +6618,7 @@
6651
6618
  });
6652
6619
  });
6653
6620
  };
6654
- Auth2Service.prototype.recoverAssemblyKey = function (resetUser) {
6621
+ AuthService.prototype.recoverAssemblyKey = function (resetUser) {
6655
6622
  return __awaiter(this, void 0, void 0, function () {
6656
6623
  var prk, partials;
6657
6624
  var _this = this;
@@ -6670,7 +6637,7 @@
6670
6637
  });
6671
6638
  });
6672
6639
  };
6673
- Auth2Service.prototype.completeResetRequest = function (newPassword) {
6640
+ AuthService.prototype.completeResetRequest = function (newPassword) {
6674
6641
  return __awaiter(this, void 0, void 0, function () {
6675
6642
  var resetUser, assemblyKey, rootKey, rootKeyJwk, masterKey, masterKeyWrappedRootKey, newPassIdpResult, newIdpPassword, challenge, assemblyKeyVerifierPrk, signedChallenge, tempIdpPassword, retPromise, user;
6676
6643
  var _this = this;
@@ -6786,13 +6753,13 @@
6786
6753
  // ------------------------------------------------------
6787
6754
  // Debug utilities
6788
6755
  // ------------------------------------------------------
6789
- Auth2Service.prototype.debugLogin = function (username, password) {
6756
+ AuthService.prototype.debugLogin = function (username, password) {
6790
6757
  // This will fail if debug is null. But when debug is null, this function
6791
6758
  // should not be called.
6792
6759
  this.kcConfig.debug.username = username;
6793
6760
  return this.debugLoadUser(password);
6794
6761
  };
6795
- Auth2Service.prototype.debugLoadUser = function (password) {
6762
+ AuthService.prototype.debugLoadUser = function (password) {
6796
6763
  return __awaiter(this, void 0, void 0, function () {
6797
6764
  var currentUser, username, currentUserKey, passKey, masterKey;
6798
6765
  return __generator(this, function (_b) {
@@ -6827,10 +6794,10 @@
6827
6794
  /**
6828
6795
  * Clears the caches user. So we can simulate a page refresh and test getUser().
6829
6796
  */
6830
- Auth2Service.prototype.debugClearUser = function () {
6797
+ AuthService.prototype.debugClearUser = function () {
6831
6798
  this.user = null;
6832
6799
  };
6833
- Auth2Service.prototype.getCurrentUserAttributes = function () {
6800
+ AuthService.prototype.getCurrentUserAttributes = function () {
6834
6801
  return __awaiter(this, void 0, void 0, function () {
6835
6802
  var cognitoUser, userAttributes;
6836
6803
  return __generator(this, function (_b) {
@@ -6846,16 +6813,16 @@
6846
6813
  });
6847
6814
  });
6848
6815
  };
6849
- return Auth2Service;
6816
+ return AuthService;
6850
6817
  }(LrService));
6851
- exports.Auth2Service.CHALLENGE_TIMEOUT = 1000 * 60 * 5;
6852
- exports.Auth2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function Auth2Service_Factory() { return new exports.Auth2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(exports.ɵg), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(PasswordService), i0.ɵɵinject(IdleService), i0.ɵɵinject(PersistService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(exports.ɵi), i0.ɵɵinject(KC_CONFIG)); }, token: exports.Auth2Service, providedIn: "root" });
6853
- exports.Auth2Service.decorators = [
6818
+ exports.AuthService.CHALLENGE_TIMEOUT = 1000 * 60 * 5;
6819
+ exports.AuthService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthService_Factory() { return new exports.AuthService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(exports.ɵg), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(PasswordService), i0.ɵɵinject(IdleService), i0.ɵɵinject(PersistService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(exports.ɵi), i0.ɵɵinject(KC_CONFIG)); }, token: exports.AuthService, providedIn: "root" });
6820
+ exports.AuthService.decorators = [
6854
6821
  { type: i0.Injectable, args: [{
6855
6822
  providedIn: 'root',
6856
6823
  },] }
6857
6824
  ];
6858
- exports.Auth2Service.ctorParameters = function () { return [
6825
+ exports.AuthService.ctorParameters = function () { return [
6859
6826
  { type: i0.NgZone },
6860
6827
  { type: i0.Injector },
6861
6828
  { type: i2$1.HttpClient },
@@ -6871,11 +6838,11 @@
6871
6838
  { type: exports.ɵi },
6872
6839
  { type: undefined, decorators: [{ type: i0.Inject, args: [KC_CONFIG,] }] }
6873
6840
  ]; };
6874
- exports.Auth2Service = Auth2Service_1 = __decorate([
6841
+ exports.AuthService = AuthService_1 = __decorate([
6875
6842
  RunOutsideAngular({
6876
6843
  ngZoneName: 'ngZone',
6877
6844
  })
6878
- ], exports.Auth2Service);
6845
+ ], exports.AuthService);
6879
6846
 
6880
6847
  var CreateContactCardMutation$2 = gqlTyped(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"], ["\nmutation CreateContactCardMutation(\n $input: CreateContactCardInput!\n) {\n createContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"])));
6881
6848
  var UpdateContactCardMutation$2 = gqlTyped(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\nmutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"], ["\nmutation UpdateContactCardMutation($input: UpdateContactCardInput!) {\n updateContactCard(input: $input) {\n contactCard {\n id\n }\n }\n}\n"])));
@@ -7106,11 +7073,30 @@
7106
7073
  { type: i4.AuthClass }
7107
7074
  ]; };
7108
7075
 
7109
- var LockFragment = gqlTyped(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"], ["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"])));
7110
- var UpdateLockMutation = gqlTyped(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
7111
- var AcquireLockMutation = gqlTyped(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
7112
- var ReleaseLockMutation = gqlTyped(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
7113
- var templateObject_1$e, templateObject_2$9, templateObject_3$8, templateObject_4$5;
7076
+ var CreateDirectoryMutation = gqlTyped(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"])));
7077
+ var UpdateDirectoryMutation = gqlTyped(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"], ["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"])));
7078
+ var DeleteDirectoryMutation = gqlTyped(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"])));
7079
+ var CreateFileMutation = gqlTyped(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"])));
7080
+ var UpdateFileMutation = gqlTyped(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7081
+ var RevertFileMutation = gqlTyped(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7082
+ var DeleteFileMutation = gqlTyped(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"])));
7083
+ var ArchiveDirectoryMutation = gqlTyped(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\nmutation ArchiveDirectoryMutation($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ArchiveDirectoryMutation($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7084
+ var ArchiveFileMutation = gqlTyped(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\nmutation ArchiveFileMutation($input: ArchiveFileInput!) {\n archiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ArchiveFileMutation($input: ArchiveFileInput!) {\n archiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7085
+ var UnarchiveDirectoryMutation = gqlTyped(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7086
+ var UnarchiveFileMutation = gqlTyped(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\nmutation UnarchiveFileMutation($input: UnarchiveFileInput!) {\n unarchiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveFileMutation($input: UnarchiveFileInput!) {\n unarchiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7087
+ var ChangeDirectoryParentsMutation = gqlTyped(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7088
+ var ChangeFileParentsMutation = gqlTyped(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7089
+ var BeginDeleteChildItemLinksWindowMutation = gqlTyped(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"], ["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"])));
7090
+ var TempDirectoryQuery = gqlTyped(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\nquery TempDirectoryQuery($plainMeta: LrJSONFilter!) {\n rootDirectories(plainMeta: $plainMeta, first: 2, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n }\n }\n }\n lock {\n version\n }\n}\n"], ["\nquery TempDirectoryQuery($plainMeta: LrJSONFilter!) {\n rootDirectories(plainMeta: $plainMeta, first: 2, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n }\n }\n }\n lock {\n version\n }\n}\n"])));
7091
+ var SetFileConfidentialMutation = gqlTyped(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\nmutation SetFileConfidentialMutation($input: SetFileConfidentialInput!) {\n setFileConfidential(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation SetFileConfidentialMutation($input: SetFileConfidentialInput!) {\n setFileConfidential(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7092
+ var SetDirectoryConfidentialMutation = gqlTyped(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\nmutation SetDirectoryConfidentialMutation($input: SetDirectoryConfidentialInput!) {\n setDirectoryConfidential(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation SetDirectoryConfidentialMutation($input: SetDirectoryConfidentialInput!) {\n setDirectoryConfidential(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7093
+ var templateObject_1$e, templateObject_2$9, templateObject_3$8, templateObject_4$5, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8$3, templateObject_9$2, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
7094
+
7095
+ var LockFragment = gqlTyped(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"], ["\nfragment LockFragment on LockField {\n created\n modified\n version\n expiryTime\n state\n}"])));
7096
+ var UpdateLockMutation = gqlTyped(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation UpdateLockMutation($input: UpdateLockInput!) {\n updateLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
7097
+ var AcquireLockMutation = gqlTyped(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation AcquireLockMutation($input: AcquireLockInput!) {\n acquireLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
7098
+ var ReleaseLockMutation = gqlTyped(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"], ["\nmutation ReleaseLockMutation($input: ReleaseLockInput!) {\n releaseLock(input: $input) {\n lock {\n ...LockFragment\n }\n }\n}\n", "\n"])), LockFragment);
7099
+ var templateObject_1$f, templateObject_2$a, templateObject_3$9, templateObject_4$6;
7114
7100
 
7115
7101
  exports.LockService = /** @class */ (function (_super) {
7116
7102
  __extends(LockService, _super);
@@ -7172,34 +7158,15 @@
7172
7158
  })
7173
7159
  ], exports.LockService);
7174
7160
 
7175
- var CreateDirectoryMutation = gqlTyped(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateDirectoryMutation($input: CreateDirectoryInput!) {\n createDirectory(input: $input) {\n directory {\n id\n keyId\n }\n }\n}\n"])));
7176
- var UpdateDirectoryMutation = gqlTyped(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"], ["\nmutation UpdateDirectoryMutation($input: UpdateDirectoryInput!) {\n updateDirectory(input: $input) {\n directory {\n id\n modified\n }\n }\n}\n"])));
7177
- var DeleteDirectoryMutation = gqlTyped(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteDirectoryMutation($input: DeleteDirectoryInput!) {\n deleteDirectory(input: $input) {\n id\n }\n}\n"])));
7178
- var CreateFileMutation = gqlTyped(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"], ["\nmutation CreateFileMutation($input: CreateFileInput!) {\n createFile(input: $input) {\n file {\n id\n keyId\n }\n }\n}\n"])));
7179
- var UpdateFileMutation = gqlTyped(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UpdateFileMutation($input: UpdateFileInput!) {\n updateFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7180
- var RevertFileMutation = gqlTyped(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation RevertFileMutation($input: RevertFileInput!) {\n revertFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7181
- var DeleteFileMutation = gqlTyped(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteFileMutation($input: DeleteFileInput!) {\n deleteFile(input: $input) {\n id\n }\n}\n"])));
7182
- var ArchiveDirectoryMutation = gqlTyped(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\nmutation ArchiveDirectoryMutation($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ArchiveDirectoryMutation($input: ArchiveDirectoryInput!) {\n archiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7183
- var ArchiveFileMutation = gqlTyped(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\nmutation ArchiveFileMutation($input: ArchiveFileInput!) {\n archiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ArchiveFileMutation($input: ArchiveFileInput!) {\n archiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7184
- var UnarchiveDirectoryMutation = gqlTyped(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveDirectoryMutation($input: UnarchiveDirectoryInput!) {\n unarchiveDirectory(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7185
- var UnarchiveFileMutation = gqlTyped(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\nmutation UnarchiveFileMutation($input: UnarchiveFileInput!) {\n unarchiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation UnarchiveFileMutation($input: UnarchiveFileInput!) {\n unarchiveFile(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7186
- var ChangeDirectoryParentsMutation = gqlTyped(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation ChangeDirectoryParentsMutation($input: ChangeDirectoryParentsInput!) {\n changeDirectoryParents(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7187
- var ChangeFileParentsMutation = gqlTyped(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation ChangeFileParentsMutation($input: ChangeFileParentsInput!) {\n changeFileParents(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7188
- var BeginDeleteChildItemLinksWindowMutation = gqlTyped(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"], ["\nmutation BeginDeleteChildItemLinksWindowMutation($input: BeginDeleteChildItemLinksWindowInput!) {\n beginDeleteChildItemLinksWindow(input: $input) {\n begin\n end\n scheduled\n windowMs\n directory {\n id\n }\n }\n}\n"])));
7189
- var TempDirectoryQuery = gqlTyped(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\nquery TempDirectoryQuery($plainMeta: LrJSONFilter!) {\n rootDirectories(plainMeta: $plainMeta, first: 2, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n }\n }\n }\n lock {\n version\n }\n}\n"], ["\nquery TempDirectoryQuery($plainMeta: LrJSONFilter!) {\n rootDirectories(plainMeta: $plainMeta, first: 2, orderBy: \"created\") {\n edges {\n node {\n id\n keyId\n }\n }\n }\n lock {\n version\n }\n}\n"])));
7190
- var SetFileConfidentialMutation = gqlTyped(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\nmutation SetFileConfidentialMutation($input: SetFileConfidentialInput!) {\n setFileConfidential(input: $input) {\n file {\n id\n }\n }\n}\n"], ["\nmutation SetFileConfidentialMutation($input: SetFileConfidentialInput!) {\n setFileConfidential(input: $input) {\n file {\n id\n }\n }\n}\n"])));
7191
- var SetDirectoryConfidentialMutation = gqlTyped(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\nmutation SetDirectoryConfidentialMutation($input: SetDirectoryConfidentialInput!) {\n setDirectoryConfidential(input: $input) {\n directory {\n id\n }\n }\n}\n"], ["\nmutation SetDirectoryConfidentialMutation($input: SetDirectoryConfidentialInput!) {\n setDirectoryConfidential(input: $input) {\n directory {\n id\n }\n }\n}\n"])));
7192
- var templateObject_1$f, templateObject_2$a, templateObject_3$9, templateObject_4$6, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8$3, templateObject_9$2, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
7193
-
7194
7161
  var DirectoryKeyQuery$1 = gqlTyped(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"], ["\nquery DirectoryKeyQuery($id: LrRelayIdInput!) {\n directory(id: $id) {\n keyId\n }\n}\n"])));
7195
7162
  var FileKeyQuery = gqlTyped(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\nquery FileKeyQuery($id: LrRelayIdInput!) {\n file(id: $id) {\n keyId\n }\n}\n"], ["\nquery FileKeyQuery($id: LrRelayIdInput!) {\n file(id: $id) {\n keyId\n }\n}\n"])));
7196
7163
  var FileStateKeyQuery = gqlTyped(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\nquery FileStateKeyQuery($id: LrRelayIdInput!) {\n fileState(id: $id) {\n keyId\n }\n}\n"], ["\nquery FileStateKeyQuery($id: LrRelayIdInput!) {\n fileState(id: $id) {\n keyId\n }\n}\n"])));
7197
7164
  var templateObject_1$g, templateObject_2$b, templateObject_3$a;
7198
7165
 
7199
- var Item2Service_1;
7200
- exports.Item2Service = Item2Service_1 = /** @class */ (function (_super) {
7201
- __extends(Item2Service, _super);
7202
- function Item2Service(ngZone, injector, fileUploadService, keyService, keyFactory, keyGraph, lockService, auth2Service) {
7166
+ var ItemService_1;
7167
+ exports.ItemService = ItemService_1 = /** @class */ (function (_super) {
7168
+ __extends(ItemService, _super);
7169
+ function ItemService(ngZone, injector, fileUploadService, keyService, keyFactory, keyGraph, lockService, authService) {
7203
7170
  var _this = _super.call(this, injector) || this;
7204
7171
  _this.ngZone = ngZone;
7205
7172
  _this.injector = injector;
@@ -7208,13 +7175,13 @@
7208
7175
  _this.keyFactory = keyFactory;
7209
7176
  _this.keyGraph = keyGraph;
7210
7177
  _this.lockService = lockService;
7211
- _this.auth2Service = auth2Service;
7178
+ _this.authService = authService;
7212
7179
  // Caching the temp directory.
7213
7180
  _this.tempDirectory = null;
7214
- _this.auth2Service.addLogoutListener(function () { return _this.onLogout(); });
7181
+ _this.authService.addLogoutListener(function () { return _this.onLogout(); });
7215
7182
  return _this;
7216
7183
  }
7217
- Item2Service.prototype.downloadFileContent = function (options) {
7184
+ ItemService.prototype.downloadFileContent = function (options) {
7218
7185
  return __awaiter(this, void 0, void 0, function () {
7219
7186
  var fileContent, fileStateKey;
7220
7187
  var _this = this;
@@ -7233,7 +7200,7 @@
7233
7200
  });
7234
7201
  });
7235
7202
  };
7236
- Item2Service.prototype.getDirectoryKeyId = function (directoryId) {
7203
+ ItemService.prototype.getDirectoryKeyId = function (directoryId) {
7237
7204
  return __awaiter(this, void 0, void 0, function () {
7238
7205
  return __generator(this, function (_d) {
7239
7206
  switch (_d.label) {
@@ -7248,7 +7215,7 @@
7248
7215
  });
7249
7216
  });
7250
7217
  };
7251
- Item2Service.prototype.getFileKeyId = function (fileId) {
7218
+ ItemService.prototype.getFileKeyId = function (fileId) {
7252
7219
  return __awaiter(this, void 0, void 0, function () {
7253
7220
  return __generator(this, function (_d) {
7254
7221
  switch (_d.label) {
@@ -7263,7 +7230,7 @@
7263
7230
  });
7264
7231
  });
7265
7232
  };
7266
- Item2Service.prototype.getDirectoryKey = function (directoryId, directoryKeyId) {
7233
+ ItemService.prototype.getDirectoryKey = function (directoryId, directoryKeyId) {
7267
7234
  return __awaiter(this, void 0, void 0, function () {
7268
7235
  var _this = this;
7269
7236
  return __generator(this, function (_d) {
@@ -7271,7 +7238,7 @@
7271
7238
  });
7272
7239
  });
7273
7240
  };
7274
- Item2Service.prototype.getFileKey = function (fileId, fileKeyId) {
7241
+ ItemService.prototype.getFileKey = function (fileId, fileKeyId) {
7275
7242
  return __awaiter(this, void 0, void 0, function () {
7276
7243
  var _this = this;
7277
7244
  return __generator(this, function (_d) {
@@ -7279,10 +7246,10 @@
7279
7246
  });
7280
7247
  });
7281
7248
  };
7282
- Item2Service.prototype.createDirectory = function (options) {
7249
+ ItemService.prototype.createDirectory = function (options) {
7283
7250
  return this.mutate(this.createDirectoryMutation(options));
7284
7251
  };
7285
- Item2Service.prototype.createDirectoryMutation = function (options) {
7252
+ ItemService.prototype.createDirectoryMutation = function (options) {
7286
7253
  return __awaiter(this, void 0, void 0, function () {
7287
7254
  var _d, _e, _f;
7288
7255
  return __generator(this, function (_g) {
@@ -7301,10 +7268,10 @@
7301
7268
  });
7302
7269
  });
7303
7270
  };
7304
- Item2Service.prototype.updateDirectory = function (options) {
7271
+ ItemService.prototype.updateDirectory = function (options) {
7305
7272
  return this.mutate(this.updateDirectoryMutation(options));
7306
7273
  };
7307
- Item2Service.prototype.updateDirectoryMutation = function (options) {
7274
+ ItemService.prototype.updateDirectoryMutation = function (options) {
7308
7275
  return __awaiter(this, void 0, void 0, function () {
7309
7276
  var _d, _e, _f;
7310
7277
  return __generator(this, function (_g) {
@@ -7323,10 +7290,10 @@
7323
7290
  });
7324
7291
  });
7325
7292
  };
7326
- Item2Service.prototype.deleteDirectory = function (id) {
7293
+ ItemService.prototype.deleteDirectory = function (id) {
7327
7294
  return this.mutate(this.deleteDirectoryMutation(id));
7328
7295
  };
7329
- Item2Service.prototype.deleteDirectoryMutation = function (id) {
7296
+ ItemService.prototype.deleteDirectoryMutation = function (id) {
7330
7297
  return new LrMutation({
7331
7298
  mutation: DeleteDirectoryMutation,
7332
7299
  variables: {
@@ -7336,10 +7303,10 @@
7336
7303
  },
7337
7304
  });
7338
7305
  };
7339
- Item2Service.prototype.createFile = function (options) {
7306
+ ItemService.prototype.createFile = function (options) {
7340
7307
  return this.mutate(this.createFileMutation(options));
7341
7308
  };
7342
- Item2Service.prototype.createFileMutation = function (options) {
7309
+ ItemService.prototype.createFileMutation = function (options) {
7343
7310
  return __awaiter(this, void 0, void 0, function () {
7344
7311
  var _d, _e, _f;
7345
7312
  return __generator(this, function (_g) {
@@ -7358,10 +7325,10 @@
7358
7325
  });
7359
7326
  });
7360
7327
  };
7361
- Item2Service.prototype.updateFile = function (options) {
7328
+ ItemService.prototype.updateFile = function (options) {
7362
7329
  return this.mutate(this.updateFileMutation(options));
7363
7330
  };
7364
- Item2Service.prototype.updateFileMutation = function (options) {
7331
+ ItemService.prototype.updateFileMutation = function (options) {
7365
7332
  return __awaiter(this, void 0, void 0, function () {
7366
7333
  var _d, _e, _f;
7367
7334
  return __generator(this, function (_g) {
@@ -7380,10 +7347,10 @@
7380
7347
  });
7381
7348
  });
7382
7349
  };
7383
- Item2Service.prototype.revertFile = function (options) {
7350
+ ItemService.prototype.revertFile = function (options) {
7384
7351
  return this.mutate(this.revertFileMutation(options));
7385
7352
  };
7386
- Item2Service.prototype.revertFileMutation = function (options) {
7353
+ ItemService.prototype.revertFileMutation = function (options) {
7387
7354
  return __awaiter(this, void 0, void 0, function () {
7388
7355
  return __generator(this, function (_d) {
7389
7356
  return [2 /*return*/, new LrMutation({
@@ -7395,10 +7362,10 @@
7395
7362
  });
7396
7363
  });
7397
7364
  };
7398
- Item2Service.prototype.deleteFile = function (id) {
7365
+ ItemService.prototype.deleteFile = function (id) {
7399
7366
  return this.mutate(this.deleteFileMutation(id));
7400
7367
  };
7401
- Item2Service.prototype.deleteFileMutation = function (id) {
7368
+ ItemService.prototype.deleteFileMutation = function (id) {
7402
7369
  return new LrMutation({
7403
7370
  mutation: DeleteFileMutation,
7404
7371
  variables: {
@@ -7408,10 +7375,10 @@
7408
7375
  },
7409
7376
  });
7410
7377
  };
7411
- Item2Service.prototype.archiveDirectory = function (directoryId, options) {
7378
+ ItemService.prototype.archiveDirectory = function (directoryId, options) {
7412
7379
  return this.mutate(this.archiveDirectoryMutation(directoryId, options));
7413
7380
  };
7414
- Item2Service.prototype.archiveDirectoryMutation = function (directoryId, options) {
7381
+ ItemService.prototype.archiveDirectoryMutation = function (directoryId, options) {
7415
7382
  return new LrMutation({
7416
7383
  mutation: ArchiveDirectoryMutation,
7417
7384
  variables: {
@@ -7422,10 +7389,10 @@
7422
7389
  },
7423
7390
  });
7424
7391
  };
7425
- Item2Service.prototype.archiveFile = function (fileId) {
7392
+ ItemService.prototype.archiveFile = function (fileId) {
7426
7393
  return this.mutate(this.archiveFileMutation(fileId));
7427
7394
  };
7428
- Item2Service.prototype.archiveFileMutation = function (fileId) {
7395
+ ItemService.prototype.archiveFileMutation = function (fileId) {
7429
7396
  return new LrMutation({
7430
7397
  mutation: ArchiveFileMutation,
7431
7398
  variables: {
@@ -7435,10 +7402,10 @@
7435
7402
  },
7436
7403
  });
7437
7404
  };
7438
- Item2Service.prototype.unarchiveDirectory = function (directoryId, options) {
7405
+ ItemService.prototype.unarchiveDirectory = function (directoryId, options) {
7439
7406
  return this.mutate(this.unarchiveDirectoryMutation(directoryId, options));
7440
7407
  };
7441
- Item2Service.prototype.unarchiveDirectoryMutation = function (directoryId, options) {
7408
+ ItemService.prototype.unarchiveDirectoryMutation = function (directoryId, options) {
7442
7409
  return new LrMutation({
7443
7410
  mutation: UnarchiveDirectoryMutation,
7444
7411
  variables: {
@@ -7449,10 +7416,10 @@
7449
7416
  },
7450
7417
  });
7451
7418
  };
7452
- Item2Service.prototype.unarchiveFile = function (fileId) {
7419
+ ItemService.prototype.unarchiveFile = function (fileId) {
7453
7420
  return this.mutate(this.unarchiveFileMutation(fileId));
7454
7421
  };
7455
- Item2Service.prototype.unarchiveFileMutation = function (fileId) {
7422
+ ItemService.prototype.unarchiveFileMutation = function (fileId) {
7456
7423
  return new LrMutation({
7457
7424
  mutation: UnarchiveFileMutation,
7458
7425
  variables: {
@@ -7462,10 +7429,10 @@
7462
7429
  },
7463
7430
  });
7464
7431
  };
7465
- Item2Service.prototype.changeDirectoryParents = function (options) {
7432
+ ItemService.prototype.changeDirectoryParents = function (options) {
7466
7433
  return this.mutate(this.changeDirectoryParentsMutation(options));
7467
7434
  };
7468
- Item2Service.prototype.changeDirectoryParentsMutation = function (options) {
7435
+ ItemService.prototype.changeDirectoryParentsMutation = function (options) {
7469
7436
  return __awaiter(this, void 0, void 0, function () {
7470
7437
  var _d, _e, _f;
7471
7438
  return __generator(this, function (_g) {
@@ -7484,14 +7451,14 @@
7484
7451
  });
7485
7452
  });
7486
7453
  };
7487
- Item2Service.prototype.changeFileParents = function (options) {
7454
+ ItemService.prototype.changeFileParents = function (options) {
7488
7455
  return __awaiter(this, void 0, void 0, function () {
7489
7456
  return __generator(this, function (_d) {
7490
7457
  return [2 /*return*/, this.mutate(this.changeFileParentsMutation(options))];
7491
7458
  });
7492
7459
  });
7493
7460
  };
7494
- Item2Service.prototype.changeFileParentsMutation = function (options) {
7461
+ ItemService.prototype.changeFileParentsMutation = function (options) {
7495
7462
  return __awaiter(this, void 0, void 0, function () {
7496
7463
  var _d, _e, _f;
7497
7464
  return __generator(this, function (_g) {
@@ -7510,7 +7477,7 @@
7510
7477
  });
7511
7478
  });
7512
7479
  };
7513
- Item2Service.prototype.beginDeleteChildItemLinksWindow = function (options) {
7480
+ ItemService.prototype.beginDeleteChildItemLinksWindow = function (options) {
7514
7481
  return this.mutate(this.beginDeleteChildItemLinksWindowMutation(options));
7515
7482
  };
7516
7483
  /**
@@ -7523,7 +7490,7 @@
7523
7490
  * The server has a setting that allows for a maximum value on requestWindowMs. If the requested value
7524
7491
  * is larger than this maximum, the call will fail.
7525
7492
  */
7526
- Item2Service.prototype.beginDeleteChildItemLinksWindowMutation = function (options) {
7493
+ ItemService.prototype.beginDeleteChildItemLinksWindowMutation = function (options) {
7527
7494
  return __awaiter(this, void 0, void 0, function () {
7528
7495
  return __generator(this, function (_d) {
7529
7496
  return [2 /*return*/, new LrMutation({
@@ -7546,7 +7513,7 @@
7546
7513
  * @returns The ID of the temp directory
7547
7514
  *
7548
7515
  */
7549
- Item2Service.prototype.ensureTempDirectory = function () {
7516
+ ItemService.prototype.ensureTempDirectory = function () {
7550
7517
  var _a;
7551
7518
  return __awaiter(this, void 0, void 0, function () {
7552
7519
  var existing, createDirectory, updateLock, _d, createDirectoryResult, _e, id, keyId, _f, id, keyId;
@@ -7559,18 +7526,18 @@
7559
7526
  return [4 /*yield*/, this.query({
7560
7527
  query: TempDirectoryQuery,
7561
7528
  variables: {
7562
- plainMeta: Item2Service_1.TEMP_DIRECTORY_PLAIN_META_FILTER,
7529
+ plainMeta: ItemService_1.TEMP_DIRECTORY_PLAIN_META_FILTER,
7563
7530
  },
7564
7531
  })];
7565
7532
  case 1:
7566
7533
  existing = _g.sent();
7567
7534
  if (existing.rootDirectories.edges.length > 1) {
7568
- console.error("There is more than 1 temp directory (plainMeta filter: " + Item2Service_1.TEMP_DIRECTORY_PLAIN_META_FILTER + ")");
7535
+ console.error("There is more than 1 temp directory (plainMeta filter: " + ItemService_1.TEMP_DIRECTORY_PLAIN_META_FILTER + ")");
7569
7536
  }
7570
7537
  if (!(existing.rootDirectories.edges.length === 0)) return [3 /*break*/, 4];
7571
7538
  return [4 /*yield*/, this.createDirectoryMutation({
7572
7539
  asRootDirectory: true,
7573
- plainMetaJson: Item2Service_1.TEMP_DIRECTORY_PLAIN_META,
7540
+ plainMetaJson: ItemService_1.TEMP_DIRECTORY_PLAIN_META,
7574
7541
  })];
7575
7542
  case 2:
7576
7543
  createDirectory = _g.sent();
@@ -7601,7 +7568,7 @@
7601
7568
  });
7602
7569
  });
7603
7570
  };
7604
- Item2Service.prototype.createDirectoryTree = function (options) {
7571
+ ItemService.prototype.createDirectoryTree = function (options) {
7605
7572
  return __awaiter(this, void 0, void 0, function () {
7606
7573
  return __generator(this, function (_d) {
7607
7574
  return [2 /*return*/, this.mutate(this.createDirectoryTreeMutation(options))];
@@ -7613,7 +7580,7 @@
7613
7580
  * server, otherwise the temp directory will get cleaned up.
7614
7581
  *
7615
7582
  */
7616
- Item2Service.prototype.createDirectoryTreeMutation = function (options) {
7583
+ ItemService.prototype.createDirectoryTreeMutation = function (options) {
7617
7584
  return __awaiter(this, void 0, void 0, function () {
7618
7585
  var tempDir, directory;
7619
7586
  return __generator(this, function (_d) {
@@ -7670,14 +7637,14 @@
7670
7637
  });
7671
7638
  });
7672
7639
  };
7673
- Item2Service.prototype.setFileConfidential = function (options) {
7640
+ ItemService.prototype.setFileConfidential = function (options) {
7674
7641
  return __awaiter(this, void 0, void 0, function () {
7675
7642
  return __generator(this, function (_d) {
7676
7643
  return [2 /*return*/, this.mutate(this.setFileConfidentialMutation(options))];
7677
7644
  });
7678
7645
  });
7679
7646
  };
7680
- Item2Service.prototype.setFileConfidentialMutation = function (options) {
7647
+ ItemService.prototype.setFileConfidentialMutation = function (options) {
7681
7648
  return __awaiter(this, void 0, void 0, function () {
7682
7649
  return __generator(this, function (_d) {
7683
7650
  return [2 /*return*/, new LrMutation({
@@ -7692,14 +7659,14 @@
7692
7659
  });
7693
7660
  });
7694
7661
  };
7695
- Item2Service.prototype.setDirectoryConfidential = function (options) {
7662
+ ItemService.prototype.setDirectoryConfidential = function (options) {
7696
7663
  return __awaiter(this, void 0, void 0, function () {
7697
7664
  return __generator(this, function (_d) {
7698
7665
  return [2 /*return*/, this.mutate(this.setDirectoryConfidentialMutation(options))];
7699
7666
  });
7700
7667
  });
7701
7668
  };
7702
- Item2Service.prototype.setDirectoryConfidentialMutation = function (options) {
7669
+ ItemService.prototype.setDirectoryConfidentialMutation = function (options) {
7703
7670
  return __awaiter(this, void 0, void 0, function () {
7704
7671
  return __generator(this, function (_d) {
7705
7672
  return [2 /*return*/, new LrMutation({
@@ -7719,7 +7686,7 @@
7719
7686
  // Helpers
7720
7687
  // ------------------------------------------------------------------------------
7721
7688
  // ------------------------------------------------------------------------------
7722
- Item2Service.prototype.prepareParentDirectory = function (options, newKey) {
7689
+ ItemService.prototype.prepareParentDirectory = function (options, newKey) {
7723
7690
  return __awaiter(this, void 0, void 0, function () {
7724
7691
  var wrappingKey, _d;
7725
7692
  return __generator(this, function (_e) {
@@ -7739,7 +7706,7 @@
7739
7706
  });
7740
7707
  });
7741
7708
  };
7742
- Item2Service.prototype.getFileStateKeyId = function (fileStateNodeId) {
7709
+ ItemService.prototype.getFileStateKeyId = function (fileStateNodeId) {
7743
7710
  return __awaiter(this, void 0, void 0, function () {
7744
7711
  return __generator(this, function (_d) {
7745
7712
  switch (_d.label) {
@@ -7754,7 +7721,7 @@
7754
7721
  });
7755
7722
  });
7756
7723
  };
7757
- Item2Service.prototype.prepareCreateFileState = function (fileKey, options) {
7724
+ ItemService.prototype.prepareCreateFileState = function (fileKey, options) {
7758
7725
  return __awaiter(this, void 0, void 0, function () {
7759
7726
  var fileStateKey, fileContent, _d, contentResource, cipherFileContent, _e, _f, _g, _h, _j, _k, _l;
7760
7727
  return __generator(this, function (_m) {
@@ -7799,7 +7766,7 @@
7799
7766
  });
7800
7767
  });
7801
7768
  };
7802
- Item2Service.prototype.prepareChangeItemParents = function (options, itemKey) {
7769
+ ItemService.prototype.prepareChangeItemParents = function (options, itemKey) {
7803
7770
  return __awaiter(this, void 0, void 0, function () {
7804
7771
  var parentsToAdd, _d;
7805
7772
  var _this = this;
@@ -7824,7 +7791,7 @@
7824
7791
  });
7825
7792
  });
7826
7793
  };
7827
- Item2Service.prototype.prepareItem = function (key, options) {
7794
+ ItemService.prototype.prepareItem = function (key, options) {
7828
7795
  return __awaiter(this, void 0, void 0, function () {
7829
7796
  var plainMetaJson, cipherMetaClearJson, _d, _e;
7830
7797
  return __generator(this, function (_f) {
@@ -7846,7 +7813,7 @@
7846
7813
  });
7847
7814
  });
7848
7815
  };
7849
- Item2Service.prototype.prepareCreateDirectory = function (options) {
7816
+ ItemService.prototype.prepareCreateDirectory = function (options) {
7850
7817
  var _a, _b, _c;
7851
7818
  return __awaiter(this, void 0, void 0, function () {
7852
7819
  var directoryKey, parentDirectories, parentRootDirectory, rootKey, _d, itemInput;
@@ -7885,7 +7852,7 @@
7885
7852
  });
7886
7853
  });
7887
7854
  };
7888
- Item2Service.prototype.prepareUpdateDirectory = function (options) {
7855
+ ItemService.prototype.prepareUpdateDirectory = function (options) {
7889
7856
  return __awaiter(this, void 0, void 0, function () {
7890
7857
  var directoryKey, itemInput;
7891
7858
  return __generator(this, function (_d) {
@@ -7901,7 +7868,7 @@
7901
7868
  });
7902
7869
  });
7903
7870
  };
7904
- Item2Service.prototype.prepareCreateFile = function (options) {
7871
+ ItemService.prototype.prepareCreateFile = function (options) {
7905
7872
  return __awaiter(this, void 0, void 0, function () {
7906
7873
  var fileKey, parentDirectories, input;
7907
7874
  var _this = this;
@@ -7937,7 +7904,7 @@
7937
7904
  });
7938
7905
  });
7939
7906
  };
7940
- Item2Service.prototype.prepareUpdateFile = function (options) {
7907
+ ItemService.prototype.prepareUpdateFile = function (options) {
7941
7908
  return __awaiter(this, void 0, void 0, function () {
7942
7909
  var fileKey, input;
7943
7910
  return __generator(this, function (_d) {
@@ -7953,7 +7920,7 @@
7953
7920
  });
7954
7921
  });
7955
7922
  };
7956
- Item2Service.prototype.prepareChangeDirectoryParents = function (options) {
7923
+ ItemService.prototype.prepareChangeDirectoryParents = function (options) {
7957
7924
  return __awaiter(this, void 0, void 0, function () {
7958
7925
  var directoryKey, input;
7959
7926
  return __generator(this, function (_d) {
@@ -7969,7 +7936,7 @@
7969
7936
  });
7970
7937
  });
7971
7938
  };
7972
- Item2Service.prototype.prepareChangeFileParents = function (options) {
7939
+ ItemService.prototype.prepareChangeFileParents = function (options) {
7973
7940
  return __awaiter(this, void 0, void 0, function () {
7974
7941
  var fileKey, input;
7975
7942
  return __generator(this, function (_d) {
@@ -7985,27 +7952,27 @@
7985
7952
  });
7986
7953
  });
7987
7954
  };
7988
- Item2Service.prototype.onLogout = function () {
7955
+ ItemService.prototype.onLogout = function () {
7989
7956
  // Clear all cached data.
7990
7957
  this.tempDirectory = null;
7991
7958
  };
7992
- return Item2Service;
7959
+ return ItemService;
7993
7960
  }(LrService));
7994
- exports.Item2Service.TEMP_DIRECTORY_PLAIN_META = { kcType: 'temp' };
7995
- exports.Item2Service.TEMP_DIRECTORY_PLAIN_META_FILTER = JSON.stringify({
7961
+ exports.ItemService.TEMP_DIRECTORY_PLAIN_META = { kcType: 'temp' };
7962
+ exports.ItemService.TEMP_DIRECTORY_PLAIN_META_FILTER = JSON.stringify({
7996
7963
  filter: [
7997
7964
  {
7998
- contains: Item2Service_1.TEMP_DIRECTORY_PLAIN_META,
7965
+ contains: ItemService_1.TEMP_DIRECTORY_PLAIN_META,
7999
7966
  },
8000
7967
  ],
8001
7968
  });
8002
- exports.Item2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function Item2Service_Factory() { return new exports.Item2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(FileUploadService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.LockService), i0.ɵɵinject(exports.Auth2Service)); }, token: exports.Item2Service, providedIn: "root" });
8003
- exports.Item2Service.decorators = [
7969
+ exports.ItemService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ItemService_Factory() { return new exports.ItemService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(FileUploadService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.LockService), i0.ɵɵinject(exports.AuthService)); }, token: exports.ItemService, providedIn: "root" });
7970
+ exports.ItemService.decorators = [
8004
7971
  { type: i0.Injectable, args: [{
8005
7972
  providedIn: 'root',
8006
7973
  },] }
8007
7974
  ];
8008
- exports.Item2Service.ctorParameters = function () { return [
7975
+ exports.ItemService.ctorParameters = function () { return [
8009
7976
  { type: i0.NgZone },
8010
7977
  { type: i0.Injector },
8011
7978
  { type: FileUploadService },
@@ -8013,17 +7980,17 @@
8013
7980
  { type: KeyFactoryService },
8014
7981
  { type: KeyGraphService },
8015
7982
  { type: exports.LockService },
8016
- { type: exports.Auth2Service }
7983
+ { type: exports.AuthService }
8017
7984
  ]; };
8018
- exports.Item2Service = Item2Service_1 = __decorate([
7985
+ exports.ItemService = ItemService_1 = __decorate([
8019
7986
  RunOutsideAngular({
8020
7987
  ngZoneName: 'ngZone',
8021
7988
  })
8022
- ], exports.Item2Service);
7989
+ ], exports.ItemService);
8023
7990
 
8024
- exports.KeyExchange2Service = /** @class */ (function (_super) {
8025
- __extends(KeyExchange2Service, _super);
8026
- function KeyExchange2Service(ngZone, injector, keyFactory, keyService, encryptionService, keyGraph) {
7991
+ exports.KeyExchangeService = /** @class */ (function (_super) {
7992
+ __extends(KeyExchangeService, _super);
7993
+ function KeyExchangeService(ngZone, injector, keyFactory, keyService, encryptionService, keyGraph) {
8027
7994
  var _this = _super.call(this, injector) || this;
8028
7995
  _this.ngZone = ngZone;
8029
7996
  _this.injector = injector;
@@ -8034,7 +8001,7 @@
8034
8001
  _this.CLIENT_NONCE_LENGTH = 32;
8035
8002
  return _this;
8036
8003
  }
8037
- KeyExchange2Service.prototype.getOtKey = function (keyExchange, otKeyK) {
8004
+ KeyExchangeService.prototype.getOtKey = function (keyExchange, otKeyK) {
8038
8005
  return __awaiter(this, void 0, void 0, function () {
8039
8006
  var prk, decryptedCipher;
8040
8007
  return __generator(this, function (_a) {
@@ -8061,7 +8028,7 @@
8061
8028
  });
8062
8029
  });
8063
8030
  };
8064
- KeyExchange2Service.prototype.decryptOtk = function (keyExchange, otKeyK) {
8031
+ KeyExchangeService.prototype.decryptOtk = function (keyExchange, otKeyK) {
8065
8032
  return __awaiter(this, void 0, void 0, function () {
8066
8033
  var otKey, otk, _a, _b, _c, _d;
8067
8034
  return __generator(this, function (_e) {
@@ -8083,7 +8050,7 @@
8083
8050
  });
8084
8051
  });
8085
8052
  };
8086
- KeyExchange2Service.prototype.decryptResponseCipher = function (otKey, otPrk, content) {
8053
+ KeyExchangeService.prototype.decryptResponseCipher = function (otKey, otPrk, content) {
8087
8054
  return __awaiter(this, void 0, void 0, function () {
8088
8055
  var error_1;
8089
8056
  return __generator(this, function (_a) {
@@ -8108,7 +8075,7 @@
8108
8075
  });
8109
8076
  });
8110
8077
  };
8111
- KeyExchange2Service.prototype.decryptKeyExchangeAsInitiator = function (keyExchange) {
8078
+ KeyExchangeService.prototype.decryptKeyExchangeAsInitiator = function (keyExchange) {
8112
8079
  return __awaiter(this, void 0, void 0, function () {
8113
8080
  var rootKey, initiatorRootKeyCipherClearJson, otKey, otk, _a, _b, _c, _d, _e, _f, _g;
8114
8081
  return __generator(this, function (_h) {
@@ -8146,14 +8113,14 @@
8146
8113
  });
8147
8114
  });
8148
8115
  };
8149
- KeyExchange2Service.prototype.decryptKeyExchangeAsResponder = function (keyExchange, otKeyK) {
8116
+ KeyExchangeService.prototype.decryptKeyExchangeAsResponder = function (keyExchange, otKeyK) {
8150
8117
  return __awaiter(this, void 0, void 0, function () {
8151
8118
  return __generator(this, function (_a) {
8152
8119
  return [2 /*return*/, this.decryptOtk(keyExchange, otKeyK)];
8153
8120
  });
8154
8121
  });
8155
8122
  };
8156
- KeyExchange2Service.prototype.decryptKeyExchange = function (keyExchange, otKeyK) {
8123
+ KeyExchangeService.prototype.decryptKeyExchange = function (keyExchange, otKeyK) {
8157
8124
  return __awaiter(this, void 0, void 0, function () {
8158
8125
  return __generator(this, function (_a) {
8159
8126
  if (keyExchange.isInitiator) {
@@ -8166,7 +8133,7 @@
8166
8133
  });
8167
8134
  });
8168
8135
  };
8169
- KeyExchange2Service.prototype.getKeyExchanges = function (_a) {
8136
+ KeyExchangeService.prototype.getKeyExchanges = function (_a) {
8170
8137
  var _b = _a === void 0 ? {} : _a, state = _b.state;
8171
8138
  return __awaiter(this, void 0, void 0, function () {
8172
8139
  var keyExchanges;
@@ -8192,7 +8159,7 @@
8192
8159
  * @param otKeyK Is the raw one-time key (string). If the responder is explicitly specified at time of initiation, then
8193
8160
  * it's possible to have the otKey wrapped by the public key of the responder. In which case, the otKeyK is not needed.
8194
8161
  */
8195
- KeyExchange2Service.prototype.getKeyExchange = function (id, _a) {
8162
+ KeyExchangeService.prototype.getKeyExchange = function (id, _a) {
8196
8163
  var _b = _a === void 0 ? {} : _a, otKeyK = _b.otKeyK, token = _b.token;
8197
8164
  return __awaiter(this, void 0, void 0, function () {
8198
8165
  var res;
@@ -8213,7 +8180,7 @@
8213
8180
  });
8214
8181
  });
8215
8182
  };
8216
- KeyExchange2Service.prototype.getCurrentUserSharedKey = function (input) {
8183
+ KeyExchangeService.prototype.getCurrentUserSharedKey = function (input) {
8217
8184
  return __awaiter(this, void 0, void 0, function () {
8218
8185
  return __generator(this, function (_a) {
8219
8186
  return [2 /*return*/, this.query({
@@ -8226,10 +8193,10 @@
8226
8193
  });
8227
8194
  });
8228
8195
  };
8229
- KeyExchange2Service.prototype.cancelKeyExchange = function (id) {
8196
+ KeyExchangeService.prototype.cancelKeyExchange = function (id) {
8230
8197
  return this.mutate(this.cancelKeyExchangeMutation(id));
8231
8198
  };
8232
- KeyExchange2Service.prototype.cancelKeyExchangeMutation = function (id) {
8199
+ KeyExchangeService.prototype.cancelKeyExchangeMutation = function (id) {
8233
8200
  return new LrMutation({
8234
8201
  mutation: CancelKeyExchangeMutation,
8235
8202
  variables: {
@@ -8239,10 +8206,10 @@
8239
8206
  },
8240
8207
  });
8241
8208
  };
8242
- KeyExchange2Service.prototype.declineKeyExchange = function (id, token) {
8209
+ KeyExchangeService.prototype.declineKeyExchange = function (id, token) {
8243
8210
  return this.mutate(this.declineKeyExchangeMutation(id, token));
8244
8211
  };
8245
- KeyExchange2Service.prototype.declineKeyExchangeMutation = function (id, token) {
8212
+ KeyExchangeService.prototype.declineKeyExchangeMutation = function (id, token) {
8246
8213
  return new LrMutation({
8247
8214
  mutation: DeclineKeyExchangeMutation,
8248
8215
  variables: {
@@ -8253,7 +8220,7 @@
8253
8220
  },
8254
8221
  });
8255
8222
  };
8256
- KeyExchange2Service.prototype.initiateOtk = function (input) {
8223
+ KeyExchangeService.prototype.initiateOtk = function (input) {
8257
8224
  if (input === void 0) { input = {}; }
8258
8225
  return __awaiter(this, void 0, void 0, function () {
8259
8226
  var _a;
@@ -8267,7 +8234,7 @@
8267
8234
  });
8268
8235
  });
8269
8236
  };
8270
- KeyExchange2Service.prototype.initiateOtkMutation = function (_a) {
8237
+ KeyExchangeService.prototype.initiateOtkMutation = function (_a) {
8271
8238
  var _b = _a === void 0 ? {} : _a, message = _b.message, email = _b.email, contactCard = _b.contactCard, upgrade = _b.upgrade;
8272
8239
  return __awaiter(this, void 0, void 0, function () {
8273
8240
  var otKey, nonce, initiatorOneTimePrk, initiatorPrk, initiatorSigPrk, initiatorPlainDataSig, initiator, plainOtKeyCipher, otKeyCipher, initiatorRootKeyCipherClearJson, rootKey, initiatorRootKeyCipher, otKeyK, lrMutation;
@@ -8352,10 +8319,10 @@
8352
8319
  });
8353
8320
  });
8354
8321
  };
8355
- KeyExchange2Service.prototype.respondOtk = function (input) {
8322
+ KeyExchangeService.prototype.respondOtk = function (input) {
8356
8323
  return this.mutate(this.respondOtkMutation(input));
8357
8324
  };
8358
- KeyExchange2Service.prototype.respondOtkMutation = function (_a) {
8325
+ KeyExchangeService.prototype.respondOtkMutation = function (_a) {
8359
8326
  var keyExchangeId = _a.keyExchangeId, token = _a.token, decryptedOtk = _a.decryptedOtk, message = _a.message, initiatorContactCard = _a.initiatorContactCard, responderContactCard = _a.responderContactCard;
8360
8327
  return __awaiter(this, void 0, void 0, function () {
8361
8328
  var rootKey, masterKey, sharedKey, mkSharedKey, rkWrappedSharedKey, mkWrappedMkSharedKey, initiatorOneTimePbk, initiatorPbk, initiatorSigPbk, responderPrk, responderSigPrk, signedInitiatorPbk, signedInitiatorSigPbk, initiatorOneTimePbkCipherClearJson, receivedCardInput, sharedCipherDataClearJson, receiverKey, ccSharedKey, sigPxk, _a, _b, _c, _d, _e, _f, _g, _h, sharedCipherData, _j, _k, _l, responderCardInput, ownerKey, ccSharedKey, sigPxk, _m, _o, _p, _q, _r, _s, _t, _u, sharedCipherData, _v, _w, _x, _y, _z, _0, initiatorOneTimePbkCipher;
@@ -8533,10 +8500,10 @@
8533
8500
  });
8534
8501
  });
8535
8502
  };
8536
- KeyExchange2Service.prototype.completeOtk = function (input) {
8503
+ KeyExchangeService.prototype.completeOtk = function (input) {
8537
8504
  return this.mutate(this.completeOtkMutation(input));
8538
8505
  };
8539
- KeyExchange2Service.prototype.completeOtkMutation = function (_a) {
8506
+ KeyExchangeService.prototype.completeOtkMutation = function (_a) {
8540
8507
  var keyExchangeId = _a.keyExchangeId, initiatorRootKeyCipher = _a.initiatorRootKeyCipher, initiatorOneTimePbkCipher = _a.initiatorOneTimePbkCipher, responderContactCard = _a.responderContactCard, initiatorContactCard = _a.initiatorContactCard;
8541
8508
  return __awaiter(this, void 0, void 0, function () {
8542
8509
  var rootKey, masterKey, initiatorRootKeyCipherClearJson, plainInitiatorOneTimePbkCipher, _a, _b, initiatorSigPrk, responderSigPbk, responderPbk, signedResponderPbk, signedResponderSigPbk, sharedKey, rkWrappedSharedKey, mkSharedKey, mkWrappedMkSharedKey, responderContactCardCipherInput, receiverKey, _c, _d, _e, _f, _g, initiatorContactCardCipherInput, initiatorContactCardSharedCipherInput, initiatorContactCardFromInit, ownerKey, sharedCipherKey, ownerWrappedKey, _h, _j, ownerCipherDataClearJson, ownerCipherData, _k, sharedCipherData, _l, _m, _o;
@@ -8670,15 +8637,15 @@
8670
8637
  });
8671
8638
  });
8672
8639
  };
8673
- return KeyExchange2Service;
8640
+ return KeyExchangeService;
8674
8641
  }(LrService));
8675
- exports.KeyExchange2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function KeyExchange2Service_Factory() { return new exports.KeyExchange2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(KeyGraphService)); }, token: exports.KeyExchange2Service, providedIn: "root" });
8676
- exports.KeyExchange2Service.decorators = [
8642
+ exports.KeyExchangeService.ɵprov = i0.ɵɵdefineInjectable({ factory: function KeyExchangeService_Factory() { return new exports.KeyExchangeService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(KeyGraphService)); }, token: exports.KeyExchangeService, providedIn: "root" });
8643
+ exports.KeyExchangeService.decorators = [
8677
8644
  { type: i0.Injectable, args: [{
8678
8645
  providedIn: 'root',
8679
8646
  },] }
8680
8647
  ];
8681
- exports.KeyExchange2Service.ctorParameters = function () { return [
8648
+ exports.KeyExchangeService.ctorParameters = function () { return [
8682
8649
  { type: i0.NgZone },
8683
8650
  { type: i0.Injector },
8684
8651
  { type: KeyFactoryService },
@@ -8686,11 +8653,11 @@
8686
8653
  { type: EncryptionService },
8687
8654
  { type: KeyGraphService }
8688
8655
  ]; };
8689
- exports.KeyExchange2Service = __decorate([
8656
+ exports.KeyExchangeService = __decorate([
8690
8657
  RunOutsideAngular({
8691
8658
  ngZoneName: 'ngZone',
8692
8659
  })
8693
- ], exports.KeyExchange2Service);
8660
+ ], exports.KeyExchangeService);
8694
8661
 
8695
8662
  var ERROR_SOURCE = 'LBOP';
8696
8663
  (function (KcLbopErrorCode) {
@@ -8702,16 +8669,14 @@
8702
8669
  var LbopQuery = gql__default['default'](templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n query Lbop($id: LrRelayIdInput!) {\n lbop(id: $id) {\n id\n cipherMeta\n }\n }\n"], ["\n query Lbop($id: LrRelayIdInput!) {\n lbop(id: $id) {\n id\n cipherMeta\n }\n }\n"])));
8703
8670
  var LbopsQuery = gql__default['default'](templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n query Lbops {\n lbops {\n edges {\n node {\n id\n cipherMeta\n }\n }\n }\n }\n"], ["\n query Lbops {\n lbops {\n edges {\n node {\n id\n cipherMeta\n }\n }\n }\n }\n"])));
8704
8671
  var LbopService = /** @class */ (function () {
8705
- function LbopService(config, http, lrApollo, auth, auth2Service, keyFactory, keyService, encryptionService, keyGraph, passwordService) {
8672
+ function LbopService(config, http, lrApollo, auth, keyFactory, keyService, encryptionService, passwordService) {
8706
8673
  this.config = config;
8707
8674
  this.http = http;
8708
8675
  this.lrApollo = lrApollo;
8709
8676
  this.auth = auth;
8710
- this.auth2Service = auth2Service;
8711
8677
  this.keyFactory = keyFactory;
8712
8678
  this.keyService = keyService;
8713
8679
  this.encryptionService = encryptionService;
8714
- this.keyGraph = keyGraph;
8715
8680
  this.passwordService = passwordService;
8716
8681
  this.CLIENT_NONCE_LENGTH = 32;
8717
8682
  // There are 1024 words (10 bits), so 25 words should give ~256 bits of entropy.
@@ -9103,7 +9068,7 @@
9103
9068
  };
9104
9069
  return LbopService;
9105
9070
  }());
9106
- LbopService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LbopService_Factory() { return new LbopService(i0.ɵɵinject(KC_CONFIG), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(LrApolloService), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(exports.Auth2Service), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(PasswordService)); }, token: LbopService, providedIn: "root" });
9071
+ LbopService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LbopService_Factory() { return new LbopService(i0.ɵɵinject(KC_CONFIG), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(LrApolloService), i0.ɵɵinject(i4.AuthClass), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(KeyService), i0.ɵɵinject(EncryptionService), i0.ɵɵinject(PasswordService)); }, token: LbopService, providedIn: "root" });
9107
9072
  LbopService.decorators = [
9108
9073
  { type: i0.Injectable, args: [{
9109
9074
  providedIn: 'root',
@@ -9114,11 +9079,9 @@
9114
9079
  { type: i2$1.HttpClient },
9115
9080
  { type: LrApolloService },
9116
9081
  { type: i4.AuthClass },
9117
- { type: exports.Auth2Service },
9118
9082
  { type: KeyFactoryService },
9119
9083
  { type: KeyService },
9120
9084
  { type: EncryptionService },
9121
- { type: KeyGraphService },
9122
9085
  { type: PasswordService }
9123
9086
  ]; };
9124
9087
  var templateObject_1$h, templateObject_2$c, templateObject_3$b, templateObject_4$7, templateObject_5$6;
@@ -9312,22 +9275,22 @@
9312
9275
  var ReactivatePlanMutation = gqlTyped(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\nmutation ReactivatePlanMutation($input: ReactivatePlanInput!) {\n reactivatePlan(input: $input) {\n plan {\n id\n }\n }\n}\n"], ["\nmutation ReactivatePlanMutation($input: ReactivatePlanInput!) {\n reactivatePlan(input: $input) {\n plan {\n id\n }\n }\n}\n"])));
9313
9276
  var templateObject_1$j, templateObject_2$e, templateObject_3$d, templateObject_4$9, templateObject_5$8, templateObject_6$5, templateObject_7$4, templateObject_8$4, templateObject_9$3;
9314
9277
 
9315
- exports.Plan2Service = /** @class */ (function (_super) {
9316
- __extends(Plan2Service, _super);
9317
- function Plan2Service(ngZone, injector) {
9278
+ exports.PlanService = /** @class */ (function (_super) {
9279
+ __extends(PlanService, _super);
9280
+ function PlanService(ngZone, injector) {
9318
9281
  var _this = _super.call(this, injector) || this;
9319
9282
  _this.ngZone = ngZone;
9320
9283
  _this.injector = injector;
9321
9284
  return _this;
9322
9285
  }
9323
- Plan2Service.prototype.initiateStripePaymentMethodCapture = function () {
9286
+ PlanService.prototype.initiateStripePaymentMethodCapture = function () {
9324
9287
  return this.mutate(this.initiateStripePaymentMethodCaptureMutation());
9325
9288
  };
9326
9289
  /**
9327
9290
  * Starts a stripe payment capture intent. On intent can only add one card.
9328
9291
  * @returns Promise that resolves to a mutation
9329
9292
  */
9330
- Plan2Service.prototype.initiateStripePaymentMethodCaptureMutation = function () {
9293
+ PlanService.prototype.initiateStripePaymentMethodCaptureMutation = function () {
9331
9294
  return new LrMutation({
9332
9295
  mutation: InitiateStripePaymentMethodCaptureMutation,
9333
9296
  variables: {
@@ -9335,7 +9298,7 @@
9335
9298
  },
9336
9299
  });
9337
9300
  };
9338
- Plan2Service.prototype.completeStripePaymentMethodCapture = function (stripeIntentId) {
9301
+ PlanService.prototype.completeStripePaymentMethodCapture = function (stripeIntentId) {
9339
9302
  return this.mutate(this.completeStripePaymentMethodCaptureMutation(stripeIntentId));
9340
9303
  };
9341
9304
  /**
@@ -9346,7 +9309,7 @@
9346
9309
  *
9347
9310
  * @returns Promise that resolves to a mutation with the just created PaymentMethodNode
9348
9311
  */
9349
- Plan2Service.prototype.completeStripePaymentMethodCaptureMutation = function (stripeIntentId) {
9312
+ PlanService.prototype.completeStripePaymentMethodCaptureMutation = function (stripeIntentId) {
9350
9313
  return new LrMutation({
9351
9314
  mutation: CompleteStripePaymentMethodCaptureMutation,
9352
9315
  variables: {
@@ -9354,7 +9317,7 @@
9354
9317
  },
9355
9318
  });
9356
9319
  };
9357
- Plan2Service.prototype.setDefaultPaymentMethod = function (paymentMethodId) {
9320
+ PlanService.prototype.setDefaultPaymentMethod = function (paymentMethodId) {
9358
9321
  return this.mutate(this.setDefaultPaymentMethodMutation(paymentMethodId));
9359
9322
  };
9360
9323
  /**
@@ -9363,7 +9326,7 @@
9363
9326
  * @param paymentMethodId The id from PaymentMethodNode
9364
9327
  * @returns Promise that resolves to a mutation
9365
9328
  */
9366
- Plan2Service.prototype.setDefaultPaymentMethodMutation = function (paymentMethodId) {
9329
+ PlanService.prototype.setDefaultPaymentMethodMutation = function (paymentMethodId) {
9367
9330
  return new LrMutation({
9368
9331
  mutation: SetDefaultPaymentMethodMutation,
9369
9332
  variables: {
@@ -9373,7 +9336,7 @@
9373
9336
  },
9374
9337
  });
9375
9338
  };
9376
- Plan2Service.prototype.removeDefaultPaymentMethod = function () {
9339
+ PlanService.prototype.removeDefaultPaymentMethod = function () {
9377
9340
  return this.mutate(this.removeDefaultPaymentMethodMutation());
9378
9341
  };
9379
9342
  /**
@@ -9381,7 +9344,7 @@
9381
9344
  *
9382
9345
  * @returns Promise that resolves to a mutation
9383
9346
  */
9384
- Plan2Service.prototype.removeDefaultPaymentMethodMutation = function () {
9347
+ PlanService.prototype.removeDefaultPaymentMethodMutation = function () {
9385
9348
  return new LrMutation({
9386
9349
  mutation: RemoveDefaultPaymentMethodMutation,
9387
9350
  variables: {
@@ -9389,7 +9352,7 @@
9389
9352
  },
9390
9353
  });
9391
9354
  };
9392
- Plan2Service.prototype.issuePlan = function (options) {
9355
+ PlanService.prototype.issuePlan = function (options) {
9393
9356
  return this.mutate(this.issuePlanMutation(options));
9394
9357
  };
9395
9358
  /**
@@ -9401,7 +9364,7 @@
9401
9364
  * @param options.promotionalCode promotion code where applicable
9402
9365
  * @returns Promise that resolves to a mutation
9403
9366
  */
9404
- Plan2Service.prototype.issuePlanMutation = function (options) {
9367
+ PlanService.prototype.issuePlanMutation = function (options) {
9405
9368
  return new LrMutation({
9406
9369
  mutation: IssuePlanMutation,
9407
9370
  variables: {
@@ -9409,7 +9372,7 @@
9409
9372
  },
9410
9373
  });
9411
9374
  };
9412
- Plan2Service.prototype.removePaymentMethod = function (paymentMethodId) {
9375
+ PlanService.prototype.removePaymentMethod = function (paymentMethodId) {
9413
9376
  return this.mutate(this.removePaymentMethodMutation(paymentMethodId));
9414
9377
  };
9415
9378
  /**
@@ -9418,7 +9381,7 @@
9418
9381
  * @param paymentMethodId The id from PaymentMethodNode
9419
9382
  * @returns Promise that resolves to a mutation
9420
9383
  */
9421
- Plan2Service.prototype.removePaymentMethodMutation = function (paymentMethodId) {
9384
+ PlanService.prototype.removePaymentMethodMutation = function (paymentMethodId) {
9422
9385
  return new LrMutation({
9423
9386
  mutation: RemovePaymentMethodMutation,
9424
9387
  variables: {
@@ -9428,7 +9391,7 @@
9428
9391
  },
9429
9392
  });
9430
9393
  };
9431
- Plan2Service.prototype.cancelPlan = function (options) {
9394
+ PlanService.prototype.cancelPlan = function (options) {
9432
9395
  return this.mutate(this.cancelPlanMutation(options));
9433
9396
  };
9434
9397
  /**
@@ -9438,7 +9401,7 @@
9438
9401
  * @param options.immediate If true, cancel plan effective immediately. Default false.
9439
9402
  * @returns Promise that resolves to a mutation
9440
9403
  */
9441
- Plan2Service.prototype.cancelPlanMutation = function (options) {
9404
+ PlanService.prototype.cancelPlanMutation = function (options) {
9442
9405
  return new LrMutation({
9443
9406
  mutation: CancelPlanMutation,
9444
9407
  variables: {
@@ -9446,7 +9409,7 @@
9446
9409
  },
9447
9410
  });
9448
9411
  };
9449
- Plan2Service.prototype.changePriceOption = function (options) {
9412
+ PlanService.prototype.changePriceOption = function (options) {
9450
9413
  return this.mutate(this.changePriceOptionMutation(options));
9451
9414
  };
9452
9415
  /**
@@ -9456,7 +9419,7 @@
9456
9419
  * @param options.priceId The priceId from PriceOptionField (eg. inside AvailablePlanField)
9457
9420
  * @returns Promise that resolves to a mutation
9458
9421
  */
9459
- Plan2Service.prototype.changePriceOptionMutation = function (options) {
9422
+ PlanService.prototype.changePriceOptionMutation = function (options) {
9460
9423
  return new LrMutation({
9461
9424
  mutation: ChangePriceOptionMutation,
9462
9425
  variables: {
@@ -9464,7 +9427,7 @@
9464
9427
  },
9465
9428
  });
9466
9429
  };
9467
- Plan2Service.prototype.reactivatePlan = function (planId) {
9430
+ PlanService.prototype.reactivatePlan = function (planId) {
9468
9431
  return this.mutate(this.reactivatePlanMutation(planId));
9469
9432
  };
9470
9433
  /**
@@ -9473,7 +9436,7 @@
9473
9436
  * @param options.planId The id from IssuedPlanNode
9474
9437
  * @returns Promise that resolves to a mutation
9475
9438
  */
9476
- Plan2Service.prototype.reactivatePlanMutation = function (planId) {
9439
+ PlanService.prototype.reactivatePlanMutation = function (planId) {
9477
9440
  return new LrMutation({
9478
9441
  mutation: ReactivatePlanMutation,
9479
9442
  variables: {
@@ -9481,23 +9444,23 @@
9481
9444
  },
9482
9445
  });
9483
9446
  };
9484
- return Plan2Service;
9447
+ return PlanService;
9485
9448
  }(LrService));
9486
- exports.Plan2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function Plan2Service_Factory() { return new exports.Plan2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR)); }, token: exports.Plan2Service, providedIn: "root" });
9487
- exports.Plan2Service.decorators = [
9449
+ exports.PlanService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlanService_Factory() { return new exports.PlanService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR)); }, token: exports.PlanService, providedIn: "root" });
9450
+ exports.PlanService.decorators = [
9488
9451
  { type: i0.Injectable, args: [{
9489
9452
  providedIn: 'root',
9490
9453
  },] }
9491
9454
  ];
9492
- exports.Plan2Service.ctorParameters = function () { return [
9455
+ exports.PlanService.ctorParameters = function () { return [
9493
9456
  { type: i0.NgZone },
9494
9457
  { type: i0.Injector }
9495
9458
  ]; };
9496
- exports.Plan2Service = __decorate([
9459
+ exports.PlanService = __decorate([
9497
9460
  RunOutsideAngular({
9498
9461
  ngZoneName: 'ngZone',
9499
9462
  })
9500
- ], exports.Plan2Service);
9463
+ ], exports.PlanService);
9501
9464
 
9502
9465
  var ContactFields;
9503
9466
  (function (ContactFields) {
@@ -10105,6 +10068,12 @@
10105
10068
  { type: PasswordService }
10106
10069
  ]; };
10107
10070
 
10071
+ var RegisterResult = /** @class */ (function () {
10072
+ function RegisterResult() {
10073
+ }
10074
+ return RegisterResult;
10075
+ }());
10076
+
10108
10077
  var CreateReminderMutation = gqlTyped(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\nmutation CreateReminderMutation($input: CreateReminderInput!) {\n createReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"], ["\nmutation CreateReminderMutation($input: CreateReminderInput!) {\n createReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"])));
10109
10078
  var UpdateReminderMutation = gqlTyped(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\nmutation UpdateReminderMutation($input: UpdateReminderInput!) {\n updateReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"], ["\nmutation UpdateReminderMutation($input: UpdateReminderInput!) {\n updateReminder(input: $input) {\n reminder {\n id\n }\n }\n}\n"])));
10110
10079
  var DeleteReminderMutation = gqlTyped(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\nmutation DeleteReminderMutation($input: DeleteReminderInput!) {\n deleteReminder(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteReminderMutation($input: DeleteReminderInput!) {\n deleteReminder(input: $input) {\n id\n }\n}\n"])));
@@ -10197,6 +10166,18 @@
10197
10166
  })
10198
10167
  ], exports.ReminderService);
10199
10168
 
10169
+ var CreateScenarioMutation = gqlTyped(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\nmutation CreateScenarioMutation($input: CreateScenarioInput!) {\n createScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"], ["\nmutation CreateScenarioMutation($input: CreateScenarioInput!) {\n createScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"])));
10170
+ var UpdateScenarioMutation = gqlTyped(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\nmutation UpdateScenarioMutation($input: UpdateScenarioInput!) {\n updateScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"], ["\nmutation UpdateScenarioMutation($input: UpdateScenarioInput!) {\n updateScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"])));
10171
+ var DeleteScenarioMutation = gqlTyped(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\nmutation DeleteScenarioMutation($input: DeleteScenarioInput!) {\n deleteScenario(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteScenarioMutation($input: DeleteScenarioInput!) {\n deleteScenario(input: $input) {\n id\n }\n}\n"])));
10172
+ var CreateScenarioClaimMutation = gqlTyped(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\nmutation CreateScenarioClaimMutation($input: CreateScenarioClaimInput!) {\n createScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation CreateScenarioClaimMutation($input: CreateScenarioClaimInput!) {\n createScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
10173
+ var CancelScenarioClaimMutation = gqlTyped(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\nmutation CancelScenarioClaimMutation($input: CancelScenarioClaimInput!) {\n cancelScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation CancelScenarioClaimMutation($input: CancelScenarioClaimInput!) {\n cancelScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
10174
+ var RejectScenarioClaimMutation = gqlTyped(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\nmutation RejectScenarioClaimMutation($input: RejectScenarioClaimInput!) {\n rejectScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"], ["\nmutation RejectScenarioClaimMutation($input: RejectScenarioClaimInput!) {\n rejectScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"])));
10175
+ var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\nmutation ApproveScenarioClaimMutation($input: ApproveScenarioClaimInput!) {\n approveScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"], ["\nmutation ApproveScenarioClaimMutation($input: ApproveScenarioClaimInput!) {\n approveScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"])));
10176
+ var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\nmutation ReceiveScenarioClaimMutation($input: ReceiveScenarioClaimInput!) {\n receiveScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation ReceiveScenarioClaimMutation($input: ReceiveScenarioClaimInput!) {\n receiveScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
10177
+ var DebugExpireScenarioClaimMutation = gqlTyped(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\nmutation DebugExpireScenarioClaimMutation($input: DebugExpireScenarioClaimInput!) {\n debugExpireScenarioClaim(input: $input) {\n scenarioClaim {\n id\n }\n }\n}\n"], ["\nmutation DebugExpireScenarioClaimMutation($input: DebugExpireScenarioClaimInput!) {\n debugExpireScenarioClaim(input: $input) {\n scenarioClaim {\n id\n }\n }\n}\n"])));
10178
+ var DebugExpireTpPasswordResetRequestMutation = gqlTyped(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\nmutation DebugExpireTpPasswordResetRequestMutation($input: DebugExpireTpPasswordResetRequestInput!) {\n debugExpireTpPasswordResetRequest(input: $input) {\n passwordResetRequest {\n id\n }\n }\n}\n"], ["\nmutation DebugExpireTpPasswordResetRequestMutation($input: DebugExpireTpPasswordResetRequestInput!) {\n debugExpireTpPasswordResetRequest(input: $input) {\n passwordResetRequest {\n id\n }\n }\n}\n"])));
10179
+ var templateObject_1$l, templateObject_2$g, templateObject_3$f, templateObject_4$a, templateObject_5$9, templateObject_6$6, templateObject_7$5, templateObject_8$5, templateObject_9$4, templateObject_10$1;
10180
+
10200
10181
  var SCENARIO_SLIP39_PASSPHRASE = 'lifeready';
10201
10182
 
10202
10183
  exports.ɵm = /** @class */ (function (_super) {
@@ -10229,18 +10210,6 @@
10229
10210
  })
10230
10211
  ], exports.ɵm);
10231
10212
 
10232
- var CreateScenarioMutation = gqlTyped(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\nmutation CreateScenarioMutation($input: CreateScenarioInput!) {\n createScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"], ["\nmutation CreateScenarioMutation($input: CreateScenarioInput!) {\n createScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"])));
10233
- var UpdateScenarioMutation = gqlTyped(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\nmutation UpdateScenarioMutation($input: UpdateScenarioInput!) {\n updateScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"], ["\nmutation UpdateScenarioMutation($input: UpdateScenarioInput!) {\n updateScenario(input: $input) {\n scenario {\n id\n }\n }\n}\n"])));
10234
- var DeleteScenarioMutation = gqlTyped(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\nmutation DeleteScenarioMutation($input: DeleteScenarioInput!) {\n deleteScenario(input: $input) {\n id\n }\n}\n"], ["\nmutation DeleteScenarioMutation($input: DeleteScenarioInput!) {\n deleteScenario(input: $input) {\n id\n }\n}\n"])));
10235
- var CreateScenarioClaimMutation = gqlTyped(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\nmutation CreateScenarioClaimMutation($input: CreateScenarioClaimInput!) {\n createScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation CreateScenarioClaimMutation($input: CreateScenarioClaimInput!) {\n createScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
10236
- var CancelScenarioClaimMutation = gqlTyped(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\nmutation CancelScenarioClaimMutation($input: CancelScenarioClaimInput!) {\n cancelScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation CancelScenarioClaimMutation($input: CancelScenarioClaimInput!) {\n cancelScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
10237
- var RejectScenarioClaimMutation = gqlTyped(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\nmutation RejectScenarioClaimMutation($input: RejectScenarioClaimInput!) {\n rejectScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"], ["\nmutation RejectScenarioClaimMutation($input: RejectScenarioClaimInput!) {\n rejectScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"])));
10238
- var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\nmutation ApproveScenarioClaimMutation($input: ApproveScenarioClaimInput!) {\n approveScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"], ["\nmutation ApproveScenarioClaimMutation($input: ApproveScenarioClaimInput!) {\n approveScenarioClaim(input: $input) {\n claimApprover {\n id\n }\n }\n}\n"])));
10239
- var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\nmutation ReceiveScenarioClaimMutation($input: ReceiveScenarioClaimInput!) {\n receiveScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"], ["\nmutation ReceiveScenarioClaimMutation($input: ReceiveScenarioClaimInput!) {\n receiveScenarioClaim(input: $input) {\n sharedClaim {\n id\n }\n }\n}\n"])));
10240
- var DebugExpireScenarioClaimMutation = gqlTyped(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\nmutation DebugExpireScenarioClaimMutation($input: DebugExpireScenarioClaimInput!) {\n debugExpireScenarioClaim(input: $input) {\n scenarioClaim {\n id\n }\n }\n}\n"], ["\nmutation DebugExpireScenarioClaimMutation($input: DebugExpireScenarioClaimInput!) {\n debugExpireScenarioClaim(input: $input) {\n scenarioClaim {\n id\n }\n }\n}\n"])));
10241
- var DebugExpireTpPasswordResetRequestMutation = gqlTyped(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\nmutation DebugExpireTpPasswordResetRequestMutation($input: DebugExpireTpPasswordResetRequestInput!) {\n debugExpireTpPasswordResetRequest(input: $input) {\n passwordResetRequest {\n id\n }\n }\n}\n"], ["\nmutation DebugExpireTpPasswordResetRequestMutation($input: DebugExpireTpPasswordResetRequestInput!) {\n debugExpireTpPasswordResetRequest(input: $input) {\n passwordResetRequest {\n id\n }\n }\n}\n"])));
10242
- var templateObject_1$l, templateObject_2$g, templateObject_3$f, templateObject_4$a, templateObject_5$9, templateObject_6$6, templateObject_7$5, templateObject_8$5, templateObject_9$4, templateObject_10$1;
10243
-
10244
10213
  var ScenarioQuery = gqlTyped(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\nquery ScenarioQuery(\n $scenarioId: LrRelayIdInput!\n) {\n scenario(id: $scenarioId) {\n id\n state\n assembly {\n quorum\n singleReject\n assemblyKey {\n id\n }\n subjectKey {\n id\n }\n subjectCipherData\n subAssemblies {\n edges {\n node {\n id\n subjectKey {\n id\n }\n subjectCipherData\n quorum\n singleReject\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n claimants {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n receivers {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n receiverDirectories {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n directory {\n id\n keyId\n }\n }\n }\n }\n receiverFiles {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n}"], ["\nquery ScenarioQuery(\n $scenarioId: LrRelayIdInput!\n) {\n scenario(id: $scenarioId) {\n id\n state\n assembly {\n quorum\n singleReject\n assemblyKey {\n id\n }\n subjectKey {\n id\n }\n subjectCipherData\n subAssemblies {\n edges {\n node {\n id\n subjectKey {\n id\n }\n subjectCipherData\n quorum\n singleReject\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n claimants {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n }\n }\n }\n receivers {\n edges {\n node {\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n receiverDirectories {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n directory {\n id\n keyId\n }\n }\n }\n }\n receiverFiles {\n edges {\n node {\n id\n sharedCipherData\n sharedKey {\n id\n }\n accessRole\n itemKey {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n}"])));
10245
10214
  var SharedScenarioQuery = gqlTyped(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\nquery SharedScenarioQuery($scenarioId: LrRelayIdInput!) {\n sharedScenario(id: $scenarioId) {\n id\n state\n tp {\n id\n }\n asClaimant {\n sharedKey {\n id\n }\n sharedCipherData\n }\n asReceiver {\n sharedKey {\n id\n }\n sharedCipherData\n pbk {\n id\n }\n receiverDirectories {\n edges {\n node {\n id\n wrappedItemKey\n }\n }\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedClaim {\n\t \t\tid\n isClaimant\n claim {\n state\n asClaimApprovers {\n edges {\n node {\n id\n state\n sharedKey {\n id\n }\n sharedCipherApprovalData\n sharedCipherPartialAssemblyKey\n receiverApprovals {\n edges {\n node {\n id\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n asClaimReceiver {\n received\n approvals {\n edges {\n node {\n receiverCipher\n receiverCipherPartialAssemblyKey\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n}\n"], ["\nquery SharedScenarioQuery($scenarioId: LrRelayIdInput!) {\n sharedScenario(id: $scenarioId) {\n id\n state\n tp {\n id\n }\n asClaimant {\n sharedKey {\n id\n }\n sharedCipherData\n }\n asReceiver {\n sharedKey {\n id\n }\n sharedCipherData\n pbk {\n id\n }\n receiverDirectories {\n edges {\n node {\n id\n wrappedItemKey\n }\n }\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedClaim {\n\t \t\tid\n isClaimant\n claim {\n state\n asClaimApprovers {\n edges {\n node {\n id\n state\n sharedKey {\n id\n }\n sharedCipherApprovalData\n sharedCipherPartialAssemblyKey\n receiverApprovals {\n edges {\n node {\n id\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n }\n asClaimReceiver {\n received\n approvals {\n edges {\n node {\n receiverCipher\n receiverCipherPartialAssemblyKey\n pxk {\n id\n }\n }\n }\n }\n }\n }\n }\n}\n"])));
10246
10215
  var templateObject_1$m, templateObject_2$h;
@@ -10253,12 +10222,12 @@
10253
10222
  }
10254
10223
  exports.ScenarioService = /** @class */ (function (_super) {
10255
10224
  __extends(ScenarioService, _super);
10256
- function ScenarioService(ngZone, injector, keyGraph, item2Service, assemblyController, encryptionService) {
10225
+ function ScenarioService(ngZone, injector, keyGraph, itemService, assemblyController, encryptionService) {
10257
10226
  var _this = _super.call(this, injector) || this;
10258
10227
  _this.ngZone = ngZone;
10259
10228
  _this.injector = injector;
10260
10229
  _this.keyGraph = keyGraph;
10261
- _this.item2Service = item2Service;
10230
+ _this.itemService = itemService;
10262
10231
  _this.assemblyController = assemblyController;
10263
10232
  _this.encryptionService = encryptionService;
10264
10233
  _this.prepareAddReceiverDirectory = _this.prepareReceiverDirectory;
@@ -10718,7 +10687,7 @@
10718
10687
  var directoryKey, sharedCipherData, wrappedItemKey;
10719
10688
  return __generator(this, function (_a) {
10720
10689
  switch (_a.label) {
10721
- case 0: return [4 /*yield*/, this.item2Service.getDirectoryKey(options.directoryId, options.directoryKeyId)];
10690
+ case 0: return [4 /*yield*/, this.itemService.getDirectoryKey(options.directoryId, options.directoryKeyId)];
10722
10691
  case 1:
10723
10692
  directoryKey = _a.sent();
10724
10693
  return [4 /*yield*/, this.keyGraph.encryptToString(receiverSharedKey, options.sharedCipherDataClearJson || '')];
@@ -11069,7 +11038,7 @@
11069
11038
  return ScenarioService;
11070
11039
  }(LrService));
11071
11040
  exports.ScenarioService.SLIP39_PASSPHRASE = 'lifeready';
11072
- exports.ScenarioService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ScenarioService_Factory() { return new exports.ScenarioService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.Item2Service), i0.ɵɵinject(exports.ɵm), i0.ɵɵinject(EncryptionService)); }, token: exports.ScenarioService, providedIn: "root" });
11041
+ exports.ScenarioService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ScenarioService_Factory() { return new exports.ScenarioService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.ItemService), i0.ɵɵinject(exports.ɵm), i0.ɵɵinject(EncryptionService)); }, token: exports.ScenarioService, providedIn: "root" });
11073
11042
  exports.ScenarioService.decorators = [
11074
11043
  { type: i0.Injectable, args: [{
11075
11044
  providedIn: 'root',
@@ -11079,7 +11048,7 @@
11079
11048
  { type: i0.NgZone },
11080
11049
  { type: i0.Injector },
11081
11050
  { type: KeyGraphService },
11082
- { type: exports.Item2Service },
11051
+ { type: exports.ItemService },
11083
11052
  { type: exports.ɵm },
11084
11053
  { type: EncryptionService }
11085
11054
  ]; };
@@ -11791,23 +11760,23 @@
11791
11760
  var TpCurrentUserSharedKeyQuery = gqlTyped(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\nquery TpCurrentUserSharedKeyQuery($id: LrRelayIdInput!) {\n tp(id: $id){\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n }\n mkReshareRequestCipher\n mkReshareRequestSent\n mkReshareResponseCipher\n mkReshareResponseSent\n }\n }\n }\n}\n"], ["\nquery TpCurrentUserSharedKeyQuery($id: LrRelayIdInput!) {\n tp(id: $id){\n currentUserSharedKey {\n userSharedKey {\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n }\n mkReshareRequestCipher\n mkReshareRequestSent\n mkReshareResponseCipher\n mkReshareResponseSent\n }\n }\n }\n}\n"])));
11792
11761
  var templateObject_1$r;
11793
11762
 
11794
- exports.TrustedParty2Service = /** @class */ (function (_super) {
11795
- __extends(TrustedParty2Service, _super);
11796
- function TrustedParty2Service(ngZone, injector, keyGraph, item2Service, keyService, keyFactory, encryptionService) {
11763
+ exports.TrustedPartyService = /** @class */ (function (_super) {
11764
+ __extends(TrustedPartyService, _super);
11765
+ function TrustedPartyService(ngZone, injector, keyGraph, itemService, keyService, keyFactory, encryptionService) {
11797
11766
  var _this = _super.call(this, injector) || this;
11798
11767
  _this.ngZone = ngZone;
11799
11768
  _this.injector = injector;
11800
11769
  _this.keyGraph = keyGraph;
11801
- _this.item2Service = item2Service;
11770
+ _this.itemService = itemService;
11802
11771
  _this.keyService = keyService;
11803
11772
  _this.keyFactory = keyFactory;
11804
11773
  _this.encryptionService = encryptionService;
11805
11774
  return _this;
11806
11775
  }
11807
- TrustedParty2Service.prototype.deleteTp = function (tpId) {
11776
+ TrustedPartyService.prototype.deleteTp = function (tpId) {
11808
11777
  return this.mutate(this.deleteTpMutation(tpId));
11809
11778
  };
11810
- TrustedParty2Service.prototype.deleteTpMutation = function (tpId) {
11779
+ TrustedPartyService.prototype.deleteTpMutation = function (tpId) {
11811
11780
  return new LrMutation({
11812
11781
  mutation: DeleteTpMutation,
11813
11782
  variables: {
@@ -11817,35 +11786,35 @@
11817
11786
  },
11818
11787
  });
11819
11788
  };
11820
- TrustedParty2Service.prototype.shareDirectory = function (options) {
11789
+ TrustedPartyService.prototype.shareDirectory = function (options) {
11821
11790
  return __awaiter(this, void 0, void 0, function () {
11822
11791
  return __generator(this, function (_a) {
11823
11792
  return [2 /*return*/, this.mutate(this.shareDirectoryMutation(options))];
11824
11793
  });
11825
11794
  });
11826
11795
  };
11827
- TrustedParty2Service.prototype.shareDirectoryMutation = function (options) {
11796
+ TrustedPartyService.prototype.shareDirectoryMutation = function (options) {
11828
11797
  return __awaiter(this, void 0, void 0, function () {
11829
11798
  return __generator(this, function (_a) {
11830
11799
  return [2 /*return*/, this.shareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
11831
11800
  });
11832
11801
  });
11833
11802
  };
11834
- TrustedParty2Service.prototype.shareFile = function (options) {
11803
+ TrustedPartyService.prototype.shareFile = function (options) {
11835
11804
  return __awaiter(this, void 0, void 0, function () {
11836
11805
  return __generator(this, function (_a) {
11837
11806
  return [2 /*return*/, this.mutate(this.shareFileMutation(options))];
11838
11807
  });
11839
11808
  });
11840
11809
  };
11841
- TrustedParty2Service.prototype.shareFileMutation = function (options) {
11810
+ TrustedPartyService.prototype.shareFileMutation = function (options) {
11842
11811
  return __awaiter(this, void 0, void 0, function () {
11843
11812
  return __generator(this, function (_a) {
11844
11813
  return [2 /*return*/, this.shareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
11845
11814
  });
11846
11815
  });
11847
11816
  };
11848
- TrustedParty2Service.prototype.shareItemMutation = function (_a) {
11817
+ TrustedPartyService.prototype.shareItemMutation = function (_a) {
11849
11818
  var itemId = _a.itemId, itemKeyId = _a.itemKeyId, tpId = _a.tpId, tpSharedKeyId = _a.tpSharedKeyId, accessRole = _a.accessRole, isDirectory = _a.isDirectory;
11850
11819
  return __awaiter(this, void 0, void 0, function () {
11851
11820
  var itemKey, wrappingKey, wrappedKey;
@@ -11853,8 +11822,8 @@
11853
11822
  return __generator(this, function (_a) {
11854
11823
  switch (_a.label) {
11855
11824
  case 0: return [4 /*yield*/, this.keyGraph.getKey(itemKeyId, function () { return isDirectory
11856
- ? _this.item2Service.getDirectoryKeyId(itemId)
11857
- : _this.item2Service.getFileKeyId(itemId); })];
11825
+ ? _this.itemService.getDirectoryKeyId(itemId)
11826
+ : _this.itemService.getFileKeyId(itemId); })];
11858
11827
  case 1:
11859
11828
  itemKey = _a.sent();
11860
11829
  return [4 /*yield*/, this.keyGraph.getKey(tpSharedKeyId, function () { return _this.getTpCurrentUserSharedKey(tpId).then(function (res) { return res.sharedKey.id; }); })];
@@ -11880,35 +11849,35 @@
11880
11849
  });
11881
11850
  });
11882
11851
  };
11883
- TrustedParty2Service.prototype.unshareDirectory = function (options) {
11852
+ TrustedPartyService.prototype.unshareDirectory = function (options) {
11884
11853
  return __awaiter(this, void 0, void 0, function () {
11885
11854
  return __generator(this, function (_a) {
11886
11855
  return [2 /*return*/, this.mutate(this.unshareDirectoryMutation(options))];
11887
11856
  });
11888
11857
  });
11889
11858
  };
11890
- TrustedParty2Service.prototype.unshareDirectoryMutation = function (options) {
11859
+ TrustedPartyService.prototype.unshareDirectoryMutation = function (options) {
11891
11860
  return __awaiter(this, void 0, void 0, function () {
11892
11861
  return __generator(this, function (_a) {
11893
11862
  return [2 /*return*/, this.unshareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true }))];
11894
11863
  });
11895
11864
  });
11896
11865
  };
11897
- TrustedParty2Service.prototype.unshareFile = function (options) {
11866
+ TrustedPartyService.prototype.unshareFile = function (options) {
11898
11867
  return __awaiter(this, void 0, void 0, function () {
11899
11868
  return __generator(this, function (_a) {
11900
11869
  return [2 /*return*/, this.mutate(this.unshareFileMutation(options))];
11901
11870
  });
11902
11871
  });
11903
11872
  };
11904
- TrustedParty2Service.prototype.unshareFileMutation = function (options) {
11873
+ TrustedPartyService.prototype.unshareFileMutation = function (options) {
11905
11874
  return __awaiter(this, void 0, void 0, function () {
11906
11875
  return __generator(this, function (_a) {
11907
11876
  return [2 /*return*/, this.unshareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false }))];
11908
11877
  });
11909
11878
  });
11910
11879
  };
11911
- TrustedParty2Service.prototype.unshareItemMutation = function (_a) {
11880
+ TrustedPartyService.prototype.unshareItemMutation = function (_a) {
11912
11881
  var itemId = _a.itemId, tpId = _a.tpId, isDirectory = _a.isDirectory;
11913
11882
  return __awaiter(this, void 0, void 0, function () {
11914
11883
  return __generator(this, function (_a) {
@@ -11924,7 +11893,7 @@
11924
11893
  });
11925
11894
  });
11926
11895
  };
11927
- TrustedParty2Service.prototype.requestMkReshareMutation = function (tpId) {
11896
+ TrustedPartyService.prototype.requestMkReshareMutation = function (tpId) {
11928
11897
  return __awaiter(this, void 0, void 0, function () {
11929
11898
  var userSharedKey, masterKey, prk, mkWrappedMkPrk, sharedKey, mkReshareRequestCipher;
11930
11899
  return __generator(this, function (_a) {
@@ -11968,7 +11937,7 @@
11968
11937
  });
11969
11938
  });
11970
11939
  };
11971
- TrustedParty2Service.prototype.respondMkReshare = function (tpId) {
11940
+ TrustedPartyService.prototype.respondMkReshare = function (tpId) {
11972
11941
  return __awaiter(this, void 0, void 0, function () {
11973
11942
  var userSharedKey, sharedKey, plainMkReshareRequestCipher, pbk, mkSharedKey, plainMkReshareResponseCipher, mkReshareResponseCipher, _a, _b, _c;
11974
11943
  return __generator(this, function (_d) {
@@ -12017,7 +11986,7 @@
12017
11986
  });
12018
11987
  });
12019
11988
  };
12020
- TrustedParty2Service.prototype.completeMkReshare = function (tpId) {
11989
+ TrustedPartyService.prototype.completeMkReshare = function (tpId) {
12021
11990
  return __awaiter(this, void 0, void 0, function () {
12022
11991
  var userSharedKey, sharedKey, prk, plainMkReshareResponseCipher, _a, _b, _c, mkSharedKey, _d, masterKey, mkWrappedMkSharedKey;
12023
11992
  return __generator(this, function (_e) {
@@ -12068,7 +12037,7 @@
12068
12037
  // Helpers
12069
12038
  // ------------------------------------------------------------------------------------
12070
12039
  // ------------------------------------------------------------------------------------
12071
- TrustedParty2Service.prototype.getTpCurrentUserSharedKey = function (tpId) {
12040
+ TrustedPartyService.prototype.getTpCurrentUserSharedKey = function (tpId) {
12072
12041
  return __awaiter(this, void 0, void 0, function () {
12073
12042
  return __generator(this, function (_a) {
12074
12043
  switch (_a.label) {
@@ -12083,28 +12052,28 @@
12083
12052
  });
12084
12053
  });
12085
12054
  };
12086
- return TrustedParty2Service;
12055
+ return TrustedPartyService;
12087
12056
  }(LrService));
12088
- exports.TrustedParty2Service.ɵprov = i0.ɵɵdefineInjectable({ factory: function TrustedParty2Service_Factory() { return new exports.TrustedParty2Service(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.Item2Service), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(EncryptionService)); }, token: exports.TrustedParty2Service, providedIn: "root" });
12089
- exports.TrustedParty2Service.decorators = [
12057
+ exports.TrustedPartyService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TrustedPartyService_Factory() { return new exports.TrustedPartyService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(KeyGraphService), i0.ɵɵinject(exports.ItemService), i0.ɵɵinject(KeyService), i0.ɵɵinject(KeyFactoryService), i0.ɵɵinject(EncryptionService)); }, token: exports.TrustedPartyService, providedIn: "root" });
12058
+ exports.TrustedPartyService.decorators = [
12090
12059
  { type: i0.Injectable, args: [{
12091
12060
  providedIn: 'root',
12092
12061
  },] }
12093
12062
  ];
12094
- exports.TrustedParty2Service.ctorParameters = function () { return [
12063
+ exports.TrustedPartyService.ctorParameters = function () { return [
12095
12064
  { type: i0.NgZone },
12096
12065
  { type: i0.Injector },
12097
12066
  { type: KeyGraphService },
12098
- { type: exports.Item2Service },
12067
+ { type: exports.ItemService },
12099
12068
  { type: KeyService },
12100
12069
  { type: KeyFactoryService },
12101
12070
  { type: EncryptionService }
12102
12071
  ]; };
12103
- exports.TrustedParty2Service = __decorate([
12072
+ exports.TrustedPartyService = __decorate([
12104
12073
  RunOutsideAngular({
12105
12074
  ngZoneName: 'ngZone',
12106
12075
  })
12107
- ], exports.TrustedParty2Service);
12076
+ ], exports.TrustedPartyService);
12108
12077
 
12109
12078
  var TwoFactorService = /** @class */ (function () {
12110
12079
  function TwoFactorService(auth) {
@@ -12324,28 +12293,51 @@
12324
12293
 
12325
12294
  exports.ApiContactCard = ApiContactCard;
12326
12295
  exports.ApiCurrentUser = ApiCurrentUser;
12327
- exports.AuthTypes = auth2_types;
12296
+ exports.ApproveScenarioClaimMutation = ApproveScenarioClaimMutation;
12297
+ exports.ApproveTpPasswordResetRequestMutation = ApproveTpPasswordResetRequestMutation;
12298
+ exports.ArchiveDirectoryMutation = ArchiveDirectoryMutation;
12299
+ exports.ArchiveFileMutation = ArchiveFileMutation;
12300
+ exports.BeginDeleteChildItemLinksWindowMutation = BeginDeleteChildItemLinksWindowMutation;
12328
12301
  exports.CancelKeyExchangeMutation = CancelKeyExchangeMutation;
12302
+ exports.CancelScenarioClaimMutation = CancelScenarioClaimMutation;
12303
+ exports.CancelTpPasswordResetRequestMutation = CancelTpPasswordResetRequestMutation;
12329
12304
  exports.CancelUserDeleteMutation = CancelUserDeleteMutation;
12305
+ exports.ChangeDirectoryParentsMutation = ChangeDirectoryParentsMutation;
12306
+ exports.ChangeFileParentsMutation = ChangeFileParentsMutation;
12330
12307
  exports.CompleteKeyExchangeOtkMutation = CompleteKeyExchangeOtkMutation;
12308
+ exports.CompleteTpPasswordResetRequestMutation = CompleteTpPasswordResetRequestMutation;
12331
12309
  exports.ContactCardAddress = ContactCardAddress;
12332
12310
  exports.ContactCardName = ContactCardName;
12333
12311
  exports.ContactCardsQuery = ContactCardsQuery;
12334
12312
  exports.CreateContactCardMutation = CreateContactCardMutation$1;
12313
+ exports.CreateDirectoryMutation = CreateDirectoryMutation;
12314
+ exports.CreateFileMutation = CreateFileMutation;
12335
12315
  exports.CreateFileQuery = CreateFileQuery;
12336
12316
  exports.CreateLbopQuery = CreateLbopQuery;
12317
+ exports.CreateScenarioClaimMutation = CreateScenarioClaimMutation;
12318
+ exports.CreateScenarioMutation = CreateScenarioMutation;
12319
+ exports.CreateTpAssemblyKeyChallengeMutation = CreateTpAssemblyKeyChallengeMutation;
12320
+ exports.CreateTpPasswordResetMutation = CreateTpPasswordResetMutation;
12337
12321
  exports.CurrentUserKey = CurrentUserKey;
12338
12322
  exports.CurrentUserQuery = CurrentUserQuery;
12339
12323
  exports.CurrentUserSharedKeyQuery2 = CurrentUserSharedKeyQuery2;
12324
+ exports.DebugExpireScenarioClaimMutation = DebugExpireScenarioClaimMutation;
12325
+ exports.DebugExpireTpPasswordResetRequestMutation = DebugExpireTpPasswordResetRequestMutation;
12340
12326
  exports.DeclineKeyExchangeMutation = DeclineKeyExchangeMutation;
12341
12327
  exports.DefaultProcessorOptions = DefaultProcessorOptions;
12328
+ exports.DeleteDirectoryMutation = DeleteDirectoryMutation;
12329
+ exports.DeleteFileMutation = DeleteFileMutation;
12342
12330
  exports.DeleteLbopQuery = DeleteLbopQuery;
12331
+ exports.DeleteScenarioMutation = DeleteScenarioMutation;
12332
+ exports.DeleteTpPasswordResetMutation = DeleteTpPasswordResetMutation;
12343
12333
  exports.DirectoryQuery = DirectoryQuery;
12344
12334
  exports.ERROR_SOURCE = ERROR_SOURCE;
12345
12335
  exports.Features = Features;
12346
12336
  exports.FetchKeyGraphField = FetchKeyGraphField;
12347
12337
  exports.FileQuery = FileQuery;
12348
12338
  exports.FileUploadService = FileUploadService;
12339
+ exports.GetOwnedContactCardKeyIdsQuery = GetOwnedContactCardKeyIdsQuery;
12340
+ exports.GetReceivedContactCardKeyIdQuery = GetReceivedContactCardKeyIdQuery;
12349
12341
  exports.IdleService = IdleService;
12350
12342
  exports.InitiateKeyExchangeOtkMutation = InitiateKeyExchangeOtkMutation;
12351
12343
  exports.KC_CONFIG = KC_CONFIG;
@@ -12389,29 +12381,45 @@
12389
12381
  exports.MoveDirectoryQuery = MoveDirectoryQuery;
12390
12382
  exports.MoveFileQuery = MoveFileQuery;
12391
12383
  exports.OwnerPlainDataJson = OwnerPlainDataJson;
12392
- exports.PassIdpApiResult = PassIdpApiResult;
12393
12384
  exports.PasswordCheck = PasswordCheck;
12394
12385
  exports.PasswordService = PasswordService;
12395
12386
  exports.PersistService = PersistService;
12387
+ exports.PreCompleteTpPasswordResetRequestMutation = PreCompleteTpPasswordResetRequestMutation;
12396
12388
  exports.ProfileDetailsService = ProfileDetailsService;
12397
12389
  exports.ProfileService = ProfileService;
12390
+ exports.ReceiveScenarioClaimMutation = ReceiveScenarioClaimMutation;
12391
+ exports.RegisterResult = RegisterResult;
12398
12392
  exports.RegisterService = RegisterService;
12393
+ exports.RejectScenarioClaimMutation = RejectScenarioClaimMutation;
12394
+ exports.RejectTpPasswordResetRequestMutation = RejectTpPasswordResetRequestMutation;
12399
12395
  exports.RequestUserDeleteMutation = RequestUserDeleteMutation;
12400
12396
  exports.RespondKeyExchangeOtkMutation = RespondKeyExchangeOtkMutation;
12397
+ exports.RevertFileMutation = RevertFileMutation;
12401
12398
  exports.RevertFileQuery = RevertFileQuery;
12402
12399
  exports.ServerTimeQuery = ServerTimeQuery;
12400
+ exports.SetDirectoryConfidentialMutation = SetDirectoryConfidentialMutation;
12401
+ exports.SetFileConfidentialMutation = SetFileConfidentialMutation;
12403
12402
  exports.SharedTrustedPartyDetails = SharedTrustedPartyDetails;
12404
12403
  exports.SharedVaultFeature = SharedVaultFeature;
12405
12404
  exports.TPFeatures = TPFeatures;
12405
+ exports.TempDirectoryQuery = TempDirectoryQuery;
12406
12406
  exports.TimeService = TimeService;
12407
12407
  exports.TrustedPartiesQuery = TrustedPartiesQuery;
12408
12408
  exports.TrustedParty = TrustedParty;
12409
12409
  exports.TrustedPartyDetails = TrustedPartyDetails;
12410
12410
  exports.TrustedPartyProperties = TrustedPartyProperties;
12411
12411
  exports.TwoFactorService = TwoFactorService;
12412
+ exports.UnarchiveDirectoryMutation = UnarchiveDirectoryMutation;
12413
+ exports.UnarchiveFileMutation = UnarchiveFileMutation;
12412
12414
  exports.UpdateContactCardMutation = UpdateContactCardMutation$1;
12415
+ exports.UpdateDirectoryMutation = UpdateDirectoryMutation;
12416
+ exports.UpdateFileMutation = UpdateFileMutation;
12413
12417
  exports.UpdateFileQuery = UpdateFileQuery;
12414
12418
  exports.UpdateLbopQuery = UpdateLbopQuery;
12419
+ exports.UpdateOwnedContactCardMutation = UpdateOwnedContactCardMutation;
12420
+ exports.UpdateReceivedContactCardMutation = UpdateReceivedContactCardMutation;
12421
+ exports.UpdateScenarioMutation = UpdateScenarioMutation;
12422
+ exports.UpdateTpPasswordResetMutation = UpdateTpPasswordResetMutation;
12415
12423
  exports.UserService = UserService;
12416
12424
  exports.UserSharedKeyFields = UserSharedKeyFields;
12417
12425
  exports.WebCryptoService = WebCryptoService;