@lifeready/core 8.0.2 → 8.0.3

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.
@@ -1,5 +1,6 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMergedMutation, LrMutation, LrService } from '../api/lr-graphql';
3
+ import { AccessRoleChoice } from '../api/types';
3
4
  import { EncryptionService } from '../encryption/encryption.service';
4
5
  import { ItemService } from '../item/item.service';
5
6
  import { KeyGraphService } from '../key/key-graph.service';
@@ -49,12 +50,17 @@ export declare class ScenarioService extends LrService {
49
50
  wrappedAssemblyKeyVerifierPrk: string;
50
51
  };
51
52
  createReceivers: {
52
- addDirectories: {
53
+ addDirectories: ({
53
54
  directoryId: string;
55
+ accessRole: AccessRoleChoice.DENY;
56
+ wrappedItemKey: any;
57
+ sharedCipherData: any;
58
+ } | {
59
+ directoryId: string;
60
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
54
61
  wrappedItemKey: string;
55
- accessRole: import("../api/types").AccessRoleChoice;
56
62
  sharedCipherData: string;
57
- }[];
63
+ })[];
58
64
  tpId: string;
59
65
  tpSharedKeyId: string;
60
66
  tpSharedKeyWrappedSharedKey: string;
@@ -125,30 +131,45 @@ export declare class ScenarioService extends LrService {
125
131
  wrappedAssemblyKeyVerifierPrk: string;
126
132
  };
127
133
  createReceivers: {
128
- addDirectories: {
134
+ addDirectories: ({
129
135
  directoryId: string;
136
+ accessRole: AccessRoleChoice.DENY;
137
+ wrappedItemKey: any;
138
+ sharedCipherData: any;
139
+ } | {
140
+ directoryId: string;
141
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
130
142
  wrappedItemKey: string;
131
- accessRole: import("../api/types").AccessRoleChoice;
132
143
  sharedCipherData: string;
133
- }[];
144
+ })[];
134
145
  tpId: string;
135
146
  tpSharedKeyId: string;
136
147
  tpSharedKeyWrappedSharedKey: string;
137
148
  sharedCipherData: string;
138
149
  }[];
139
150
  updateReceivers: {
140
- addDirectories: {
151
+ addDirectories: ({
141
152
  directoryId: string;
153
+ accessRole: AccessRoleChoice.DENY;
154
+ wrappedItemKey: any;
155
+ sharedCipherData: any;
156
+ } | {
157
+ directoryId: string;
158
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
142
159
  wrappedItemKey: string;
143
- accessRole: import("../api/types").AccessRoleChoice;
144
160
  sharedCipherData: string;
145
- }[];
146
- updateDirectories: {
161
+ })[];
162
+ updateDirectories: ({
163
+ directoryId: string;
164
+ accessRole: AccessRoleChoice.DENY;
165
+ wrappedItemKey: any;
166
+ sharedCipherData: any;
167
+ } | {
147
168
  directoryId: string;
169
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
148
170
  wrappedItemKey: string;
149
- accessRole: import("../api/types").AccessRoleChoice;
150
171
  sharedCipherData: string;
151
- }[];
172
+ })[];
152
173
  deleteDirectories: string[];
153
174
  tpId: string;
154
175
  sharedKeyId: string;
@@ -226,30 +247,45 @@ export declare class ScenarioService extends LrService {
226
247
  wrappedAssemblyKeyVerifierPrk: string;
227
248
  };
228
249
  createReceivers: {
229
- addDirectories: {
250
+ addDirectories: ({
251
+ directoryId: string;
252
+ accessRole: AccessRoleChoice.DENY;
253
+ wrappedItemKey: any;
254
+ sharedCipherData: any;
255
+ } | {
230
256
  directoryId: string;
257
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
231
258
  wrappedItemKey: string;
232
- accessRole: import("../api/types").AccessRoleChoice;
233
259
  sharedCipherData: string;
234
- }[];
260
+ })[];
235
261
  tpId: string;
236
262
  tpSharedKeyId: string;
237
263
  tpSharedKeyWrappedSharedKey: string;
238
264
  sharedCipherData: string;
239
265
  }[];
240
266
  updateReceivers: {
241
- addDirectories: {
267
+ addDirectories: ({
268
+ directoryId: string;
269
+ accessRole: AccessRoleChoice.DENY;
270
+ wrappedItemKey: any;
271
+ sharedCipherData: any;
272
+ } | {
242
273
  directoryId: string;
274
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
243
275
  wrappedItemKey: string;
244
- accessRole: import("../api/types").AccessRoleChoice;
245
276
  sharedCipherData: string;
246
- }[];
247
- updateDirectories: {
277
+ })[];
278
+ updateDirectories: ({
279
+ directoryId: string;
280
+ accessRole: AccessRoleChoice.DENY;
281
+ wrappedItemKey: any;
282
+ sharedCipherData: any;
283
+ } | {
248
284
  directoryId: string;
285
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
249
286
  wrappedItemKey: string;
250
- accessRole: import("../api/types").AccessRoleChoice;
251
287
  sharedCipherData: string;
252
- }[];
288
+ })[];
253
289
  deleteDirectories: string[];
254
290
  tpId: string;
255
291
  sharedKeyId: string;
@@ -13,7 +13,7 @@ export interface ReceiverDirectoryOptions {
13
13
  directoryId: string;
14
14
  directoryKeyId?: string;
15
15
  accessRole: AccessRoleChoice;
16
- sharedCipherDataClearJson: JSONObject;
16
+ sharedCipherDataClearJson?: JSONObject;
17
17
  }
18
18
  export declare type CreateReceiverDirectoryOptions = ReceiverDirectoryOptions;
19
19
  export declare type UpdateReceiverDirectoryOptions = ReceiverDirectoryOptions;