@lifeready/core 7.2.3 → 8.0.2
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 +239 -186
- 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/_common/queries.gql.js +2 -149
- package/esm2015/lib/api/lr-graphql/lr-mutation.js +5 -3
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +2 -2
- package/esm2015/lib/api/types/lr-graphql.types.js +11 -16
- package/esm2015/lib/auth/auth.gql.private.js +1 -1
- package/esm2015/lib/auth/auth.service.js +5 -3
- package/esm2015/lib/auth/auth.types.js +1 -3
- package/esm2015/lib/item/item.gql.private.js +7 -7
- package/esm2015/lib/item/item.service.js +10 -10
- package/esm2015/lib/key/key-graph.service.js +14 -1
- package/esm2015/lib/key/key.types.js +1 -1
- package/esm2015/lib/plan/plan.types.js +1 -1
- package/esm2015/lib/scenario/scenario.gql.js +1 -1
- package/esm2015/lib/scenario/scenario.private.gql.js +36 -31
- package/esm2015/lib/scenario/scenario.service.js +32 -10
- package/esm2015/lib/trusted-party/trusted-party.gql.js +35 -35
- package/esm2015/lib/trusted-party/trusted-party.service.js +32 -32
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +178 -288
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/queries.gql.d.ts +0 -6
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +2 -2
- package/lib/api/types/lr-graphql.types.d.ts +26 -29
- package/lib/auth/auth.gql.private.d.ts +3 -3
- package/lib/auth/auth.types.d.ts +3 -2
- package/lib/item/item.gql.private.d.ts +6 -6
- package/lib/item/item.service.d.ts +2 -2
- package/lib/key/key.types.d.ts +1 -0
- package/lib/plan/plan.types.d.ts +0 -1
- package/lib/scenario/scenario.gql.d.ts +1 -1
- package/lib/scenario/scenario.service.d.ts +11 -6
- package/lib/trusted-party/trusted-party.gql.d.ts +34 -34
- package/lib/trusted-party/trusted-party.service.d.ts +16 -16
- package/lib/trusted-party/trusted-party.types.d.ts +2 -2
- package/lifeready-core.metadata.json +1 -1
- 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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { KeyGraphService } from '../../key/key-graph.service';
|
|
3
|
-
import { TpPasswordResetNode,
|
|
3
|
+
import { TpPasswordResetNode, TpPasswordResetUser } from '../types';
|
|
4
4
|
import { ProcessorCallbackParams } from './common-processors.service';
|
|
5
5
|
export declare class TpPasswordResetProcessorService {
|
|
6
6
|
private ngZone;
|
|
7
7
|
private keyGraph;
|
|
8
8
|
constructor(ngZone: NgZone, keyGraph: KeyGraphService);
|
|
9
|
-
|
|
9
|
+
processTpPasswordResetUser(node: TpPasswordResetUser): Promise<TpPasswordResetUser>;
|
|
10
10
|
private processTpPasswordResetUserApprovalNode;
|
|
11
11
|
makeTpPasswordResetNodeProcessor(): ({ field, }: ProcessorCallbackParams) => Promise<TpPasswordResetNode>;
|
|
12
12
|
private processTpAssemblyNode;
|
|
@@ -119,8 +119,8 @@ export interface DirectoryNode extends Node, TimeStamped, AccessControlledResour
|
|
|
119
119
|
descendants?: Descendants;
|
|
120
120
|
lock?: LockField;
|
|
121
121
|
lockVersion?: string;
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
136
|
-
|
|
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
|
|
154
|
+
export declare enum ShareTypeChoice {
|
|
155
155
|
TP = "TP",
|
|
156
156
|
DETACHED = "DETACHED"
|
|
157
157
|
}
|
|
158
|
-
export declare enum
|
|
158
|
+
export declare enum DetachedShareStateChoice {
|
|
159
159
|
IN_PROGRESS = "IN_PROGRESS",
|
|
160
160
|
COMPLETED = "COMPLETED"
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
162
|
+
export interface ItemShare<ItemType> extends Node, TimeStamped {
|
|
163
163
|
item?: ItemType;
|
|
164
164
|
tp?: TpNode;
|
|
165
165
|
role?: AccessRoleChoice;
|
|
166
|
-
issuer?:
|
|
166
|
+
issuer?: PublicProfile;
|
|
167
167
|
isIssuer?: boolean;
|
|
168
168
|
subject?: PublicProfile;
|
|
169
|
-
shareType?:
|
|
170
|
-
detachedShareState?:
|
|
169
|
+
shareType?: ShareTypeChoice;
|
|
170
|
+
detachedShareState?: DetachedShareStateChoice;
|
|
171
171
|
}
|
|
172
|
-
export interface
|
|
172
|
+
export interface ItemShareLrNList<SharedItemType> {
|
|
173
173
|
list?: SharedItemType[];
|
|
174
174
|
}
|
|
175
|
-
export declare type
|
|
176
|
-
export declare type
|
|
177
|
-
export declare type
|
|
178
|
-
export declare type
|
|
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>;
|
|
@@ -432,7 +432,7 @@ export interface TpPasswordResetUserAssembly {
|
|
|
432
432
|
quorum?: number;
|
|
433
433
|
subAssemblies?: TpPasswordResetUserSubAssembly[];
|
|
434
434
|
}
|
|
435
|
-
export interface
|
|
435
|
+
export interface TpPasswordResetUser {
|
|
436
436
|
username?: string;
|
|
437
437
|
resetUsername?: string;
|
|
438
438
|
state?: TpClaimState;
|
|
@@ -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
|
|
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
|
|
595
|
-
|
|
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 {
|
|
@@ -681,7 +685,6 @@ export interface ServerConfig {
|
|
|
681
685
|
relayConnectionMaxLimit?: number;
|
|
682
686
|
}
|
|
683
687
|
export interface AvailablePlanField {
|
|
684
|
-
planName?: string;
|
|
685
688
|
issuerUid?: string;
|
|
686
689
|
planUid?: string;
|
|
687
690
|
name?: string;
|
|
@@ -691,19 +694,13 @@ export interface AvailablePlanField {
|
|
|
691
694
|
}
|
|
692
695
|
export interface PriceOptionField {
|
|
693
696
|
priceId?: string;
|
|
694
|
-
planName?: string;
|
|
695
697
|
name?: string;
|
|
696
|
-
billingPeriod?: BillingPeriodField;
|
|
697
698
|
description?: string;
|
|
698
699
|
amount?: number;
|
|
699
700
|
currency?: string;
|
|
700
701
|
intervalUnit?: string;
|
|
701
702
|
intervalCount?: number;
|
|
702
703
|
}
|
|
703
|
-
export declare enum BillingPeriodField {
|
|
704
|
-
MONTHLY = "MONTHLY",
|
|
705
|
-
ANNUAL = "ANNUAL"
|
|
706
|
-
}
|
|
707
704
|
export interface TrialPeriodField {
|
|
708
705
|
years?: number;
|
|
709
706
|
months?: number;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TpPasswordResetUserApprovalNode, TpPasswordResetUserApprover, TpPasswordResetUserAssembly,
|
|
1
|
+
import { TpPasswordResetUser, TpPasswordResetUserApprovalNode, TpPasswordResetUserApprover, TpPasswordResetUserAssembly, TpPasswordResetUserSubAssembly, UserNode } from '../api/types';
|
|
2
2
|
import { UserKeys } from '../key/key.service';
|
|
3
3
|
export interface CurrentUserQueryResult {
|
|
4
|
-
currentUser: Pick<Required<UserNode>, 'username' | 'sessionEncryptionKey'> & {
|
|
4
|
+
currentUser: Pick<Required<UserNode>, 'id' | 'username' | 'sessionEncryptionKey'> & {
|
|
5
5
|
currentUserKey: UserKeys;
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export declare const CurrentUserQuery: import("../_common/ast").TypedDocumentNode<CurrentUserQueryResult>;
|
|
9
9
|
export interface ResetUserQueryResult {
|
|
10
|
-
tpPasswordResetUser: Pick<Required<
|
|
10
|
+
tpPasswordResetUser: Pick<Required<TpPasswordResetUser>, 'username' | 'sessionEncryptionKey' | 'state' | 'passKey' | 'masterKey' | 'pxk' | 'approvals' | 'assemblyCipherData' | 'wrappedAssemblyKeyVerifierPrk'> & {
|
|
11
11
|
assembly: Pick<Required<TpPasswordResetUserAssembly>, 'singleReject' | 'quorum'> & {
|
|
12
12
|
subAssemblies: (Pick<Required<TpPasswordResetUserSubAssembly>, 'singleReject' | 'quorum'> & {
|
|
13
13
|
approvers: Pick<Required<TpPasswordResetUserApprover>, 'name' | 'email' | 'state'>[];
|
package/lib/auth/auth.types.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CognitoUser } from '@aws-amplify/auth';
|
|
2
2
|
import { CognitoUserAttribute } from 'amazon-cognito-identity-js';
|
|
3
3
|
import { JWK } from 'node-jose';
|
|
4
|
-
import { JSONObject, TpClaimState, TpPasswordResetUserApprovalNode, TpPasswordResetUserApprover, TpPasswordResetUserAssembly,
|
|
4
|
+
import { ID, JSONObject, TpClaimState, TpPasswordResetUser, TpPasswordResetUserApprovalNode, TpPasswordResetUserApprover, TpPasswordResetUserAssembly, TpPasswordResetUserSubAssembly, UserNode } from '../api/types';
|
|
5
5
|
import { PassIdpParams, PassKeyParams } from '../key/key.types';
|
|
6
6
|
export declare type AuthUser = Pick<Required<UserNode>, 'username'> & {
|
|
7
|
+
id?: ID;
|
|
7
8
|
sub: string;
|
|
8
9
|
loginEmail: string;
|
|
9
10
|
resetUser: null | {
|
|
@@ -59,7 +60,7 @@ export interface PassKeyBundle {
|
|
|
59
60
|
passIdpVerifier: JWK.Key;
|
|
60
61
|
wrappedPassIdpVerifierPrk: Record<string, JSONObject>;
|
|
61
62
|
}
|
|
62
|
-
export declare type ResetUser = Pick<Required<
|
|
63
|
+
export declare type ResetUser = Pick<Required<TpPasswordResetUser>, 'username' | 'state' | 'approvals'> & {
|
|
63
64
|
assembly: Pick<Required<TpPasswordResetUserAssembly>, 'singleReject' | 'quorum'> & {
|
|
64
65
|
subAssemblies: (Pick<Required<TpPasswordResetUserSubAssembly>, 'singleReject' | 'quorum'> & {
|
|
65
66
|
approvers: Pick<Required<TpPasswordResetUserApprover>, 'name' | 'email' | 'state'>[];
|
|
@@ -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
|
|
15
|
-
|
|
14
|
+
export interface DirectoryKeyFromDirectoryShareQueryResult {
|
|
15
|
+
directoryShare: {
|
|
16
16
|
item: {
|
|
17
17
|
keyId: ID;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
export declare const
|
|
22
|
-
export interface
|
|
23
|
-
|
|
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
|
|
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
|
-
|
|
30
|
-
|
|
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>;
|
package/lib/key/key.types.d.ts
CHANGED
package/lib/plan/plan.types.d.ts
CHANGED
|
@@ -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
|
-
|
|
56
|
+
receiveScenarioClaim2: {
|
|
57
57
|
sharedClaim: {
|
|
58
58
|
id: string;
|
|
59
59
|
};
|
|
@@ -293,13 +293,12 @@ export declare class ScenarioService extends LrService {
|
|
|
293
293
|
approveClaim(sharedScenarioId: string, sharedClaimId: string): Promise<any>;
|
|
294
294
|
approveClaimMutation(sharedScenarioId: string, sharedClaimId: string): Promise<LrMergedMutation<import("./scenario.gql").ApproveScenarioClaimMutationResult[]>>;
|
|
295
295
|
receiveClaim(scenarioId: string, sharedClaimId: string): Promise<import("./scenario.gql").ReceiveScenarioClaimMutationResult>;
|
|
296
|
-
|
|
296
|
+
receiveClaim2Mutation(scenarioId: string, sharedClaimId: string): Promise<LrMutation<import("./scenario.gql").ReceiveScenarioClaimMutationResult, {
|
|
297
297
|
input: {
|
|
298
298
|
scenarioClaimId: string;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}[];
|
|
299
|
+
sharedKeyWrappedAssemblyKey: string;
|
|
300
|
+
sharedKeyId: string;
|
|
301
|
+
assemblyKeyId: string;
|
|
303
302
|
};
|
|
304
303
|
}>>;
|
|
305
304
|
debugExpireClaim(scenarioId: string): Promise<import("./scenario.gql").DebugExpireScenarioClaimMutationResult>;
|
|
@@ -323,7 +322,13 @@ export declare class ScenarioService extends LrService {
|
|
|
323
322
|
private prepareUpdateParticipant;
|
|
324
323
|
private prepareCreateClaimant;
|
|
325
324
|
private prepareUpdateClaimant;
|
|
326
|
-
|
|
325
|
+
prepareReceiveClaim2(scenarioId: string, sharedClaimId: string): Promise<{
|
|
326
|
+
scenarioClaimId: string;
|
|
327
|
+
sharedKeyWrappedAssemblyKey: string;
|
|
328
|
+
sharedKeyId: string;
|
|
329
|
+
assemblyKeyId: string;
|
|
330
|
+
}>;
|
|
331
|
+
prepareReceiveClaim(scenarioId: string, sharedClaimId: string): Promise<{
|
|
327
332
|
scenarioClaimId: string;
|
|
328
333
|
receiverDirectories: {
|
|
329
334
|
receiverDirectoryId: string;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
export interface CreateDirectoryShareMutationResult {
|
|
41
|
+
createDirectoryShare: {
|
|
42
|
+
directoryShare: {
|
|
43
43
|
id: ID;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
export declare const
|
|
48
|
-
export interface
|
|
49
|
-
|
|
50
|
-
|
|
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
|
|
56
|
-
export interface
|
|
57
|
-
|
|
58
|
-
|
|
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
|
|
64
|
-
export interface
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
72
|
-
export interface
|
|
73
|
-
|
|
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
|
|
78
|
-
export interface
|
|
79
|
-
|
|
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
|
|
84
|
-
export interface
|
|
85
|
-
|
|
86
|
-
|
|
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
|
|
92
|
-
export interface
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
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
|
-
|
|
65
|
-
|
|
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").
|
|
73
|
+
shareType: import("../api/types").ShareTypeChoice;
|
|
74
74
|
};
|
|
75
75
|
}>>;
|
|
76
|
-
|
|
77
|
-
|
|
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").
|
|
85
|
+
shareType: import("../api/types").ShareTypeChoice;
|
|
86
86
|
};
|
|
87
87
|
}>>;
|
|
88
88
|
private prepareCreateSharedItemMutation;
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
97
|
-
|
|
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
|
-
|
|
105
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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,
|
|
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:
|
|
19
|
+
shareType: ShareTypeChoice;
|
|
20
20
|
}
|
|
21
21
|
export interface UpdateSharedItemOptions {
|
|
22
22
|
sharedItemId: LrRelayIdInput;
|