@lifeready/core 7.0.4 → 7.1.1
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 +356 -49
- 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 +22 -1
- package/esm2015/lib/item/item.gql.private.js +19 -1
- package/esm2015/lib/item/item.service.js +22 -2
- package/esm2015/lib/key/key-graph.service.js +9 -3
- package/esm2015/lib/trusted-party/trusted-party.gql.js +69 -1
- package/esm2015/lib/trusted-party/trusted-party.service.js +166 -17
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +299 -17
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +42 -16
- package/lib/item/item.gql.private.d.ts +16 -0
- package/lib/item/item.service.d.ts +2 -0
- package/lib/trusted-party/trusted-party.gql.d.ts +60 -0
- package/lib/trusted-party/trusted-party.service.d.ts +70 -5
- package/lib/trusted-party/trusted-party.types.d.ts +17 -1
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1353,7 +1353,13 @@ class KeyGraphService {
|
|
|
1353
1353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
1354
|
let keyId = typeof keyOrId === 'string' ? keyOrId : keyOrId === null || keyOrId === void 0 ? void 0 : keyOrId.id;
|
|
1355
1355
|
if (!this.hasKey(keyId) && getKeyIdCallback) {
|
|
1356
|
-
|
|
1356
|
+
const keyIdFromCallback = yield getKeyIdCallback();
|
|
1357
|
+
if (keyId != null && keyId != keyIdFromCallback) {
|
|
1358
|
+
throw new KcBadLogicException('Requested keyId is not in the key cache, so an API request was made to populate the key cache.' +
|
|
1359
|
+
'But the key returned by the API does NOT match the requested keyId.' +
|
|
1360
|
+
'This is a programming logic error.');
|
|
1361
|
+
}
|
|
1362
|
+
keyId = keyIdFromCallback;
|
|
1357
1363
|
}
|
|
1358
1364
|
// else, continue and let it fail.
|
|
1359
1365
|
const key = this.key(keyId);
|
|
@@ -2832,14 +2838,35 @@ var PlanState;
|
|
|
2832
2838
|
PlanState["ENABLED"] = "ENABLED";
|
|
2833
2839
|
PlanState["DISABLED"] = "DISABLED";
|
|
2834
2840
|
})(PlanState || (PlanState = {}));
|
|
2841
|
+
var TpShareTypeChoice;
|
|
2842
|
+
(function (TpShareTypeChoice) {
|
|
2843
|
+
TpShareTypeChoice["TP"] = "TP";
|
|
2844
|
+
TpShareTypeChoice["DETACHED"] = "DETACHED";
|
|
2845
|
+
})(TpShareTypeChoice || (TpShareTypeChoice = {}));
|
|
2846
|
+
var TpDetachedShareStateChoice;
|
|
2847
|
+
(function (TpDetachedShareStateChoice) {
|
|
2848
|
+
TpDetachedShareStateChoice["IN_PROGRESS"] = "IN_PROGRESS";
|
|
2849
|
+
TpDetachedShareStateChoice["COMPLETED"] = "COMPLETED";
|
|
2850
|
+
})(TpDetachedShareStateChoice || (TpDetachedShareStateChoice = {}));
|
|
2835
2851
|
var AccessRoleChoice;
|
|
2836
2852
|
(function (AccessRoleChoice) {
|
|
2837
2853
|
AccessRoleChoice["READER"] = "READER";
|
|
2838
2854
|
AccessRoleChoice["WRITER"] = "WRITER";
|
|
2839
2855
|
AccessRoleChoice["ADMIN"] = "ADMIN";
|
|
2856
|
+
AccessRoleChoice["CUSTODIAN"] = "CUSTODIAN";
|
|
2840
2857
|
AccessRoleChoice["DENY"] = "DENY";
|
|
2841
2858
|
AccessRoleChoice["OWNER"] = "OWNER";
|
|
2842
2859
|
})(AccessRoleChoice || (AccessRoleChoice = {}));
|
|
2860
|
+
var AccessRoleChoiceOrder;
|
|
2861
|
+
(function (AccessRoleChoiceOrder) {
|
|
2862
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["READER"] = 0] = "READER";
|
|
2863
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["WRITER"] = 1] = "WRITER";
|
|
2864
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["ADMIN"] = 2] = "ADMIN";
|
|
2865
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["CUSTODIAN"] = 3] = "CUSTODIAN";
|
|
2866
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["DENY"] = 4] = "DENY";
|
|
2867
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["CONFIDENTIAL"] = 5] = "CONFIDENTIAL";
|
|
2868
|
+
AccessRoleChoiceOrder[AccessRoleChoiceOrder["OWNER"] = 6] = "OWNER";
|
|
2869
|
+
})(AccessRoleChoiceOrder || (AccessRoleChoiceOrder = {}));
|
|
2843
2870
|
var AccessRoleMethodChoice;
|
|
2844
2871
|
(function (AccessRoleMethodChoice) {
|
|
2845
2872
|
AccessRoleMethodChoice["INHERITED"] = "INHERITED";
|
|
@@ -6109,6 +6136,24 @@ query FileKeyQuery($id: LrRelayIdInput!) {
|
|
|
6109
6136
|
}
|
|
6110
6137
|
}
|
|
6111
6138
|
`;
|
|
6139
|
+
const DirectoryKeyFromSharedDirectoryQuery = gqlTyped `
|
|
6140
|
+
query DirectoryKeyFromSharedDirectoryQuery($id: LrRelayIdInput!) {
|
|
6141
|
+
tpSharedDirectory(id: $id) {
|
|
6142
|
+
item {
|
|
6143
|
+
keyId
|
|
6144
|
+
}
|
|
6145
|
+
}
|
|
6146
|
+
}
|
|
6147
|
+
`;
|
|
6148
|
+
const FileKeyFromSharedFileQuery = gqlTyped `
|
|
6149
|
+
query FileKeyFromSharedFileQuery($id: LrRelayIdInput!) {
|
|
6150
|
+
tpSharedFile(id: $id) {
|
|
6151
|
+
item {
|
|
6152
|
+
keyId
|
|
6153
|
+
}
|
|
6154
|
+
}
|
|
6155
|
+
}
|
|
6156
|
+
`;
|
|
6112
6157
|
const FileStateKeyQuery = gqlTyped `
|
|
6113
6158
|
query FileStateKeyQuery($id: LrRelayIdInput!) {
|
|
6114
6159
|
fileState(id: $id) {
|
|
@@ -6162,6 +6207,26 @@ let ItemService = ItemService_1 = class ItemService extends LrService {
|
|
|
6162
6207
|
})).file.keyId;
|
|
6163
6208
|
});
|
|
6164
6209
|
}
|
|
6210
|
+
getDirectoryKeyIdFromSharedDirectory(sharedDirectoryId) {
|
|
6211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6212
|
+
return (yield this.query({
|
|
6213
|
+
query: DirectoryKeyFromSharedDirectoryQuery,
|
|
6214
|
+
variables: {
|
|
6215
|
+
id: sharedDirectoryId,
|
|
6216
|
+
},
|
|
6217
|
+
})).tpSharedDirectory.item.keyId;
|
|
6218
|
+
});
|
|
6219
|
+
}
|
|
6220
|
+
getFileKeyIdFromSharedFile(sharedFileId) {
|
|
6221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6222
|
+
return (yield this.query({
|
|
6223
|
+
query: FileKeyFromSharedFileQuery,
|
|
6224
|
+
variables: {
|
|
6225
|
+
id: sharedFileId,
|
|
6226
|
+
},
|
|
6227
|
+
})).tpSharedFile.item.keyId;
|
|
6228
|
+
});
|
|
6229
|
+
}
|
|
6165
6230
|
getDirectoryKey(directoryId, directoryKeyId) {
|
|
6166
6231
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6167
6232
|
return this.keyGraph.getKey(directoryKeyId, () => this.getDirectoryKeyId(directoryId));
|
|
@@ -10051,6 +10116,74 @@ const UnshareFileMutation = gqlTyped `
|
|
|
10051
10116
|
}
|
|
10052
10117
|
}
|
|
10053
10118
|
`;
|
|
10119
|
+
const CreateSharedDirectoryMutation = gqlTyped `
|
|
10120
|
+
mutation CreateSharedDirectoryMutation($input: CreateSharedDirectoryInput!) {
|
|
10121
|
+
createSharedDirectory(input: $input) {
|
|
10122
|
+
tpSharedDirectory {
|
|
10123
|
+
id
|
|
10124
|
+
}
|
|
10125
|
+
}
|
|
10126
|
+
}
|
|
10127
|
+
`;
|
|
10128
|
+
const CreateSharedFileMutation = gqlTyped `
|
|
10129
|
+
mutation CreateSharedFileMutation($input: CreateSharedFileInput!) {
|
|
10130
|
+
createSharedFile(input: $input) {
|
|
10131
|
+
tpSharedFile {
|
|
10132
|
+
id
|
|
10133
|
+
}
|
|
10134
|
+
}
|
|
10135
|
+
}
|
|
10136
|
+
`;
|
|
10137
|
+
const UpdateSharedDirectoryMutation = gqlTyped `
|
|
10138
|
+
mutation UpdateSharedDirectoryMutation($input: UpdateSharedDirectoryInput!) {
|
|
10139
|
+
updateSharedDirectory(input: $input) {
|
|
10140
|
+
tpSharedDirectory {
|
|
10141
|
+
id
|
|
10142
|
+
}
|
|
10143
|
+
}
|
|
10144
|
+
}
|
|
10145
|
+
`;
|
|
10146
|
+
const UpdateSharedFileMutation = gqlTyped `
|
|
10147
|
+
mutation UpdateSharedFileMutation($input: UpdateSharedFileInput!) {
|
|
10148
|
+
updateSharedFile(input: $input) {
|
|
10149
|
+
tpSharedFile {
|
|
10150
|
+
id
|
|
10151
|
+
}
|
|
10152
|
+
}
|
|
10153
|
+
}
|
|
10154
|
+
`;
|
|
10155
|
+
const DeleteSharedDirectoryMutation = gqlTyped `
|
|
10156
|
+
mutation DeleteSharedDirectoryMutation($input: DeleteSharedDirectoryInput!) {
|
|
10157
|
+
deleteSharedDirectory(input: $input) {
|
|
10158
|
+
id
|
|
10159
|
+
}
|
|
10160
|
+
}
|
|
10161
|
+
`;
|
|
10162
|
+
const DeleteSharedFileMutation = gqlTyped `
|
|
10163
|
+
mutation DeleteSharedFileMutation($input: DeleteSharedFileInput!) {
|
|
10164
|
+
deleteSharedFile(input: $input) {
|
|
10165
|
+
id
|
|
10166
|
+
}
|
|
10167
|
+
}
|
|
10168
|
+
`;
|
|
10169
|
+
const CompleteDetachedSharedDirectoryMutation = gqlTyped `
|
|
10170
|
+
mutation CompleteDetachedSharedDirectoryMutation($input: CompleteDetachedSharedDirectoryInput!) {
|
|
10171
|
+
completeDetachedSharedDirectory(input: $input) {
|
|
10172
|
+
tpSharedDirectory {
|
|
10173
|
+
id
|
|
10174
|
+
}
|
|
10175
|
+
}
|
|
10176
|
+
}
|
|
10177
|
+
`;
|
|
10178
|
+
const CompleteDetachedSharedFileMutation = gqlTyped `
|
|
10179
|
+
mutation CompleteDetachedSharedFileMutation($input: CompleteDetachedSharedFileInput!) {
|
|
10180
|
+
completeDetachedSharedFile(input: $input) {
|
|
10181
|
+
tpSharedFile {
|
|
10182
|
+
id
|
|
10183
|
+
}
|
|
10184
|
+
}
|
|
10185
|
+
}
|
|
10186
|
+
`;
|
|
10054
10187
|
const RequestTpMkReshareMutation = gqlTyped `
|
|
10055
10188
|
mutation RequestTpMkReshareMutation($input: RequestTpMkReshareInput!) {
|
|
10056
10189
|
requestTpMkReshare(input: $input) {
|
|
@@ -10126,7 +10259,10 @@ let TrustedPartyService = class TrustedPartyService extends LrService {
|
|
|
10126
10259
|
}
|
|
10127
10260
|
shareDirectoryMutation(options) {
|
|
10128
10261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10129
|
-
return
|
|
10262
|
+
return new LrMutation({
|
|
10263
|
+
mutation: ShareDirectoryMutation,
|
|
10264
|
+
variables: yield this.prepareShareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true })),
|
|
10265
|
+
});
|
|
10130
10266
|
});
|
|
10131
10267
|
}
|
|
10132
10268
|
shareFile(options) {
|
|
@@ -10136,29 +10272,30 @@ let TrustedPartyService = class TrustedPartyService extends LrService {
|
|
|
10136
10272
|
}
|
|
10137
10273
|
shareFileMutation(options) {
|
|
10138
10274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10139
|
-
return
|
|
10275
|
+
return new LrMutation({
|
|
10276
|
+
mutation: ShareFileMutation,
|
|
10277
|
+
variables: yield this.prepareShareItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false })),
|
|
10278
|
+
});
|
|
10140
10279
|
});
|
|
10141
10280
|
}
|
|
10142
|
-
|
|
10281
|
+
prepareShareItemMutation(options) {
|
|
10143
10282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10283
|
+
const { itemId, itemKeyId, tpId, tpSharedKeyId, accessRole, isDirectory } = options;
|
|
10144
10284
|
const itemKey = yield this.keyGraph.getKey(itemKeyId, () => isDirectory
|
|
10145
10285
|
? this.itemService.getDirectoryKeyId(itemId)
|
|
10146
10286
|
: this.itemService.getFileKeyId(itemId));
|
|
10147
10287
|
const wrappingKey = yield this.keyGraph.getKey(tpSharedKeyId, () => this.getTpCurrentUserSharedKey(tpId).then((res) => res.sharedKey.id));
|
|
10148
10288
|
const wrappedKey = yield this.keyGraph.wrapKey(wrappingKey, itemKey.jwk);
|
|
10149
|
-
return
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
wrappingKeyId: wrappingKey.id,
|
|
10158
|
-
wrappedKey,
|
|
10159
|
-
},
|
|
10289
|
+
return {
|
|
10290
|
+
input: {
|
|
10291
|
+
id: itemId,
|
|
10292
|
+
tpId,
|
|
10293
|
+
accessRole,
|
|
10294
|
+
keyId: itemKey.id,
|
|
10295
|
+
wrappingKeyId: wrappingKey.id,
|
|
10296
|
+
wrappedKey,
|
|
10160
10297
|
},
|
|
10161
|
-
}
|
|
10298
|
+
};
|
|
10162
10299
|
});
|
|
10163
10300
|
}
|
|
10164
10301
|
unshareDirectory(options) {
|
|
@@ -10194,6 +10331,151 @@ let TrustedPartyService = class TrustedPartyService extends LrService {
|
|
|
10194
10331
|
});
|
|
10195
10332
|
});
|
|
10196
10333
|
}
|
|
10334
|
+
createSharedDirectory(options) {
|
|
10335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10336
|
+
return this.mutate(this.createSharedDirectoryMutation(options));
|
|
10337
|
+
});
|
|
10338
|
+
}
|
|
10339
|
+
createSharedDirectoryMutation(options) {
|
|
10340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10341
|
+
return new LrMutation({
|
|
10342
|
+
mutation: CreateSharedDirectoryMutation,
|
|
10343
|
+
variables: yield this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true })),
|
|
10344
|
+
});
|
|
10345
|
+
});
|
|
10346
|
+
}
|
|
10347
|
+
createSharedFile(options) {
|
|
10348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10349
|
+
return this.mutate(this.createSharedFileMutation(options));
|
|
10350
|
+
});
|
|
10351
|
+
}
|
|
10352
|
+
createSharedFileMutation(options) {
|
|
10353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10354
|
+
return new LrMutation({
|
|
10355
|
+
mutation: CreateSharedFileMutation,
|
|
10356
|
+
variables: yield this.prepareCreateSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false })),
|
|
10357
|
+
});
|
|
10358
|
+
});
|
|
10359
|
+
}
|
|
10360
|
+
prepareCreateSharedItemMutation(options) {
|
|
10361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10362
|
+
const { itemId, itemKeyId, tpId, tpSharedKeyId, accessRole, isDirectory, shareType, } = options;
|
|
10363
|
+
console.log('createSharedItemMutation()', itemKeyId);
|
|
10364
|
+
const itemKey = yield this.keyGraph.getKey(itemKeyId, () => isDirectory
|
|
10365
|
+
? this.itemService.getDirectoryKeyId(itemId)
|
|
10366
|
+
: this.itemService.getFileKeyId(itemId));
|
|
10367
|
+
console.log('createSharedItemMutation()', itemKey.id);
|
|
10368
|
+
const wrappingKey = yield this.keyGraph.getKey(tpSharedKeyId, () => this.getTpCurrentUserSharedKey(tpId).then((res) => res.sharedKey.id));
|
|
10369
|
+
const wrappedKey = yield this.keyGraph.wrapKey(wrappingKey, itemKey.jwk);
|
|
10370
|
+
return {
|
|
10371
|
+
input: {
|
|
10372
|
+
id: itemId,
|
|
10373
|
+
tpId,
|
|
10374
|
+
accessRole,
|
|
10375
|
+
keyId: itemKey.id,
|
|
10376
|
+
wrappingKeyId: wrappingKey.id,
|
|
10377
|
+
wrappedKey,
|
|
10378
|
+
shareType,
|
|
10379
|
+
},
|
|
10380
|
+
};
|
|
10381
|
+
});
|
|
10382
|
+
}
|
|
10383
|
+
updateSharedDirectory(options) {
|
|
10384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10385
|
+
return this.mutate(this.updateSharedDirectoryMutation(options));
|
|
10386
|
+
});
|
|
10387
|
+
}
|
|
10388
|
+
updateSharedDirectoryMutation(options) {
|
|
10389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10390
|
+
return new LrMutation({
|
|
10391
|
+
mutation: UpdateSharedDirectoryMutation,
|
|
10392
|
+
variables: this.prepareUpdateSharedItemMutation(options),
|
|
10393
|
+
});
|
|
10394
|
+
});
|
|
10395
|
+
}
|
|
10396
|
+
updateSharedFile(options) {
|
|
10397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10398
|
+
return this.mutate(this.updateSharedFileMutation(options));
|
|
10399
|
+
});
|
|
10400
|
+
}
|
|
10401
|
+
updateSharedFileMutation(options) {
|
|
10402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10403
|
+
return new LrMutation({
|
|
10404
|
+
mutation: UpdateSharedFileMutation,
|
|
10405
|
+
variables: this.prepareUpdateSharedItemMutation(options),
|
|
10406
|
+
});
|
|
10407
|
+
});
|
|
10408
|
+
}
|
|
10409
|
+
prepareUpdateSharedItemMutation(options) {
|
|
10410
|
+
const { sharedItemId, accessRole } = options;
|
|
10411
|
+
return {
|
|
10412
|
+
input: {
|
|
10413
|
+
id: sharedItemId,
|
|
10414
|
+
accessRole,
|
|
10415
|
+
},
|
|
10416
|
+
};
|
|
10417
|
+
}
|
|
10418
|
+
deleteSharedDirectory(id) {
|
|
10419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10420
|
+
return this.mutate(this.deleteSharedDirectoryMutation(id));
|
|
10421
|
+
});
|
|
10422
|
+
}
|
|
10423
|
+
deleteSharedDirectoryMutation(id) {
|
|
10424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10425
|
+
return new LrMutation({
|
|
10426
|
+
mutation: DeleteSharedDirectoryMutation,
|
|
10427
|
+
variables: {
|
|
10428
|
+
input: {
|
|
10429
|
+
id,
|
|
10430
|
+
},
|
|
10431
|
+
},
|
|
10432
|
+
});
|
|
10433
|
+
});
|
|
10434
|
+
}
|
|
10435
|
+
completeDetachedSharedDirectory(options) {
|
|
10436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10437
|
+
return this.mutate(this.completeDetachedSharedDirectoryMutation(options));
|
|
10438
|
+
});
|
|
10439
|
+
}
|
|
10440
|
+
completeDetachedSharedDirectoryMutation(options) {
|
|
10441
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10442
|
+
return new LrMutation({
|
|
10443
|
+
mutation: CompleteDetachedSharedDirectoryMutation,
|
|
10444
|
+
variables: yield this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: true })),
|
|
10445
|
+
});
|
|
10446
|
+
});
|
|
10447
|
+
}
|
|
10448
|
+
completeDetachedSharedFile(options) {
|
|
10449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10450
|
+
return this.mutate(this.completeDetachedSharedFileMutation(options));
|
|
10451
|
+
});
|
|
10452
|
+
}
|
|
10453
|
+
completeDetachedSharedFileMutation(options) {
|
|
10454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10455
|
+
return new LrMutation({
|
|
10456
|
+
mutation: CompleteDetachedSharedFileMutation,
|
|
10457
|
+
variables: yield this.prepareCompleteDetachedSharedItemMutation(Object.assign(Object.assign({}, options), { isDirectory: false })),
|
|
10458
|
+
});
|
|
10459
|
+
});
|
|
10460
|
+
}
|
|
10461
|
+
prepareCompleteDetachedSharedItemMutation(options) {
|
|
10462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10463
|
+
const { sharedItemId, itemKeyId, isDirectory } = options;
|
|
10464
|
+
const itemKey = yield this.keyGraph.getKey(itemKeyId, () => isDirectory
|
|
10465
|
+
? this.itemService.getDirectoryKeyIdFromSharedDirectory(sharedItemId)
|
|
10466
|
+
: this.itemService.getFileKeyIdFromSharedFile(sharedItemId));
|
|
10467
|
+
const rootKey = this.keyService.currentRootKey;
|
|
10468
|
+
const wrappedKey = yield this.keyGraph.wrapKey(rootKey, itemKey.jwk);
|
|
10469
|
+
return {
|
|
10470
|
+
input: {
|
|
10471
|
+
id: sharedItemId,
|
|
10472
|
+
keyId: itemKey.id,
|
|
10473
|
+
wrappingKeyId: rootKey.id,
|
|
10474
|
+
wrappedKey,
|
|
10475
|
+
},
|
|
10476
|
+
};
|
|
10477
|
+
});
|
|
10478
|
+
}
|
|
10197
10479
|
requestMkReshareMutation(tpId) {
|
|
10198
10480
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10199
10481
|
const userSharedKey = yield this.getTpCurrentUserSharedKey(tpId);
|
|
@@ -10473,5 +10755,5 @@ UserService.ctorParameters = () => [
|
|
|
10473
10755
|
* Generated bundle index. Do not edit.
|
|
10474
10756
|
*/
|
|
10475
10757
|
|
|
10476
|
-
export { AccessRoleChoice, AccessRoleMethodChoice, ApiContactCard, ApiCurrentUser, ApproveScenarioClaimMutation, ApproveTpPasswordResetRequestMutation, ArchiveDirectoryMutation, ArchiveFileMutation, AuthService, BeginDeleteChildItemLinksWindowMutation, CancelKeyExchangeMutation, CancelScenarioClaimMutation, CancelTpPasswordResetRequestMutation, CancelUserDeleteMutation, ChangeDirectoryParentsMutation, ChangeFileParentsMutation, ClaimApproverState, ClaimState, CognitoChallengeName, CommonProcessorsService, CompleteKeyExchangeOtkMutation, CompleteTpPasswordResetRequestMutation, Config, ContactCard2Service, ContactCardAddress, ContactCardName, ContactCardsQuery, CreateContactCardMutation$1 as CreateContactCardMutation, CreateDirectoryMutation, CreateFileMutation, CreateFileQuery, CreateLbopQuery, CreateScenarioClaimMutation, CreateScenarioMutation, CreateTpAssemblyKeyChallengeMutation, CreateTpPasswordResetMutation, CurrentUserKey, CurrentUserQuery, CurrentUserSharedKeyQuery2, DebugExpireScenarioClaimMutation, DebugExpireTpPasswordResetRequestMutation, DeclineKeyExchangeMutation, DefaultProcessorOptions, DeleteDirectoryMutation, DeleteFileMutation, DeleteLbopQuery, DeleteScenarioMutation, DeleteTpPasswordResetMutation, DirectoryQuery, ERROR_SOURCE, FeatureAction, Features, FetchKeyGraphField, FileOperationField, FileQuery, FileUploadService, GetOwnedContactCardKeyIdsQuery, GetReceivedContactCardKeyIdQuery, IdleService, InitiateKeyExchangeOtkMutation, ItemService, KC_CONFIG, KcAuthException, KcBadArgumentException, KcBadLogicException, KcBadRequestException, KcBadSignatureException, KcBadStateException, KcBadTimeSyncException, KcCodeMismatchException, KcConcurrentAccessException, KcEncryptionException, KcError, KcErrorCode, KcException, KcInternalErrorException, KcLbopErrorCode, KcLockedException, KcNotFoundException, KcSuspiciousOperationException, KcUnsupportedException, KeyExchangeFields, KeyExchangeMode, KeyExchangeOtkState, KeyExchangeQuery2, KeyExchangeService, KeyExchangeState, KeyExchangeTokenQuery2, KeyExchangesQuery2, KeyGraphField, KeyGraphFragment, LbopQuery, LbopService, LbopsQuery, LifeReadyModule, LinkTypeField, LockService, LockState, LoginHistoryQuery, LrApolloService, LrGraphQLService, LrMergedMutation, LrMutation, LrMutationBase, LrService, MainContactCardFields, MainContactCardPlainFields, MainContactCardProperty, MoveDirectoryQuery, MoveFileQuery, NotificationService, OwnerPlainDataJson, PasswordChangeStatus, PasswordCheck, PasswordService, PermissionChoice, PersistService, PlanService, PlanState, PlanStateField, PreCompleteTpPasswordResetRequestMutation, ProfileDetailsService, ProfileService, QueryProcessorService, ReceiveScenarioClaimMutation, RecoveryStatus, RegisterResult, RegisterService, RejectScenarioClaimMutation, RejectTpPasswordResetRequestMutation, ReminderService, RequestUserDeleteMutation, RespondKeyExchangeOtkMutation, RevertFileMutation, RevertFileQuery, ScenarioLastClaimState, ScenarioService, ScenarioState, ServerConfigService, ServerTimeQuery, SetDirectoryConfidentialMutation, SetFileConfidentialMutation, SharedContactCard2Service, SharedTrustedPartyDetails, SharedVaultFeature, TPFeatures, TempDirectoryQuery, TimeService, TpAssemblyState, TpClaimApproverState, TpClaimState, TpPasswordResetRequestService, TpPasswordResetService, TpPasswordResetUserService, TrustedPartiesQuery, TrustedParty, TrustedPartyDetails, TrustedPartyProperties, TrustedPartyService, TrustedPartyType, TwoFactorService, UnarchiveDirectoryMutation, UnarchiveFileMutation, UpdateContactCardMutation$1 as UpdateContactCardMutation, UpdateDirectoryMutation, UpdateFileMutation, UpdateFileQuery, UpdateLbopQuery, UpdateOwnedContactCardMutation, UpdateReceivedContactCardMutation, UpdateScenarioMutation, UpdateTpPasswordResetMutation, UserDeleteState, UserService, UserSharedKeyFields, WebCryptoService, awsFetch, configureAmplifyAuth, configureApollo, fragmentSpreadAstSelection, gqlTyped, handleApolloError, handleCognitoCallback, httpOptions, mapEdges, processConnection, throwClaimIdMismatch, throwClaimNotApproved, KeyGraphService as ɵa, EncryptionService as ɵb, KeyService as ɵc, KeyFactoryService as ɵd, LrService as ɵe, RunOutsideAngular as ɵf, LrGraphQLService as ɵg, KeyMetaService as ɵh, TpPasswordResetAssemblyController as ɵi, TpAssemblyController as ɵj, SharedContactCardFields as ɵk, SharedContactCardService as ɵl, ScenarioAssemblyController as ɵm, TpPasswordResetPrivateService as ɵn };
|
|
10758
|
+
export { AccessRoleChoice, AccessRoleChoiceOrder, AccessRoleMethodChoice, ApiContactCard, ApiCurrentUser, ApproveScenarioClaimMutation, ApproveTpPasswordResetRequestMutation, ArchiveDirectoryMutation, ArchiveFileMutation, AuthService, BeginDeleteChildItemLinksWindowMutation, CancelKeyExchangeMutation, CancelScenarioClaimMutation, CancelTpPasswordResetRequestMutation, CancelUserDeleteMutation, ChangeDirectoryParentsMutation, ChangeFileParentsMutation, ClaimApproverState, ClaimState, CognitoChallengeName, CommonProcessorsService, CompleteKeyExchangeOtkMutation, CompleteTpPasswordResetRequestMutation, Config, ContactCard2Service, ContactCardAddress, ContactCardName, ContactCardsQuery, CreateContactCardMutation$1 as CreateContactCardMutation, CreateDirectoryMutation, CreateFileMutation, CreateFileQuery, CreateLbopQuery, CreateScenarioClaimMutation, CreateScenarioMutation, CreateTpAssemblyKeyChallengeMutation, CreateTpPasswordResetMutation, CurrentUserKey, CurrentUserQuery, CurrentUserSharedKeyQuery2, DebugExpireScenarioClaimMutation, DebugExpireTpPasswordResetRequestMutation, DeclineKeyExchangeMutation, DefaultProcessorOptions, DeleteDirectoryMutation, DeleteFileMutation, DeleteLbopQuery, DeleteScenarioMutation, DeleteTpPasswordResetMutation, DirectoryQuery, ERROR_SOURCE, FeatureAction, Features, FetchKeyGraphField, FileOperationField, FileQuery, FileUploadService, GetOwnedContactCardKeyIdsQuery, GetReceivedContactCardKeyIdQuery, IdleService, InitiateKeyExchangeOtkMutation, ItemService, KC_CONFIG, KcAuthException, KcBadArgumentException, KcBadLogicException, KcBadRequestException, KcBadSignatureException, KcBadStateException, KcBadTimeSyncException, KcCodeMismatchException, KcConcurrentAccessException, KcEncryptionException, KcError, KcErrorCode, KcException, KcInternalErrorException, KcLbopErrorCode, KcLockedException, KcNotFoundException, KcSuspiciousOperationException, KcUnsupportedException, KeyExchangeFields, KeyExchangeMode, KeyExchangeOtkState, KeyExchangeQuery2, KeyExchangeService, KeyExchangeState, KeyExchangeTokenQuery2, KeyExchangesQuery2, KeyGraphField, KeyGraphFragment, LbopQuery, LbopService, LbopsQuery, LifeReadyModule, LinkTypeField, LockService, LockState, LoginHistoryQuery, LrApolloService, LrGraphQLService, LrMergedMutation, LrMutation, LrMutationBase, LrService, MainContactCardFields, MainContactCardPlainFields, MainContactCardProperty, MoveDirectoryQuery, MoveFileQuery, NotificationService, OwnerPlainDataJson, PasswordChangeStatus, PasswordCheck, PasswordService, PermissionChoice, PersistService, PlanService, PlanState, PlanStateField, PreCompleteTpPasswordResetRequestMutation, ProfileDetailsService, ProfileService, QueryProcessorService, ReceiveScenarioClaimMutation, RecoveryStatus, RegisterResult, RegisterService, RejectScenarioClaimMutation, RejectTpPasswordResetRequestMutation, ReminderService, RequestUserDeleteMutation, RespondKeyExchangeOtkMutation, RevertFileMutation, RevertFileQuery, ScenarioLastClaimState, ScenarioService, ScenarioState, ServerConfigService, ServerTimeQuery, SetDirectoryConfidentialMutation, SetFileConfidentialMutation, SharedContactCard2Service, SharedTrustedPartyDetails, SharedVaultFeature, TPFeatures, TempDirectoryQuery, TimeService, TpAssemblyState, TpClaimApproverState, TpClaimState, TpDetachedShareStateChoice, TpPasswordResetRequestService, TpPasswordResetService, TpPasswordResetUserService, TpShareTypeChoice, TrustedPartiesQuery, TrustedParty, TrustedPartyDetails, TrustedPartyProperties, TrustedPartyService, TrustedPartyType, TwoFactorService, UnarchiveDirectoryMutation, UnarchiveFileMutation, UpdateContactCardMutation$1 as UpdateContactCardMutation, UpdateDirectoryMutation, UpdateFileMutation, UpdateFileQuery, UpdateLbopQuery, UpdateOwnedContactCardMutation, UpdateReceivedContactCardMutation, UpdateScenarioMutation, UpdateTpPasswordResetMutation, UserDeleteState, UserService, UserSharedKeyFields, WebCryptoService, awsFetch, configureAmplifyAuth, configureApollo, fragmentSpreadAstSelection, gqlTyped, handleApolloError, handleCognitoCallback, httpOptions, mapEdges, processConnection, throwClaimIdMismatch, throwClaimNotApproved, KeyGraphService as ɵa, EncryptionService as ɵb, KeyService as ɵc, KeyFactoryService as ɵd, LrService as ɵe, RunOutsideAngular as ɵf, LrGraphQLService as ɵg, KeyMetaService as ɵh, TpPasswordResetAssemblyController as ɵi, TpAssemblyController as ɵj, SharedContactCardFields as ɵk, SharedContactCardService as ɵl, ScenarioAssemblyController as ɵm, TpPasswordResetPrivateService as ɵn };
|
|
10477
10759
|
//# sourceMappingURL=lifeready-core.js.map
|