@lifeready/core 1.1.4 → 1.1.6
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.
- package/bundles/lifeready-core.umd.js +45 -5
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/scenario/scenario.gql.js +19 -1
- package/esm2015/lib/scenario/scenario.service.js +20 -5
- package/esm2015/lib/scenario/scenario.types.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +2 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +19 -1
- package/fesm2015/lifeready-core.js +54 -3
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +2 -0
- package/lib/scenario/scenario.gql.d.ts +16 -0
- package/lib/scenario/scenario.service.d.ts +6 -0
- package/lib/scenario/scenario.types.d.ts +1 -1
- package/lib/tp-password-reset/tp-password-reset.private.gql.d.ts +1 -0
- package/lib/tp-password-reset/tp-password-reset.service.d.ts +6 -0
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6125,7 +6125,7 @@
|
|
|
6125
6125
|
var SharedTpPasswordResetFragment = gqlTyped(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\nfragment SharedTpPasswordResetFragment on SharedTpPasswordResetNode {\n id\n tp {\n id\n other {\n username\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedRequest {\n id\n pxk {\n id\n pbk\n }\n claim {\n id\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 }\n }\n }\n }\n }\n }\n }\n }\n}"], ["\nfragment SharedTpPasswordResetFragment on SharedTpPasswordResetNode {\n id\n tp {\n id\n other {\n username\n }\n }\n assembly {\n asApprovers {\n edges {\n node {\n id\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n sharedRequest {\n id\n pxk {\n id\n pbk\n }\n claim {\n id\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 }\n }\n }\n }\n }\n }\n }\n }\n}"])));
|
|
6126
6126
|
var SharedTpPasswordResetsQuery = gqlTyped(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\nquery SharedTpPasswordResetsQuery {\n sharedTpPasswordResets {\n edges {\n node {\n ...SharedTpPasswordResetFragment\n }\n }\n }\n}\n", "\n"], ["\nquery SharedTpPasswordResetsQuery {\n sharedTpPasswordResets {\n edges {\n node {\n ...SharedTpPasswordResetFragment\n }\n }\n }\n}\n", "\n"])), SharedTpPasswordResetFragment);
|
|
6127
6127
|
var SharedTpPasswordResetQuery = gqlTyped(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\nquery SharedTpPasswordResetQuery($id: LrRelayIdInput!) {\n sharedTpPasswordReset(id: $id) {\n ...SharedTpPasswordResetFragment\n }\n}\n", "\n"], ["\nquery SharedTpPasswordResetQuery($id: LrRelayIdInput!) {\n sharedTpPasswordReset(id: $id) {\n ...SharedTpPasswordResetFragment\n }\n}\n", "\n"])), SharedTpPasswordResetFragment);
|
|
6128
|
-
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\nquery TpPasswordResetUserQuery {\n tpPasswordResetUser {\n username\n resetUsername\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n sessionEncryptionKey\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n }\n}"], ["\nquery TpPasswordResetUserQuery {\n tpPasswordResetUser {\n username\n resetUsername\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n sessionEncryptionKey\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n }\n}"])));
|
|
6128
|
+
var TpPasswordResetUserQuery = gqlTyped(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\nquery TpPasswordResetUserQuery {\n tpPasswordResetUser {\n username\n resetUsername\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n sessionEncryptionKey\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n requestAgainAfter\n }\n}"], ["\nquery TpPasswordResetUserQuery {\n tpPasswordResetUser {\n username\n resetUsername\n state\n passKey {\n id\n passKeyParams\n passIdpParams\n }\n masterKey {\n id\n }\n pxk {\n id\n }\n sessionEncryptionKey\n assembly {\n singleReject\n quorum\n subAssemblies {\n singleReject\n quorum\n approvers {\n name\n email\n state\n }\n }\n }\n approvals {\n id\n modified\n approverEmail\n receiverCipher\n receiverCipherPartialAssemblyKey\n }\n assemblyCipherData\n wrappedAssemblyKeyVerifierPrk\n requestAgainAfter\n }\n}"])));
|
|
6129
6129
|
var TpPasswordResetQuery = gqlTyped(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\nquery TpPasswordResetQuery {\n tpPasswordReset {\n id\n applied\n assembly {\n singleReject\n quorum\n canMeetQuorum\n subjectCipherData\n subjectKey {\n id\n }\n assemblyKey {\n id\n }\n assemblyCipherData\n subAssemblies {\n edges {\n node {\n id\n singleReject\n quorum\n subjectCipherData\n subjectKey {\n id\n }\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n }\n }\n }\n }\n}"], ["\nquery TpPasswordResetQuery {\n tpPasswordReset {\n id\n applied\n assembly {\n singleReject\n quorum\n canMeetQuorum\n subjectCipherData\n subjectKey {\n id\n }\n assemblyKey {\n id\n }\n assemblyCipherData\n subAssemblies {\n edges {\n node {\n id\n singleReject\n quorum\n subjectCipherData\n subjectKey {\n id\n }\n approvers {\n edges {\n node {\n id\n tp {\n id\n }\n sharedKey {\n id\n }\n sharedCipherData\n }\n }\n }\n }\n }\n }\n }\n }\n}"])));
|
|
6130
6130
|
var templateObject_1$b, templateObject_2$8, templateObject_3$7, templateObject_4$5, templateObject_5$5;
|
|
6131
6131
|
|
|
@@ -12811,7 +12811,9 @@
|
|
|
12811
12811
|
var RejectScenarioClaimMutation = gqlTyped(templateObject_6$a || (templateObject_6$a = __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"])));
|
|
12812
12812
|
var ApproveScenarioClaimMutation = gqlTyped(templateObject_7$9 || (templateObject_7$9 = __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"])));
|
|
12813
12813
|
var ReceiveScenarioClaimMutation = gqlTyped(templateObject_8$8 || (templateObject_8$8 = __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"])));
|
|
12814
|
-
var
|
|
12814
|
+
var DebugExpireScenarioClaimMutation = gqlTyped(templateObject_9$5 || (templateObject_9$5 = __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"])));
|
|
12815
|
+
var DebugExpireTpPasswordResetRequestMutation = gqlTyped(templateObject_10$4 || (templateObject_10$4 = __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"])));
|
|
12816
|
+
var templateObject_1$q, templateObject_2$m, templateObject_3$j, templateObject_4$f, templateObject_5$d, templateObject_6$a, templateObject_7$9, templateObject_8$8, templateObject_9$5, templateObject_10$4;
|
|
12815
12817
|
|
|
12816
12818
|
var ScenarioQuery = gqlTyped(templateObject_1$r || (templateObject_1$r = __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}"])));
|
|
12817
12819
|
var SharedScenarioQuery = gqlTyped(templateObject_2$n || (templateObject_2$n = __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"])));
|
|
@@ -13062,6 +13064,25 @@
|
|
|
13062
13064
|
});
|
|
13063
13065
|
});
|
|
13064
13066
|
};
|
|
13067
|
+
ScenarioService.prototype.debugExpireClaim = function (scenarioId) {
|
|
13068
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13069
|
+
return __generator(this, function (_a) {
|
|
13070
|
+
return [2 /*return*/, this.mutate(this.debugExpireClaimMutation(scenarioId))];
|
|
13071
|
+
});
|
|
13072
|
+
});
|
|
13073
|
+
};
|
|
13074
|
+
ScenarioService.prototype.debugExpireClaimMutation = function (scenarioId) {
|
|
13075
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13076
|
+
return __generator(this, function (_a) {
|
|
13077
|
+
return [2 /*return*/, new LrMutation({
|
|
13078
|
+
mutation: DebugExpireScenarioClaimMutation,
|
|
13079
|
+
variables: {
|
|
13080
|
+
input: { scenarioId: scenarioId },
|
|
13081
|
+
},
|
|
13082
|
+
})];
|
|
13083
|
+
});
|
|
13084
|
+
});
|
|
13085
|
+
};
|
|
13065
13086
|
// --------------------------------------------------------------------------------
|
|
13066
13087
|
// --------------------------------------------------------------------------------
|
|
13067
13088
|
// Helpers
|
|
@@ -13274,7 +13295,7 @@
|
|
|
13274
13295
|
case 0: return [4 /*yield*/, this.item2Service.getDirectoryKey(options.directoryId, options.directoryKeyId)];
|
|
13275
13296
|
case 1:
|
|
13276
13297
|
directoryKey = _a.sent();
|
|
13277
|
-
return [4 /*yield*/, this.keyGraph.encryptToString(receiverSharedKey, options.sharedCipherDataClearJson)];
|
|
13298
|
+
return [4 /*yield*/, this.keyGraph.encryptToString(receiverSharedKey, options.sharedCipherDataClearJson || '')];
|
|
13278
13299
|
case 2:
|
|
13279
13300
|
sharedCipherData = _a.sent();
|
|
13280
13301
|
return [4 /*yield*/, this.keyGraph.encryptToString(receiverSharedKey, directoryKey.jwk.toJSON(true))];
|
|
@@ -13393,7 +13414,7 @@
|
|
|
13393
13414
|
var sharedKey;
|
|
13394
13415
|
return __generator(this, function (_a) {
|
|
13395
13416
|
switch (_a.label) {
|
|
13396
|
-
case 0: return [4 /*yield*/, this.keyGraph.encryptWithNewKey(options.tpSharedKeyId, options.sharedCipherDataClearJson)];
|
|
13417
|
+
case 0: return [4 /*yield*/, this.keyGraph.encryptWithNewKey(options.tpSharedKeyId, options.sharedCipherDataClearJson || '')];
|
|
13397
13418
|
case 1:
|
|
13398
13419
|
sharedKey = _a.sent();
|
|
13399
13420
|
return [2 /*return*/, {
|
|
@@ -13417,7 +13438,7 @@
|
|
|
13417
13438
|
case 0: return [4 /*yield*/, this.keyGraph.getJwkKey(sharedKeyId)];
|
|
13418
13439
|
case 1:
|
|
13419
13440
|
sharedKey = _a.sent();
|
|
13420
|
-
return [4 /*yield*/, this.keyGraph.encryptToString(sharedKey, options.sharedCipherDataClearJson)];
|
|
13441
|
+
return [4 /*yield*/, this.keyGraph.encryptToString(sharedKey, options.sharedCipherDataClearJson || '')];
|
|
13421
13442
|
case 2:
|
|
13422
13443
|
sharedCipherData = _a.sent();
|
|
13423
13444
|
return [2 /*return*/, {
|
|
@@ -14210,6 +14231,25 @@
|
|
|
14210
14231
|
});
|
|
14211
14232
|
});
|
|
14212
14233
|
};
|
|
14234
|
+
TpPasswordResetService.prototype.debugExpireResetRequest = function (username) {
|
|
14235
|
+
return this.mutate(this.debugExpireResetRequestMutation(username), {
|
|
14236
|
+
includeKeyGraph: false,
|
|
14237
|
+
});
|
|
14238
|
+
};
|
|
14239
|
+
TpPasswordResetService.prototype.debugExpireResetRequestMutation = function (username) {
|
|
14240
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14241
|
+
return __generator(this, function (_a) {
|
|
14242
|
+
return [2 /*return*/, new LrMutation({
|
|
14243
|
+
mutation: DebugExpireTpPasswordResetRequestMutation,
|
|
14244
|
+
variables: {
|
|
14245
|
+
input: {
|
|
14246
|
+
username: username,
|
|
14247
|
+
},
|
|
14248
|
+
},
|
|
14249
|
+
})];
|
|
14250
|
+
});
|
|
14251
|
+
});
|
|
14252
|
+
};
|
|
14213
14253
|
return TpPasswordResetService;
|
|
14214
14254
|
}(LrService));
|
|
14215
14255
|
exports.TpPasswordResetService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TpPasswordResetService_Factory() { return new exports.TpPasswordResetService(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(exports.ɵr), i0.ɵɵinject(exports.ɵl)); }, token: exports.TpPasswordResetService, providedIn: "root" });
|