@lifeready/core 9.0.8 → 10.0.0
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/fesm2022/lifeready-core.mjs +10522 -0
- package/fesm2022/lifeready-core.mjs.map +1 -0
- package/package.json +21 -16
- package/types/lifeready-core.d.ts +5329 -0
- package/bundles/lifeready-core.umd.js +0 -13231
- package/bundles/lifeready-core.umd.js.map +0 -1
- package/bundles/lifeready-core.umd.min.js +0 -2
- package/bundles/lifeready-core.umd.min.js.map +0 -1
- package/esm2015/lib/_common/ast.js +0 -41
- package/esm2015/lib/_common/deferred-promise.js +0 -24
- package/esm2015/lib/_common/exceptions.js +0 -186
- package/esm2015/lib/_common/index.js +0 -3
- package/esm2015/lib/_common/kc-lodash.js +0 -11
- package/esm2015/lib/_common/key.js +0 -28
- package/esm2015/lib/_common/queries.gql.js +0 -43
- package/esm2015/lib/_common/run-outside-angular.js +0 -80
- package/esm2015/lib/_common/storage.js +0 -28
- package/esm2015/lib/_common/types.js +0 -2
- package/esm2015/lib/_common/utils.js +0 -73
- package/esm2015/lib/api/lr-apollo.service.js +0 -47
- package/esm2015/lib/api/lr-graphql/index.js +0 -6
- package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +0 -170
- package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +0 -216
- package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +0 -51
- package/esm2015/lib/api/lr-graphql/lr-mutation.js +0 -91
- package/esm2015/lib/api/lr-graphql/lr.service.js +0 -18
- package/esm2015/lib/api/query-processor/common-processors.service.js +0 -94
- package/esm2015/lib/api/query-processor/index.js +0 -3
- package/esm2015/lib/api/query-processor/query-processor.service.js +0 -307
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +0 -110
- package/esm2015/lib/api/types/graphql.types.js +0 -8
- package/esm2015/lib/api/types/index.js +0 -3
- package/esm2015/lib/api/types/lr-graphql.types.js +0 -182
- package/esm2015/lib/auth/auth.config.js +0 -57
- package/esm2015/lib/auth/auth.gql.private.js +0 -85
- package/esm2015/lib/auth/auth.service.js +0 -616
- package/esm2015/lib/auth/auth.types.js +0 -19
- package/esm2015/lib/contact-card/contact-card.gql.js +0 -79
- package/esm2015/lib/contact-card/contact-card.service.js +0 -156
- package/esm2015/lib/contact-card/contact-card2.gql.js +0 -29
- package/esm2015/lib/contact-card/contact-card2.service.js +0 -103
- package/esm2015/lib/encryption/encryption.service.js +0 -188
- package/esm2015/lib/file-upload/file-upload.service.js +0 -70
- package/esm2015/lib/file-upload/file-upload.types.js +0 -2
- package/esm2015/lib/idle/idle.service.js +0 -159
- package/esm2015/lib/idle/idle.types.js +0 -7
- package/esm2015/lib/item/item.gql.js +0 -166
- package/esm2015/lib/item/item.gql.private.js +0 -41
- package/esm2015/lib/item/item.service.js +0 -662
- package/esm2015/lib/item/item.types.js +0 -2
- package/esm2015/lib/key/key-factory.service.js +0 -226
- package/esm2015/lib/key/key-graph.service.js +0 -314
- package/esm2015/lib/key/key-meta.service.js +0 -153
- package/esm2015/lib/key/key.service.js +0 -124
- package/esm2015/lib/key/key.types.js +0 -16
- package/esm2015/lib/key-exchange/key-exchange.gql.js +0 -174
- package/esm2015/lib/key-exchange/key-exchange.service.js +0 -496
- package/esm2015/lib/lbop/lbop.service.js +0 -351
- package/esm2015/lib/life-ready.config.js +0 -96
- package/esm2015/lib/life-ready.module.js +0 -42
- package/esm2015/lib/lock/lock.gql.js +0 -40
- package/esm2015/lib/lock/lock.service.js +0 -64
- package/esm2015/lib/notification/notification.gql.js +0 -43
- package/esm2015/lib/notification/notification.service.js +0 -118
- package/esm2015/lib/password/password.gql.js +0 -28
- package/esm2015/lib/password/password.service.js +0 -309
- package/esm2015/lib/persist/persist.service.js +0 -181
- package/esm2015/lib/plan/plan.gql.js +0 -91
- package/esm2015/lib/plan/plan.service.js +0 -191
- package/esm2015/lib/plan/plan.types.js +0 -2
- package/esm2015/lib/profile/profile-details.service.js +0 -261
- package/esm2015/lib/profile/profile.gql.js +0 -170
- package/esm2015/lib/profile/profile.service.js +0 -166
- package/esm2015/lib/profile/profile.types.js +0 -45
- package/esm2015/lib/register/register.service.js +0 -173
- package/esm2015/lib/register/register.types.js +0 -3
- package/esm2015/lib/reminder/reminder.gql.js +0 -27
- package/esm2015/lib/reminder/reminder.service.js +0 -85
- package/esm2015/lib/reminder/reminder.types.js +0 -2
- package/esm2015/lib/scenario/scenario.constants.js +0 -2
- package/esm2015/lib/scenario/scenario.controller.js +0 -34
- package/esm2015/lib/scenario/scenario.gql.js +0 -90
- package/esm2015/lib/scenario/scenario.private.gql.js +0 -200
- package/esm2015/lib/scenario/scenario.service.js +0 -679
- package/esm2015/lib/scenario/scenario.types.js +0 -2
- package/esm2015/lib/server-config/server-config.gql.js +0 -9
- package/esm2015/lib/server-config/server-config.service.js +0 -41
- package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +0 -119
- package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +0 -41
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +0 -117
- package/esm2015/lib/slip39/slip39.service.js +0 -167
- package/esm2015/lib/time/time.service.js +0 -152
- package/esm2015/lib/tp-assembly/tp-assembly.js +0 -363
- package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +0 -22
- package/esm2015/lib/tp-assembly/tp-assembly.types.js +0 -2
- package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +0 -98
- package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +0 -121
- package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +0 -4
- package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +0 -34
- package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +0 -74
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +0 -166
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +0 -54
- package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +0 -110
- package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +0 -2
- package/esm2015/lib/trusted-party/trusted-party.gql.js +0 -96
- package/esm2015/lib/trusted-party/trusted-party.gql.private.js +0 -51
- package/esm2015/lib/trusted-party/trusted-party.service.js +0 -461
- package/esm2015/lib/trusted-party/trusted-party.types.js +0 -2
- package/esm2015/lib/two-factor/two-factor.service.js +0 -74
- package/esm2015/lib/user/user.gql.js +0 -32
- package/esm2015/lib/user/user.service.js +0 -58
- package/esm2015/lib/user/user.types.js +0 -2
- package/esm2015/lib/web-crypto/web-crypto.service.js +0 -29
- package/esm2015/lifeready-core.js +0 -17
- package/esm2015/public-api.js +0 -60
- package/fesm2015/lifeready-core.js +0 -10970
- package/fesm2015/lifeready-core.js.map +0 -1
- package/lib/_common/ast.d.ts +0 -11
- package/lib/_common/deferred-promise.d.ts +0 -12
- package/lib/_common/exceptions.d.ts +0 -126
- package/lib/_common/index.d.ts +0 -2
- package/lib/_common/kc-lodash.d.ts +0 -5
- package/lib/_common/key.d.ts +0 -14
- package/lib/_common/queries.gql.d.ts +0 -4
- package/lib/_common/run-outside-angular.d.ts +0 -14
- package/lib/_common/storage.d.ts +0 -13
- package/lib/_common/types.d.ts +0 -15
- package/lib/_common/utils.d.ts +0 -12
- package/lib/api/lr-apollo.service.d.ts +0 -15
- package/lib/api/lr-graphql/index.d.ts +0 -5
- package/lib/api/lr-graphql/lr-graphql.service.d.ts +0 -81
- package/lib/api/lr-graphql/lr-merged-mutation.d.ts +0 -46
- package/lib/api/lr-graphql/lr-mutation-base.d.ts +0 -28
- package/lib/api/lr-graphql/lr-mutation.d.ts +0 -48
- package/lib/api/lr-graphql/lr.service.d.ts +0 -9
- package/lib/api/query-processor/common-processors.service.d.ts +0 -36
- package/lib/api/query-processor/index.d.ts +0 -2
- package/lib/api/query-processor/query-processor.service.d.ts +0 -18
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +0 -15
- package/lib/api/types/graphql.types.d.ts +0 -30
- package/lib/api/types/index.d.ts +0 -2
- package/lib/api/types/lr-graphql.types.d.ts +0 -807
- package/lib/auth/auth.config.d.ts +0 -5
- package/lib/auth/auth.gql.private.d.ts +0 -25
- package/lib/auth/auth.service.d.ts +0 -72
- package/lib/auth/auth.types.d.ts +0 -70
- package/lib/contact-card/contact-card.gql.d.ts +0 -7
- package/lib/contact-card/contact-card.service.d.ts +0 -53
- package/lib/contact-card/contact-card2.gql.d.ts +0 -25
- package/lib/contact-card/contact-card2.service.d.ts +0 -64
- package/lib/encryption/encryption.service.d.ts +0 -42
- package/lib/file-upload/file-upload.service.d.ts +0 -15
- package/lib/file-upload/file-upload.types.d.ts +0 -5
- package/lib/idle/idle.service.d.ts +0 -47
- package/lib/idle/idle.types.d.ts +0 -10
- package/lib/item/item.gql.d.ts +0 -134
- package/lib/item/item.gql.private.d.ts +0 -35
- package/lib/item/item.service.d.ts +0 -201
- package/lib/item/item.types.d.ts +0 -95
- package/lib/key/key-factory.service.d.ts +0 -40
- package/lib/key/key-graph.service.d.ts +0 -41
- package/lib/key/key-meta.service.d.ts +0 -51
- package/lib/key/key.service.d.ts +0 -36
- package/lib/key/key.types.d.ts +0 -86
- package/lib/key-exchange/key-exchange.gql.d.ts +0 -141
- package/lib/key-exchange/key-exchange.service.d.ts +0 -179
- package/lib/lbop/lbop.service.d.ts +0 -99
- package/lib/life-ready.config.d.ts +0 -26
- package/lib/life-ready.module.d.ts +0 -5
- package/lib/lock/lock.gql.d.ts +0 -27
- package/lib/lock/lock.service.d.ts +0 -34
- package/lib/notification/notification.gql.d.ts +0 -37
- package/lib/notification/notification.service.d.ts +0 -64
- package/lib/password/password.gql.d.ts +0 -3
- package/lib/password/password.service.d.ts +0 -79
- package/lib/persist/persist.service.d.ts +0 -31
- package/lib/plan/plan.gql.d.ts +0 -69
- package/lib/plan/plan.service.d.ts +0 -111
- package/lib/plan/plan.types.d.ts +0 -16
- package/lib/profile/profile-details.service.d.ts +0 -20
- package/lib/profile/profile.gql.d.ts +0 -21
- package/lib/profile/profile.service.d.ts +0 -32
- package/lib/profile/profile.types.d.ts +0 -121
- package/lib/register/register.service.d.ts +0 -25
- package/lib/register/register.types.d.ts +0 -6
- package/lib/reminder/reminder.gql.d.ts +0 -23
- package/lib/reminder/reminder.service.d.ts +0 -33
- package/lib/reminder/reminder.types.d.ts +0 -17
- package/lib/scenario/scenario.constants.d.ts +0 -1
- package/lib/scenario/scenario.controller.d.ts +0 -10
- package/lib/scenario/scenario.gql.d.ts +0 -78
- package/lib/scenario/scenario.private.gql.d.ts +0 -16
- package/lib/scenario/scenario.service.d.ts +0 -655
- package/lib/scenario/scenario.types.d.ts +0 -64
- package/lib/server-config/server-config.gql.d.ts +0 -5
- package/lib/server-config/server-config.service.d.ts +0 -9
- package/lib/shared-contact-card/shared-contact-card.service.d.ts +0 -33
- package/lib/shared-contact-card/shared-contact-card2.gql.d.ts +0 -36
- package/lib/shared-contact-card/shared-contact-card2.service.d.ts +0 -45
- package/lib/slip39/slip39.service.d.ts +0 -42
- package/lib/time/time.service.d.ts +0 -26
- package/lib/tp-assembly/tp-assembly.d.ts +0 -177
- package/lib/tp-assembly/tp-assembly.private.gql.d.ts +0 -5
- package/lib/tp-assembly/tp-assembly.types.d.ts +0 -40
- package/lib/tp-password-reset/tp-password-reset-request.service.d.ts +0 -16
- package/lib/tp-password-reset/tp-password-reset-user.service.d.ts +0 -29
- package/lib/tp-password-reset/tp-password-reset.constants.d.ts +0 -3
- package/lib/tp-password-reset/tp-password-reset.controller.d.ts +0 -10
- package/lib/tp-password-reset/tp-password-reset.gql.d.ts +0 -63
- package/lib/tp-password-reset/tp-password-reset.private.gql.d.ts +0 -163
- package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +0 -59
- package/lib/tp-password-reset/tp-password-reset.service.d.ts +0 -112
- package/lib/tp-password-reset/tp-password-reset.types.d.ts +0 -40
- package/lib/trusted-party/trusted-party.gql.d.ts +0 -85
- package/lib/trusted-party/trusted-party.gql.private.d.ts +0 -40
- package/lib/trusted-party/trusted-party.service.d.ts +0 -192
- package/lib/trusted-party/trusted-party.types.d.ts +0 -31
- package/lib/two-factor/two-factor.service.d.ts +0 -15
- package/lib/user/user.gql.d.ts +0 -8
- package/lib/user/user.service.d.ts +0 -9
- package/lib/user/user.types.d.ts +0 -16
- package/lib/web-crypto/web-crypto.service.d.ts +0 -5
- package/lifeready-core.d.ts +0 -16
- package/lifeready-core.metadata.json +0 -1
- package/public-api.d.ts +0 -56
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { GenericScalar, ID } from '../api/types';
|
|
2
|
-
import { DateTime, JSONObject } from '../api/types/graphql.types';
|
|
3
|
-
import { TpClaimApproverState, TpClaimState } from '../api/types/lr-graphql.types';
|
|
4
|
-
export interface SharedTpPasswordResetFragmentResult {
|
|
5
|
-
id: ID;
|
|
6
|
-
tp: {
|
|
7
|
-
id: ID;
|
|
8
|
-
other: {
|
|
9
|
-
username: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
assembly: {
|
|
13
|
-
asApprovers: {
|
|
14
|
-
edges: {
|
|
15
|
-
node: {
|
|
16
|
-
id: ID;
|
|
17
|
-
sharedKey: {
|
|
18
|
-
id: ID;
|
|
19
|
-
};
|
|
20
|
-
sharedCipherData: string;
|
|
21
|
-
sharedCipherDataClearJson: JSONObject;
|
|
22
|
-
};
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
sharedRequest: {
|
|
27
|
-
id: ID;
|
|
28
|
-
pxk: {
|
|
29
|
-
id: ID;
|
|
30
|
-
pbk: string;
|
|
31
|
-
};
|
|
32
|
-
claim: {
|
|
33
|
-
id: ID;
|
|
34
|
-
state: TpClaimState;
|
|
35
|
-
asClaimApprovers: {
|
|
36
|
-
edges: {
|
|
37
|
-
node: {
|
|
38
|
-
id: ID;
|
|
39
|
-
state: TpClaimApproverState;
|
|
40
|
-
sharedKey: {
|
|
41
|
-
id: ID;
|
|
42
|
-
};
|
|
43
|
-
sharedCipherApprovalData: string;
|
|
44
|
-
sharedCipherApprovalDataClearJson: JSONObject;
|
|
45
|
-
sharedCipherPartialAssemblyKey: string;
|
|
46
|
-
sharedCipherPartialAssemblyKeyClearJson: JSONObject;
|
|
47
|
-
receiverApprovals: {
|
|
48
|
-
edges: {
|
|
49
|
-
node: {
|
|
50
|
-
id: ID;
|
|
51
|
-
};
|
|
52
|
-
}[];
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}[];
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
export interface SharedTpPasswordResetsQueryResult {
|
|
61
|
-
sharedTpPasswordResets: {
|
|
62
|
-
edges: {
|
|
63
|
-
node: SharedTpPasswordResetFragmentResult;
|
|
64
|
-
}[];
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export declare const SharedTpPasswordResetsQuery: import("../_common/ast").TypedDocumentNode<SharedTpPasswordResetsQueryResult>;
|
|
68
|
-
export interface SharedTpPasswordResetQueryResult {
|
|
69
|
-
sharedTpPasswordReset: SharedTpPasswordResetFragmentResult;
|
|
70
|
-
}
|
|
71
|
-
export declare const SharedTpPasswordResetQuery: import("../_common/ast").TypedDocumentNode<SharedTpPasswordResetQueryResult>;
|
|
72
|
-
export interface TpPasswordResetUserQueryResult {
|
|
73
|
-
tpPasswordResetUser: {
|
|
74
|
-
username: string;
|
|
75
|
-
resetUsername: string;
|
|
76
|
-
state: TpClaimState;
|
|
77
|
-
passKey: {
|
|
78
|
-
id: ID;
|
|
79
|
-
passKeyParams: GenericScalar;
|
|
80
|
-
passIdpParams: GenericScalar;
|
|
81
|
-
};
|
|
82
|
-
masterKey: {
|
|
83
|
-
id: ID;
|
|
84
|
-
};
|
|
85
|
-
pxk: {
|
|
86
|
-
id: ID;
|
|
87
|
-
};
|
|
88
|
-
sessionEncryptionKey: string;
|
|
89
|
-
assembly: {
|
|
90
|
-
singleReject: boolean;
|
|
91
|
-
quorum: number;
|
|
92
|
-
subAssemblies: {
|
|
93
|
-
singleReject: boolean;
|
|
94
|
-
quorum: number;
|
|
95
|
-
approvers: {
|
|
96
|
-
name: string;
|
|
97
|
-
email: string;
|
|
98
|
-
state: TpClaimApproverState;
|
|
99
|
-
}[];
|
|
100
|
-
}[];
|
|
101
|
-
};
|
|
102
|
-
approvals: {
|
|
103
|
-
id: ID;
|
|
104
|
-
modified: DateTime;
|
|
105
|
-
approverEmail: string;
|
|
106
|
-
receiverCipher: string;
|
|
107
|
-
receiverCipherPartialAssemblyKey: string;
|
|
108
|
-
}[];
|
|
109
|
-
assemblyCipherData: string;
|
|
110
|
-
wrappedAssemblyKeyVerifierPrk: string;
|
|
111
|
-
requestAgainAfter: DateTime;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
export declare const TpPasswordResetUserQuery: import("../_common/ast").TypedDocumentNode<TpPasswordResetUserQueryResult>;
|
|
115
|
-
export interface TpPasswordResetQueryResult {
|
|
116
|
-
tpPasswordReset: {
|
|
117
|
-
id: ID;
|
|
118
|
-
applied: boolean;
|
|
119
|
-
assembly: {
|
|
120
|
-
singleReject: boolean;
|
|
121
|
-
quorum: number;
|
|
122
|
-
canMeetQuorum: boolean;
|
|
123
|
-
subjectCipherData: string;
|
|
124
|
-
subjectCipherDataClearJson: JSONObject;
|
|
125
|
-
subjectKey: {
|
|
126
|
-
id: ID;
|
|
127
|
-
};
|
|
128
|
-
assemblyKey: {
|
|
129
|
-
id: ID;
|
|
130
|
-
};
|
|
131
|
-
assemblyCipherData: string;
|
|
132
|
-
subAssemblies: {
|
|
133
|
-
edges: {
|
|
134
|
-
node: {
|
|
135
|
-
id: ID;
|
|
136
|
-
singleReject: boolean;
|
|
137
|
-
quorum: number;
|
|
138
|
-
subjectCipherData: string;
|
|
139
|
-
subjectCipherDataClearJson: JSONObject;
|
|
140
|
-
subjectKey: {
|
|
141
|
-
id: ID;
|
|
142
|
-
};
|
|
143
|
-
approvers: {
|
|
144
|
-
edges: {
|
|
145
|
-
node: {
|
|
146
|
-
id: ID;
|
|
147
|
-
tp: {
|
|
148
|
-
id: ID;
|
|
149
|
-
};
|
|
150
|
-
sharedKey: {
|
|
151
|
-
id: ID;
|
|
152
|
-
};
|
|
153
|
-
sharedCipherData: string;
|
|
154
|
-
};
|
|
155
|
-
}[];
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
}[];
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
export declare const TpPasswordResetQuery: import("../_common/ast").TypedDocumentNode<TpPasswordResetQueryResult>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { LrService } from '../api/lr-graphql';
|
|
3
|
-
export declare class TpPasswordResetPrivateService extends LrService {
|
|
4
|
-
private ngZone;
|
|
5
|
-
private injector;
|
|
6
|
-
constructor(ngZone: NgZone, injector: Injector);
|
|
7
|
-
getReset(): Promise<{
|
|
8
|
-
id: string;
|
|
9
|
-
applied: boolean;
|
|
10
|
-
assembly: {
|
|
11
|
-
singleReject: boolean;
|
|
12
|
-
quorum: number;
|
|
13
|
-
canMeetQuorum: boolean;
|
|
14
|
-
subjectCipherData: string;
|
|
15
|
-
subjectCipherDataClearJson: any;
|
|
16
|
-
subjectKey: {
|
|
17
|
-
id: string;
|
|
18
|
-
};
|
|
19
|
-
assemblyKey: {
|
|
20
|
-
id: string;
|
|
21
|
-
};
|
|
22
|
-
assemblyCipherData: string;
|
|
23
|
-
subAssemblies: {
|
|
24
|
-
edges: {
|
|
25
|
-
node: {
|
|
26
|
-
id: string;
|
|
27
|
-
singleReject: boolean;
|
|
28
|
-
quorum: number;
|
|
29
|
-
subjectCipherData: string;
|
|
30
|
-
subjectCipherDataClearJson: any;
|
|
31
|
-
subjectKey: {
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
|
-
approvers: {
|
|
35
|
-
edges: {
|
|
36
|
-
node: {
|
|
37
|
-
id: string;
|
|
38
|
-
tp: {
|
|
39
|
-
id: string;
|
|
40
|
-
};
|
|
41
|
-
sharedKey: {
|
|
42
|
-
id: string;
|
|
43
|
-
};
|
|
44
|
-
sharedCipherData: string;
|
|
45
|
-
};
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}[];
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}>;
|
|
53
|
-
getSharedResets(): Promise<{
|
|
54
|
-
edges: {
|
|
55
|
-
node: import("./tp-password-reset.private.gql").SharedTpPasswordResetFragmentResult;
|
|
56
|
-
}[];
|
|
57
|
-
}>;
|
|
58
|
-
getSharedReset(id: any): Promise<import("./tp-password-reset.private.gql").SharedTpPasswordResetFragmentResult>;
|
|
59
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
import { TpNode } from '../api/types';
|
|
4
|
-
import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../tp-assembly/tp-assembly.types';
|
|
5
|
-
import { TpPasswordResetAssemblyController } from './tp-password-reset.controller';
|
|
6
|
-
import { TpPasswordResetPrivateService } from './tp-password-reset.private.service';
|
|
7
|
-
export declare class TpPasswordResetService extends LrService {
|
|
8
|
-
private ngZone;
|
|
9
|
-
private injector;
|
|
10
|
-
private privateService;
|
|
11
|
-
private assemblyController;
|
|
12
|
-
slip39Passphrase: string;
|
|
13
|
-
constructor(ngZone: NgZone, injector: Injector, privateService: TpPasswordResetPrivateService, assemblyController: TpPasswordResetAssemblyController);
|
|
14
|
-
cancelResetRequest(): Promise<import("./tp-password-reset.gql").CancelTpPasswordResetRequestMutationResult>;
|
|
15
|
-
cancelResetRequestMutation(): LrMutation<import("./tp-password-reset.gql").CancelTpPasswordResetRequestMutationResult, Record<string, any>>;
|
|
16
|
-
deleteReset(): Promise<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult>;
|
|
17
|
-
deleteResetMutation(): LrMutation<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult, Record<string, any>>;
|
|
18
|
-
validateApprovers(approvers: TpNode[]): void;
|
|
19
|
-
createReset(input: CreateTpAssemblyInput): Promise<import("./tp-password-reset.gql").CreateTpPasswordResetMutationResult>;
|
|
20
|
-
createResetMutation(input: CreateTpAssemblyInput): Promise<LrMutation<import("./tp-password-reset.gql").CreateTpPasswordResetMutationResult, {
|
|
21
|
-
input: {
|
|
22
|
-
assembly: {
|
|
23
|
-
singleReject: boolean;
|
|
24
|
-
quorum: number;
|
|
25
|
-
subjectCipherData: string;
|
|
26
|
-
createSubAssemblies: {
|
|
27
|
-
singleReject: boolean;
|
|
28
|
-
quorum: number;
|
|
29
|
-
subjectCipherData: string;
|
|
30
|
-
createApprovers: {
|
|
31
|
-
tpWrappingKeyId: string;
|
|
32
|
-
tpWrappedSharedKey: string;
|
|
33
|
-
subjectKeyWrappedSharedKey: string;
|
|
34
|
-
sharedCipherData: string;
|
|
35
|
-
sharedCipherApprovalData: string;
|
|
36
|
-
sharedCipherPartialAssemblyKey: string;
|
|
37
|
-
approverId: string;
|
|
38
|
-
tpId: string;
|
|
39
|
-
}[];
|
|
40
|
-
}[];
|
|
41
|
-
rootKeyId: string;
|
|
42
|
-
rootKeyWrappedSubjectKey: string;
|
|
43
|
-
subjectKeyWrappedAssemblyKey: string;
|
|
44
|
-
assemblyCipherData: string;
|
|
45
|
-
assemblyKeyVerifierPbk: string;
|
|
46
|
-
wrappedAssemblyKeyVerifierPrk: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}>>;
|
|
50
|
-
updateReset(input: UpdateTpAssemblyInput): Promise<import("./tp-password-reset.gql").UpdateTpPasswordResetMutationResult>;
|
|
51
|
-
updateResetMutation(input: UpdateTpAssemblyInput): Promise<LrMutation<import("./tp-password-reset.gql").UpdateTpPasswordResetMutationResult, {
|
|
52
|
-
input: {
|
|
53
|
-
assembly: {
|
|
54
|
-
singleReject: boolean;
|
|
55
|
-
quorum: number;
|
|
56
|
-
subjectCipherData: string;
|
|
57
|
-
subjectKeyId: string;
|
|
58
|
-
createSubAssemblies: {
|
|
59
|
-
singleReject: boolean;
|
|
60
|
-
quorum: number;
|
|
61
|
-
subjectCipherData: string;
|
|
62
|
-
createApprovers: {
|
|
63
|
-
tpWrappingKeyId: string;
|
|
64
|
-
tpWrappedSharedKey: string;
|
|
65
|
-
subjectKeyWrappedSharedKey: string;
|
|
66
|
-
sharedCipherData: string;
|
|
67
|
-
sharedCipherApprovalData: string;
|
|
68
|
-
sharedCipherPartialAssemblyKey: string;
|
|
69
|
-
approverId: string;
|
|
70
|
-
tpId: string;
|
|
71
|
-
}[];
|
|
72
|
-
}[];
|
|
73
|
-
updateSubAssemblies: {
|
|
74
|
-
subAssemblyId: string;
|
|
75
|
-
singleReject: boolean;
|
|
76
|
-
quorum: number;
|
|
77
|
-
subjectCipherData: string;
|
|
78
|
-
createApprovers: {
|
|
79
|
-
tpWrappingKeyId: string;
|
|
80
|
-
tpWrappedSharedKey: string;
|
|
81
|
-
subjectKeyWrappedSharedKey: string;
|
|
82
|
-
sharedCipherData: string;
|
|
83
|
-
sharedCipherApprovalData: string;
|
|
84
|
-
sharedCipherPartialAssemblyKey: string;
|
|
85
|
-
approverId: string;
|
|
86
|
-
tpId: string;
|
|
87
|
-
}[];
|
|
88
|
-
updateApprovers: {
|
|
89
|
-
tpWrappingKeyId: string;
|
|
90
|
-
tpWrappedSharedKey: string;
|
|
91
|
-
subjectKeyWrappedSharedKey: string;
|
|
92
|
-
sharedCipherData: string;
|
|
93
|
-
sharedCipherApprovalData: string;
|
|
94
|
-
sharedCipherPartialAssemblyKey: string;
|
|
95
|
-
approverId: string;
|
|
96
|
-
tpId: string;
|
|
97
|
-
}[];
|
|
98
|
-
}[];
|
|
99
|
-
subjectKeyWrappedAssemblyKey: string;
|
|
100
|
-
assemblyCipherData: string;
|
|
101
|
-
assemblyKeyVerifierPbk: string;
|
|
102
|
-
wrappedAssemblyKeyVerifierPrk: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
}>>;
|
|
106
|
-
debugExpireResetRequest(username: string): Promise<import("../scenario/scenario.gql").DebugExpireTpPasswordResetRequestMutationResult>;
|
|
107
|
-
debugExpireResetRequestMutation(username: string): Promise<LrMutation<import("../scenario/scenario.gql").DebugExpireTpPasswordResetRequestMutationResult, {
|
|
108
|
-
input: {
|
|
109
|
-
username: string;
|
|
110
|
-
};
|
|
111
|
-
}>>;
|
|
112
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { JSONObject } from '../api/types';
|
|
2
|
-
import { Key } from '../key/key.types';
|
|
3
|
-
export interface TpAssemblyApprover {
|
|
4
|
-
id: string;
|
|
5
|
-
tp: {
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
sharedKey: Key;
|
|
9
|
-
sharedCipherData?: string;
|
|
10
|
-
sharedCipherDataClearJson?: JSONObject;
|
|
11
|
-
sharedCipherApprovalData?: string;
|
|
12
|
-
sharedCipherApprovalDataClearJson?: JSONObject;
|
|
13
|
-
}
|
|
14
|
-
export interface TpSubAssembly {
|
|
15
|
-
id: string;
|
|
16
|
-
singleReject: boolean;
|
|
17
|
-
quorum: number;
|
|
18
|
-
subjectCipherData: string;
|
|
19
|
-
subjectCipherDataClearJson: JSONObject;
|
|
20
|
-
approvers: TpAssemblyApprover[];
|
|
21
|
-
}
|
|
22
|
-
export interface TpAssembly {
|
|
23
|
-
singleReject: boolean;
|
|
24
|
-
quorum: number;
|
|
25
|
-
subjectKey: Key;
|
|
26
|
-
assemblyKey: Key;
|
|
27
|
-
assemblyCipherData: string;
|
|
28
|
-
plainAssemblyCipherData: JSONObject;
|
|
29
|
-
subAssemblies: TpSubAssembly[];
|
|
30
|
-
}
|
|
31
|
-
export interface TpPasswordReset {
|
|
32
|
-
id: string;
|
|
33
|
-
assembly: TpAssembly;
|
|
34
|
-
applied: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface RequestResetResult {
|
|
37
|
-
id: string;
|
|
38
|
-
associate_reset_user_token: string;
|
|
39
|
-
reset_username: string;
|
|
40
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ID } from '../api/types';
|
|
2
|
-
export interface DeleteTpMutation {
|
|
3
|
-
deleteTp: {
|
|
4
|
-
id: ID;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const DeleteTpMutation: import("../_common/ast").TypedDocumentNode<DeleteTpMutation>;
|
|
8
|
-
export interface CreateDirectoryShareMutationResult {
|
|
9
|
-
createDirectoryShare: {
|
|
10
|
-
directoryShare: {
|
|
11
|
-
id: ID;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const CreateDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<CreateDirectoryShareMutationResult>;
|
|
16
|
-
export interface CreateFileShareMutationResult {
|
|
17
|
-
createFileShare: {
|
|
18
|
-
fileShare: {
|
|
19
|
-
id: ID;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const CreateFileShareMutation: import("../_common/ast").TypedDocumentNode<CreateFileShareMutationResult>;
|
|
24
|
-
export interface UpdateDirectoryShareMutationResult {
|
|
25
|
-
updateDirectoryShare: {
|
|
26
|
-
directoryShare: {
|
|
27
|
-
id: ID;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export declare const UpdateDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<UpdateDirectoryShareMutationResult>;
|
|
32
|
-
export interface UpdateFileShareMutationResult {
|
|
33
|
-
updateFileShare: {
|
|
34
|
-
fileShare: {
|
|
35
|
-
id: ID;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export declare const UpdateFileShareMutation: import("../_common/ast").TypedDocumentNode<UpdateFileShareMutationResult>;
|
|
40
|
-
export interface DeleteDirectoryShareMutationResult {
|
|
41
|
-
deleteDirectoryShare: {
|
|
42
|
-
id: ID;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export declare const DeleteDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<DeleteDirectoryShareMutationResult>;
|
|
46
|
-
export interface DeleteFileShareMutationResult {
|
|
47
|
-
deleteFileShare: {
|
|
48
|
-
id: ID;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export declare const DeleteFileShareMutation: import("../_common/ast").TypedDocumentNode<DeleteFileShareMutationResult>;
|
|
52
|
-
export interface CompleteDetachedDirectoryShareMutationResult {
|
|
53
|
-
completeDetachedDirectoryShare: {
|
|
54
|
-
directoryShare: {
|
|
55
|
-
id: ID;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export declare const CompleteDetachedDirectoryShareMutation: import("../_common/ast").TypedDocumentNode<CompleteDetachedDirectoryShareMutationResult>;
|
|
60
|
-
export interface CompleteDetachedFileShareMutationResult {
|
|
61
|
-
completeDetachedDirectoryShare: {
|
|
62
|
-
directoryShare: {
|
|
63
|
-
id: ID;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export declare const CompleteDetachedFileShareMutation: import("../_common/ast").TypedDocumentNode<CompleteDetachedFileShareMutationResult>;
|
|
68
|
-
export interface RequestTpMkReshareMutation {
|
|
69
|
-
requestTpMkReshare: {
|
|
70
|
-
id: ID;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
export declare const RequestTpMkReshareMutation: import("../_common/ast").TypedDocumentNode<RequestTpMkReshareMutation>;
|
|
74
|
-
export interface RespondTpMkReshareMutation {
|
|
75
|
-
respondTpMkReshare: {
|
|
76
|
-
id: ID;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export declare const RespondTpMkReshareMutation: import("../_common/ast").TypedDocumentNode<RespondTpMkReshareMutation>;
|
|
80
|
-
export interface CompleteTpMkReshareMutation {
|
|
81
|
-
completeTpMkReshare: {
|
|
82
|
-
id: ID;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
export declare const CompleteTpMkReshareMutation: import("../_common/ast").TypedDocumentNode<CompleteTpMkReshareMutation>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ID, ShareTypeChoice } from '../api/types';
|
|
2
|
-
export interface TpCurrentUserSharedKeyQuery {
|
|
3
|
-
tp: {
|
|
4
|
-
currentUserSharedKey: {
|
|
5
|
-
userSharedKey: {
|
|
6
|
-
sharedKey: {
|
|
7
|
-
id: ID;
|
|
8
|
-
};
|
|
9
|
-
mkSharedKey: {
|
|
10
|
-
id: ID;
|
|
11
|
-
};
|
|
12
|
-
mkPxk: {
|
|
13
|
-
id: ID;
|
|
14
|
-
};
|
|
15
|
-
mkReshareRequestCipher: string;
|
|
16
|
-
mkReshareRequestSent: boolean;
|
|
17
|
-
mkReshareResponseCipher: string;
|
|
18
|
-
mkReshareResponseSent: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const TpCurrentUserSharedKeyQuery: import("../_common/ast").TypedDocumentNode<TpCurrentUserSharedKeyQuery>;
|
|
24
|
-
export interface ItemShareQueryResult {
|
|
25
|
-
item: {
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
tp: {
|
|
29
|
-
id: string;
|
|
30
|
-
};
|
|
31
|
-
shareType: ShareTypeChoice;
|
|
32
|
-
}
|
|
33
|
-
export interface DirectoryShareQueryResult {
|
|
34
|
-
directoryShare: ItemShareQueryResult;
|
|
35
|
-
}
|
|
36
|
-
export declare const DirectoryShareQuery: import("../_common/ast").TypedDocumentNode<DirectoryShareQueryResult>;
|
|
37
|
-
export interface FileShareQueryResult {
|
|
38
|
-
fileShare: ItemShareQueryResult;
|
|
39
|
-
}
|
|
40
|
-
export declare const FileShareQuery: import("../_common/ast").TypedDocumentNode<FileShareQueryResult>;
|