@lifeready/core 8.0.1 → 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.
Files changed (33) hide show
  1. package/bundles/lifeready-core.umd.js +247 -183
  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/_common/queries.gql.js +2 -149
  6. package/esm2015/lib/api/lr-graphql/lr-mutation.js +5 -3
  7. package/esm2015/lib/api/types/lr-graphql.types.js +11 -11
  8. package/esm2015/lib/item/item.gql.private.js +7 -7
  9. package/esm2015/lib/item/item.service.js +10 -10
  10. package/esm2015/lib/key/key-graph.service.js +14 -1
  11. package/esm2015/lib/key/key.types.js +1 -1
  12. package/esm2015/lib/scenario/scenario.gql.js +1 -1
  13. package/esm2015/lib/scenario/scenario.private.gql.js +36 -31
  14. package/esm2015/lib/scenario/scenario.service.js +55 -22
  15. package/esm2015/lib/scenario/scenario.types.js +1 -1
  16. package/esm2015/lib/trusted-party/trusted-party.gql.js +35 -35
  17. package/esm2015/lib/trusted-party/trusted-party.service.js +32 -32
  18. package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
  19. package/fesm2015/lifeready-core.js +195 -289
  20. package/fesm2015/lifeready-core.js.map +1 -1
  21. package/lib/_common/queries.gql.d.ts +0 -6
  22. package/lib/api/types/lr-graphql.types.d.ts +24 -20
  23. package/lib/item/item.gql.private.d.ts +6 -6
  24. package/lib/item/item.service.d.ts +2 -2
  25. package/lib/key/key.types.d.ts +1 -0
  26. package/lib/scenario/scenario.gql.d.ts +1 -1
  27. package/lib/scenario/scenario.service.d.ts +68 -27
  28. package/lib/scenario/scenario.types.d.ts +1 -1
  29. package/lib/trusted-party/trusted-party.gql.d.ts +34 -34
  30. package/lib/trusted-party/trusted-party.service.d.ts +16 -16
  31. package/lib/trusted-party/trusted-party.types.d.ts +2 -2
  32. package/lifeready-core.metadata.json +1 -1
  33. package/package.json +1 -1
@@ -1,10 +1,4 @@
1
1
  export declare const KeyGraphFragment: import("graphql").DocumentNode;
2
2
  export declare const KeyGraphField: string;
3
3
  export declare const FetchKeyGraphField: string;
4
- export declare const FileQuery: import("graphql").DocumentNode;
5
4
  export declare const DirectoryQuery: import("graphql").DocumentNode;
6
- export declare const CreateFileQuery: import("graphql").DocumentNode;
7
- export declare const UpdateFileQuery: import("graphql").DocumentNode;
8
- export declare const RevertFileQuery: import("graphql").DocumentNode;
9
- export declare const MoveFileQuery: import("graphql").DocumentNode;
10
- export declare const MoveDirectoryQuery: import("graphql").DocumentNode;
@@ -119,8 +119,8 @@ export interface DirectoryNode extends Node, TimeStamped, AccessControlledResour
119
119
  descendants?: Descendants;
120
120
  lock?: LockField;
121
121
  lockVersion?: string;
122
- tpShared?: Connection<TpSharedDirectoryNode>;
123
- nTpShared?: TpSharedDirectoryNodeLrNList;
122
+ shares?: Connection<DirectoryShareNode>;
123
+ nShares?: DirectoryShareNodeLrNList;
124
124
  reminder?: ReminderNode;
125
125
  }
126
126
  export interface FileNode extends Node, TimeStamped, AccessControlledResource {
@@ -132,8 +132,8 @@ export interface FileNode extends Node, TimeStamped, AccessControlledResource {
132
132
  nParentDirectoryLinks?: FileLinkNodeLrNList;
133
133
  lock?: LockField;
134
134
  lockVersion?: string;
135
- tpShared?: Connection<TpSharedFileNode>;
136
- nTpShared?: TpSharedFileNodeLrNList;
135
+ shares?: Connection<FileShareNode>;
136
+ nShares?: FileShareNodeLrNList;
137
137
  }
138
138
  export interface DirectoryLinkNode extends Node, TimeStamped {
139
139
  parentDirectory?: DirectoryNode;
@@ -151,31 +151,31 @@ export interface DirectoryLinkNodeLrNList {
151
151
  export interface FileLinkNodeLrNList {
152
152
  list?: FileLinkNode[];
153
153
  }
154
- export declare enum TpShareTypeChoice {
154
+ export declare enum ShareTypeChoice {
155
155
  TP = "TP",
156
156
  DETACHED = "DETACHED"
157
157
  }
158
- export declare enum TpDetachedShareStateChoice {
158
+ export declare enum DetachedShareStateChoice {
159
159
  IN_PROGRESS = "IN_PROGRESS",
160
160
  COMPLETED = "COMPLETED"
161
161
  }
162
- export interface TpSharedItem<ItemType> extends Node, TimeStamped {
162
+ export interface ItemShare<ItemType> extends Node, TimeStamped {
163
163
  item?: ItemType;
164
164
  tp?: TpNode;
165
165
  role?: AccessRoleChoice;
166
166
  issuer?: PublicProfile;
167
167
  isIssuer?: boolean;
168
168
  subject?: PublicProfile;
169
- shareType?: TpShareTypeChoice;
170
- detachedShareState?: TpDetachedShareStateChoice;
169
+ shareType?: ShareTypeChoice;
170
+ detachedShareState?: DetachedShareStateChoice;
171
171
  }
172
- export interface TpSharedItemLrNList<SharedItemType> {
172
+ export interface ItemShareLrNList<SharedItemType> {
173
173
  list?: SharedItemType[];
174
174
  }
175
- export declare type TpSharedDirectoryNode = TpSharedItem<DirectoryNode>;
176
- export declare type TpSharedFileNode = TpSharedItem<FileNode>;
177
- export declare type TpSharedDirectoryNodeLrNList = TpSharedItemLrNList<TpSharedDirectoryNode>;
178
- export declare type TpSharedFileNodeLrNList = TpSharedItemLrNList<TpSharedFileNode>;
175
+ export declare type DirectoryShareNode = ItemShare<DirectoryNode>;
176
+ export declare type FileShareNode = ItemShare<FileNode>;
177
+ export declare type DirectoryShareNodeLrNList = ItemShareLrNList<DirectoryShareNode>;
178
+ export declare type FileShareNodeLrNList = ItemShareLrNList<FileShareNode>;
179
179
  export interface Descendants {
180
180
  directories?: Connection<DirectoryNode>;
181
181
  files?: Connection<FileNode>;
@@ -493,6 +493,7 @@ export interface SharedTpAssemblyNode extends Node, TimeStamped {
493
493
  export interface TpAssemblyAsApproverNode extends Node, TimeStamped {
494
494
  sharedKey?: KeyNode;
495
495
  sharedCipherData?: string;
496
+ sharedCipherDataClearJson?: JSONObject;
496
497
  }
497
498
  export interface SharedTpPasswordResetRequestNode extends Node, TimeStamped {
498
499
  claim?: SharedTpClaimNode;
@@ -582,18 +583,20 @@ export interface ScenarioSubAssemblyState {
582
583
  export interface ScenarioAssemblyApproverState {
583
584
  state?: TpClaimApproverState;
584
585
  }
585
- export interface ScenarioReceiverNode extends Node, TimeStamped {
586
+ export interface ReceiverItems {
587
+ receiverDirectories?: Connection<ScenarioReceiverDirectoryNode>;
588
+ receiverFiles?: Connection<ScenarioReceiverFileNode>;
589
+ }
590
+ export interface ScenarioReceiverNodeBase extends Node, TimeStamped {
586
591
  sharedKey?: KeyNode;
587
592
  sharedCipherData?: string;
588
593
  sharedCipherDataClearJson?: JSONObject;
589
594
  pbk?: KeyNode;
590
- receiverDirectories?: Connection<ScenarioReceiverDirectoryNode>;
591
- receiverFiles?: Connection<ScenarioReceiverFileNode>;
592
595
  tp?: TpNode;
596
+ receiverItems?: ReceiverItems;
593
597
  }
594
- export interface SharedScenarioReceiverNode extends Node, TimeStamped {
595
- pbk?: KeyNode;
596
- }
598
+ export declare type ScenarioReceiverNode = ScenarioReceiverNodeBase;
599
+ export declare type SharedScenarioReceiverNode = ScenarioReceiverNodeBase;
597
600
  export declare type ReceiverDirectoryAccessRole = AccessRoleChoice;
598
601
  export interface ScenarioReceiverItemNode extends Node, TimeStamped {
599
602
  receiver?: SharedScenarioReceiverNode;
@@ -641,6 +644,7 @@ export interface SharedScenarioClaimApproverNode extends Node, TimeStamped {
641
644
  }
642
645
  export interface SharedScenarioClaimReceiverNode extends Node, TimeStamped {
643
646
  received?: DateTime;
647
+ assemblyKeyId?: ID;
644
648
  approvals?: Connection<SharedScenarioClaimReceivedApprovalNode>;
645
649
  }
646
650
  export interface SharedScenarioClaimReceivedApprovalNode extends Node, TimeStamped {
@@ -11,22 +11,22 @@ export interface FileKeyQueryResult {
11
11
  };
12
12
  }
13
13
  export declare const FileKeyQuery: import("../_common/ast").TypedDocumentNode<FileKeyQueryResult>;
14
- export interface DirectoryKeyFromSharedDirectoryQueryResult {
15
- tpSharedDirectory: {
14
+ export interface DirectoryKeyFromDirectoryShareQueryResult {
15
+ directoryShare: {
16
16
  item: {
17
17
  keyId: ID;
18
18
  };
19
19
  };
20
20
  }
21
- export declare const DirectoryKeyFromSharedDirectoryQuery: import("../_common/ast").TypedDocumentNode<DirectoryKeyFromSharedDirectoryQueryResult>;
22
- export interface FileKeyFromSharedFileQueryResult {
23
- tpSharedFile: {
21
+ export declare const DirectoryKeyFromDirectoryShareQuery: import("../_common/ast").TypedDocumentNode<DirectoryKeyFromDirectoryShareQueryResult>;
22
+ export interface FileKeyFromFileShareQueryResult {
23
+ fileShare: {
24
24
  item: {
25
25
  keyId: ID;
26
26
  };
27
27
  };
28
28
  }
29
- export declare const FileKeyFromSharedFileQuery: import("../_common/ast").TypedDocumentNode<FileKeyFromSharedFileQueryResult>;
29
+ export declare const FileKeyFromFileShareQuery: import("../_common/ast").TypedDocumentNode<FileKeyFromFileShareQueryResult>;
30
30
  export interface FileStateKeyQueryResult {
31
31
  fileState: {
32
32
  keyId: ID;
@@ -26,8 +26,8 @@ export declare class ItemService extends LrService {
26
26
  downloadFileContent(options: DownloadFileContentOptions): Promise<Uint8Array>;
27
27
  getDirectoryKeyId(directoryId: LrRelayIdInput): Promise<string>;
28
28
  getFileKeyId(fileId: LrRelayIdInput): Promise<string>;
29
- getDirectoryKeyIdFromSharedDirectory(sharedDirectoryId: LrRelayIdInput): Promise<string>;
30
- getFileKeyIdFromSharedFile(sharedFileId: LrRelayIdInput): Promise<string>;
29
+ getDirectoryKeyIdFromDirectoryShare(directoryShareId: LrRelayIdInput): Promise<string>;
30
+ getFileKeyIdFromFileShare(fileShareId: LrRelayIdInput): Promise<string>;
31
31
  getDirectoryKey(directoryId: LrRelayIdInput, directoryKeyId?: LrRelayIdInput): Promise<import("../key/key.types").Key>;
32
32
  getFileKey(fileId: LrRelayIdInput, fileKeyId?: LrRelayIdInput): Promise<import("../key/key.types").Key>;
33
33
  createDirectory(options: CreateDirectoryOptions): Promise<import("./item.gql").CreateDirectoryMutationResult>;
@@ -32,6 +32,7 @@ export declare type PassKey = SomeRequired<PassKeyNode, 'id'>;
32
32
  export interface KeyLink {
33
33
  keyId: string;
34
34
  wrappingKeyId: string;
35
+ nestedWrappingKeyIds: string[];
35
36
  wrappedKey: string;
36
37
  }
37
38
  export interface PassKeyLink {
@@ -53,7 +53,7 @@ export interface ApproveScenarioClaimMutationResult {
53
53
  }
54
54
  export declare const ApproveScenarioClaimMutation: import("../_common/ast").TypedDocumentNode<ApproveScenarioClaimMutationResult>;
55
55
  export interface ReceiveScenarioClaimMutationResult {
56
- receiveScenarioClaim: {
56
+ receiveScenarioClaim2: {
57
57
  sharedClaim: {
58
58
  id: string;
59
59
  };
@@ -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: ({
135
+ directoryId: string;
136
+ accessRole: AccessRoleChoice.DENY;
137
+ wrappedItemKey: any;
138
+ sharedCipherData: any;
139
+ } | {
129
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: ({
152
+ directoryId: string;
153
+ accessRole: AccessRoleChoice.DENY;
154
+ wrappedItemKey: any;
155
+ sharedCipherData: any;
156
+ } | {
141
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;
@@ -293,13 +329,12 @@ export declare class ScenarioService extends LrService {
293
329
  approveClaim(sharedScenarioId: string, sharedClaimId: string): Promise<any>;
294
330
  approveClaimMutation(sharedScenarioId: string, sharedClaimId: string): Promise<LrMergedMutation<import("./scenario.gql").ApproveScenarioClaimMutationResult[]>>;
295
331
  receiveClaim(scenarioId: string, sharedClaimId: string): Promise<import("./scenario.gql").ReceiveScenarioClaimMutationResult>;
296
- receiveClaimMutation(scenarioId: string, sharedClaimId: string): Promise<LrMutation<import("./scenario.gql").ReceiveScenarioClaimMutationResult, {
332
+ receiveClaim2Mutation(scenarioId: string, sharedClaimId: string): Promise<LrMutation<import("./scenario.gql").ReceiveScenarioClaimMutationResult, {
297
333
  input: {
298
334
  scenarioClaimId: string;
299
- receiverDirectories: {
300
- receiverDirectoryId: string;
301
- receiverSharedKeyWrappedItemKey: any;
302
- }[];
335
+ sharedKeyWrappedAssemblyKey: string;
336
+ sharedKeyId: string;
337
+ assemblyKeyId: string;
303
338
  };
304
339
  }>>;
305
340
  debugExpireClaim(scenarioId: string): Promise<import("./scenario.gql").DebugExpireScenarioClaimMutationResult>;
@@ -323,7 +358,13 @@ export declare class ScenarioService extends LrService {
323
358
  private prepareUpdateParticipant;
324
359
  private prepareCreateClaimant;
325
360
  private prepareUpdateClaimant;
326
- prepareClaim(scenarioId: string, sharedClaimId: string): Promise<{
361
+ prepareReceiveClaim2(scenarioId: string, sharedClaimId: string): Promise<{
362
+ scenarioClaimId: string;
363
+ sharedKeyWrappedAssemblyKey: string;
364
+ sharedKeyId: string;
365
+ assemblyKeyId: string;
366
+ }>;
367
+ prepareReceiveClaim(scenarioId: string, sharedClaimId: string): Promise<{
327
368
  scenarioClaimId: string;
328
369
  receiverDirectories: {
329
370
  receiverDirectoryId: 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;
@@ -7,7 +7,7 @@ export interface DeleteTpMutation {
7
7
  export declare const DeleteTpMutation: import("../_common/ast").TypedDocumentNode<DeleteTpMutation>;
8
8
  export interface ShareDirectoryMutation {
9
9
  shareDirectory: {
10
- tpSharedDirectory: {
10
+ directoryShare: {
11
11
  id: ID;
12
12
  };
13
13
  };
@@ -15,7 +15,7 @@ export interface ShareDirectoryMutation {
15
15
  export declare const ShareDirectoryMutation: import("../_common/ast").TypedDocumentNode<ShareDirectoryMutation>;
16
16
  export interface UnshareDirectoryMutation {
17
17
  unshareDirectory: {
18
- tpSharedDirectory: {
18
+ directoryShare: {
19
19
  id: ID;
20
20
  };
21
21
  };
@@ -23,7 +23,7 @@ export interface UnshareDirectoryMutation {
23
23
  export declare const UnshareDirectoryMutation: import("../_common/ast").TypedDocumentNode<UnshareDirectoryMutation>;
24
24
  export interface ShareFileMutation {
25
25
  shareFile: {
26
- tpSharedFile: {
26
+ fileShare: {
27
27
  id: ID;
28
28
  };
29
29
  };
@@ -31,72 +31,72 @@ export interface ShareFileMutation {
31
31
  export declare const ShareFileMutation: import("../_common/ast").TypedDocumentNode<ShareFileMutation>;
32
32
  export interface UnshareFileMutation {
33
33
  unshareFile: {
34
- tpSharedFile: {
34
+ fileShare: {
35
35
  id: ID;
36
36
  };
37
37
  };
38
38
  }
39
39
  export declare const UnshareFileMutation: import("../_common/ast").TypedDocumentNode<UnshareFileMutation>;
40
- export interface CreateSharedDirectoryMutationResult {
41
- createSharedDirectory: {
42
- tpSharedDirectory: {
40
+ export interface CreateDirectoryShareMutationResult {
41
+ createDirectoryShare: {
42
+ directoryShare: {
43
43
  id: ID;
44
44
  };
45
45
  };
46
46
  }
47
- export declare const CreateSharedDirectoryMutation: import("../_common/ast").TypedDocumentNode<CreateSharedDirectoryMutationResult>;
48
- export interface CreateSharedFileMutationResult {
49
- createSharedFile: {
50
- tpSharedFile: {
47
+ export declare const CreateDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<CreateDirectoryShareMutationResult>;
48
+ export interface CreateFileShareMutationResult {
49
+ createFileShare: {
50
+ fileShare: {
51
51
  id: ID;
52
52
  };
53
53
  };
54
54
  }
55
- export declare const CreateSharedFileMutation: import("../_common/ast").TypedDocumentNode<CreateSharedFileMutationResult>;
56
- export interface UpdateSharedDirectoryMutationResult {
57
- updateSharedDirectory: {
58
- tpSharedDirectory: {
55
+ export declare const CreateFileShareMutation: import("../_common/ast").TypedDocumentNode<CreateFileShareMutationResult>;
56
+ export interface UpdateDirectoryShareMutationResult {
57
+ updateDirectoryShare: {
58
+ directoryShare: {
59
59
  id: ID;
60
60
  };
61
61
  };
62
62
  }
63
- export declare const UpdateSharedDirectoryMutation: import("../_common/ast").TypedDocumentNode<UpdateSharedDirectoryMutationResult>;
64
- export interface UpdateSharedFileMutationResult {
65
- updateSharedFile: {
66
- tpSharedFile: {
63
+ export declare const UpdateDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<UpdateDirectoryShareMutationResult>;
64
+ export interface UpdateFileShareMutationResult {
65
+ updateFileShare: {
66
+ fileShare: {
67
67
  id: ID;
68
68
  };
69
69
  };
70
70
  }
71
- export declare const UpdateSharedFileMutation: import("../_common/ast").TypedDocumentNode<UpdateSharedFileMutationResult>;
72
- export interface DeleteSharedDirectoryMutationResult {
73
- deleteSharedDirectory: {
71
+ export declare const UpdateFileShareMutation: import("../_common/ast").TypedDocumentNode<UpdateFileShareMutationResult>;
72
+ export interface DeleteDirectoryShareMutationResult {
73
+ deleteDirectoryShare: {
74
74
  id: ID;
75
75
  };
76
76
  }
77
- export declare const DeleteSharedDirectoryMutation: import("../_common/ast").TypedDocumentNode<DeleteSharedDirectoryMutationResult>;
78
- export interface DeleteSharedFileMutationResult {
79
- deleteSharedFile: {
77
+ export declare const DeleteDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<DeleteDirectoryShareMutationResult>;
78
+ export interface DeleteFileShareMutationResult {
79
+ deleteFileShare: {
80
80
  id: ID;
81
81
  };
82
82
  }
83
- export declare const DeleteSharedFileMutation: import("../_common/ast").TypedDocumentNode<DeleteSharedFileMutationResult>;
84
- export interface CompleteDetachedSharedDirectoryMutationResult {
85
- completeDetachedSharedDirectory: {
86
- tpSharedDirectory: {
83
+ export declare const DeleteFileShareMutation: import("../_common/ast").TypedDocumentNode<DeleteFileShareMutationResult>;
84
+ export interface CompleteDetachedDirectoryShareMutationResult {
85
+ completeDetachedDirectoryShare: {
86
+ directoryShare: {
87
87
  id: ID;
88
88
  };
89
89
  };
90
90
  }
91
- export declare const CompleteDetachedSharedDirectoryMutation: import("../_common/ast").TypedDocumentNode<CompleteDetachedSharedDirectoryMutationResult>;
92
- export interface CompleteDetachedSharedFileMutationResult {
93
- completeDetachedSharedDirectory: {
94
- tpSharedDirectory: {
91
+ export declare const CompleteDetachedDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<CompleteDetachedDirectoryShareMutationResult>;
92
+ export interface CompleteDetachedFileShareMutationResult {
93
+ completeDetachedDirectoryShare: {
94
+ directoryShare: {
95
95
  id: ID;
96
96
  };
97
97
  };
98
98
  }
99
- export declare const CompleteDetachedSharedFileMutation: import("../_common/ast").TypedDocumentNode<CompleteDetachedSharedFileMutationResult>;
99
+ export declare const CompleteDetachedFileShareMutation: import("../_common/ast").TypedDocumentNode<CompleteDetachedFileShareMutationResult>;
100
100
  export interface RequestTpMkReshareMutation {
101
101
  requestTpMkReshare: {
102
102
  id: ID;
@@ -61,8 +61,8 @@ export declare class TrustedPartyService extends LrService {
61
61
  };
62
62
  }>>;
63
63
  private unshareItemMutation;
64
- createSharedDirectory(options: CreateSharedItemOptions): Promise<import("./trusted-party.gql").CreateSharedDirectoryMutationResult>;
65
- createSharedDirectoryMutation(options: CreateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CreateSharedDirectoryMutationResult, {
64
+ createDirectoryShare(options: CreateSharedItemOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
65
+ createDirectoryShareMutation(options: CreateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
66
66
  input: {
67
67
  id: string;
68
68
  tpId: string;
@@ -70,11 +70,11 @@ export declare class TrustedPartyService extends LrService {
70
70
  keyId: string;
71
71
  wrappingKeyId: string;
72
72
  wrappedKey: string;
73
- shareType: import("../api/types").TpShareTypeChoice;
73
+ shareType: import("../api/types").ShareTypeChoice;
74
74
  };
75
75
  }>>;
76
- createSharedFile(options: CreateSharedItemOptions): Promise<import("./trusted-party.gql").CreateSharedFileMutationResult>;
77
- createSharedFileMutation(options: CreateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CreateSharedFileMutationResult, {
76
+ createFileShare(options: CreateSharedItemOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
77
+ createFileShareMutation(options: CreateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CreateFileShareMutationResult, {
78
78
  input: {
79
79
  id: string;
80
80
  tpId: string;
@@ -82,33 +82,33 @@ export declare class TrustedPartyService extends LrService {
82
82
  keyId: string;
83
83
  wrappingKeyId: string;
84
84
  wrappedKey: string;
85
- shareType: import("../api/types").TpShareTypeChoice;
85
+ shareType: import("../api/types").ShareTypeChoice;
86
86
  };
87
87
  }>>;
88
88
  private prepareCreateSharedItemMutation;
89
- updateSharedDirectory(options: UpdateSharedItemOptions): Promise<import("./trusted-party.gql").UpdateSharedDirectoryMutationResult>;
90
- updateSharedDirectoryMutation(options: UpdateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateSharedDirectoryMutationResult, {
89
+ updateDirectoryShare(options: UpdateSharedItemOptions): Promise<import("./trusted-party.gql").UpdateDirectoryShareMutationResult>;
90
+ updateDirectoryShareMutation(options: UpdateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
91
91
  input: {
92
92
  id: string;
93
93
  accessRole: import("../api/types").AccessRoleChoice;
94
94
  };
95
95
  }>>;
96
- updateSharedFile(options: UpdateSharedItemOptions): Promise<import("./trusted-party.gql").UpdateSharedFileMutationResult>;
97
- updateSharedFileMutation(options: UpdateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateSharedFileMutationResult, {
96
+ updateFileShare(options: UpdateSharedItemOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
97
+ updateFileShareMutation(options: UpdateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
98
98
  input: {
99
99
  id: string;
100
100
  accessRole: import("../api/types").AccessRoleChoice;
101
101
  };
102
102
  }>>;
103
103
  private prepareUpdateSharedItemMutation;
104
- deleteSharedDirectory(id: string): Promise<import("./trusted-party.gql").DeleteSharedDirectoryMutationResult>;
105
- deleteSharedDirectoryMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteSharedDirectoryMutationResult, {
104
+ deleteDirectoryShare(id: string): Promise<import("./trusted-party.gql").DeleteDirectoryShareMutationResult>;
105
+ deleteDirectoryShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteDirectoryShareMutationResult, {
106
106
  input: {
107
107
  id: string;
108
108
  };
109
109
  }>>;
110
- completeDetachedSharedDirectory(options: CompleteDetachedSharedItemOptions): Promise<import("./trusted-party.gql").CompleteDetachedSharedDirectoryMutationResult>;
111
- completeDetachedSharedDirectoryMutation(options: CompleteDetachedSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedSharedDirectoryMutationResult, {
110
+ completeDetachedDirectoryShare(options: CompleteDetachedSharedItemOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
111
+ completeDetachedDirectoryShareMutation(options: CompleteDetachedSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
112
112
  input: {
113
113
  id: string;
114
114
  keyId: string;
@@ -116,8 +116,8 @@ export declare class TrustedPartyService extends LrService {
116
116
  wrappedKey: string;
117
117
  };
118
118
  }>>;
119
- completeDetachedSharedFile(options: CompleteDetachedSharedItemOptions): Promise<import("./trusted-party.gql").CompleteDetachedSharedFileMutationResult>;
120
- completeDetachedSharedFileMutation(options: CompleteDetachedSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedSharedFileMutationResult, {
119
+ completeDetachedFileShare(options: CompleteDetachedSharedItemOptions): Promise<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult>;
120
+ completeDetachedFileShareMutation(options: CompleteDetachedSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult, {
121
121
  input: {
122
122
  id: string;
123
123
  keyId: string;
@@ -1,4 +1,4 @@
1
- import { AccessRoleChoice, LrRelayIdInput, TpShareTypeChoice } from '../api/types';
1
+ import { AccessRoleChoice, LrRelayIdInput, ShareTypeChoice } from '../api/types';
2
2
  export interface ShareItemOptions {
3
3
  itemId: LrRelayIdInput;
4
4
  itemKeyId?: LrRelayIdInput;
@@ -16,7 +16,7 @@ export interface CreateSharedItemOptions {
16
16
  tpId: LrRelayIdInput;
17
17
  tpSharedKeyId?: LrRelayIdInput;
18
18
  accessRole: AccessRoleChoice;
19
- shareType: TpShareTypeChoice;
19
+ shareType: ShareTypeChoice;
20
20
  }
21
21
  export interface UpdateSharedItemOptions {
22
22
  sharedItemId: LrRelayIdInput;