@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,141 +0,0 @@
|
|
|
1
|
-
import { JWK } from 'node-jose';
|
|
2
|
-
import { Connection, DateTime, ID, JSONObject, JSONString, LrEmail, OtKeyCipherClearJson2 } from '../api/types';
|
|
3
|
-
export declare type KeyExchangeState2 = 'IN_PROGRESS' | 'COMPLETED' | 'DECLINED' | 'CANCELLED' | 'DELETED';
|
|
4
|
-
export interface KeyExchangeFieldsResult {
|
|
5
|
-
id: ID;
|
|
6
|
-
token: string;
|
|
7
|
-
state: KeyExchangeState2;
|
|
8
|
-
mode: 'OTK';
|
|
9
|
-
isInitiator: boolean;
|
|
10
|
-
initiator: {
|
|
11
|
-
id: ID;
|
|
12
|
-
username: string;
|
|
13
|
-
config: JSONString;
|
|
14
|
-
configJson: JSONObject;
|
|
15
|
-
};
|
|
16
|
-
responder: {
|
|
17
|
-
id: ID;
|
|
18
|
-
username: string;
|
|
19
|
-
};
|
|
20
|
-
created: DateTime;
|
|
21
|
-
modified: DateTime;
|
|
22
|
-
tokenExpiryTime: DateTime;
|
|
23
|
-
isExpired: boolean;
|
|
24
|
-
initiatorRootKeyCipher: string;
|
|
25
|
-
initiatorRootKeyCipherClearJson: JSONObject;
|
|
26
|
-
initiatorActionRequired: boolean;
|
|
27
|
-
responderActionRequired: boolean;
|
|
28
|
-
responderEmailAddress: LrEmail;
|
|
29
|
-
otk: {
|
|
30
|
-
state: 'OTK_INITIATED' | 'OTK_ACCEPTED' | 'OTK_COMPLETED';
|
|
31
|
-
otKeyParams: string;
|
|
32
|
-
otKeyCipher: string;
|
|
33
|
-
otKey?: JWK.Key;
|
|
34
|
-
otKeyCipherClearJson?: OtKeyCipherClearJson2;
|
|
35
|
-
sharedKey: {
|
|
36
|
-
id: ID;
|
|
37
|
-
};
|
|
38
|
-
mkSharedKey: {
|
|
39
|
-
id: ID;
|
|
40
|
-
};
|
|
41
|
-
initiatorSigPxk: {
|
|
42
|
-
id: ID;
|
|
43
|
-
};
|
|
44
|
-
responderSigPxk: {
|
|
45
|
-
id: ID;
|
|
46
|
-
};
|
|
47
|
-
initiatorOneTimePbkCipher: string;
|
|
48
|
-
initiatorOneTimePbkCipherClearJson: JSONObject;
|
|
49
|
-
responderPbkCipher: string;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export declare const KeyExchangeFields = "\n id\n token\n state\n mode\n isInitiator\n initiator {\n id\n username\n config\n }\n responder {\n id\n username\n }\n created\n modified\n tokenExpiryTime\n isExpired\n initiatorRootKeyCipher\n initiatorActionRequired\n responderActionRequired\n responderEmailAddress\n otk {\n state\n otKeyParams\n otKeyCipher\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n initiatorSigPxk {\n id\n }\n responderSigPxk {\n id\n }\n initiatorOneTimePbkCipher\n responderPbkCipher\n }\n";
|
|
53
|
-
export interface UserSharedKeyFieldsResult {
|
|
54
|
-
userSigPrk: {
|
|
55
|
-
id: ID;
|
|
56
|
-
};
|
|
57
|
-
otherSigPbk: {
|
|
58
|
-
id: ID;
|
|
59
|
-
};
|
|
60
|
-
sharedKey: {
|
|
61
|
-
id: ID;
|
|
62
|
-
};
|
|
63
|
-
mkSharedKey: {
|
|
64
|
-
id: ID;
|
|
65
|
-
};
|
|
66
|
-
mkPxk: {
|
|
67
|
-
id: ID;
|
|
68
|
-
pbk: JSONObject;
|
|
69
|
-
};
|
|
70
|
-
mkReshareRequestCipher: string;
|
|
71
|
-
mkReshareResponseCipher: string;
|
|
72
|
-
mkReshareRequestSent: boolean;
|
|
73
|
-
mkReshareResponseSent: boolean;
|
|
74
|
-
}
|
|
75
|
-
export declare const UserSharedKeyFields = "\n userSigPrk {\n id\n }\n otherSigPbk {\n id\n }\n sharedKey {\n id\n }\n mkSharedKey {\n id\n }\n mkPxk {\n id\n pbk\n }\n mkReshareRequestCipher\n mkReshareResponseCipher\n mkReshareRequestSent\n mkReshareResponseSent\n";
|
|
76
|
-
export interface KeyExchangesQuery2 {
|
|
77
|
-
keyExchanges: Connection<KeyExchangeFieldsResult>;
|
|
78
|
-
}
|
|
79
|
-
export declare const KeyExchangesQuery2: import("../_common/ast").TypedDocumentNode<KeyExchangesQuery2>;
|
|
80
|
-
export interface KeyExchangeQuery2 {
|
|
81
|
-
keyExchange: KeyExchangeFieldsResult;
|
|
82
|
-
}
|
|
83
|
-
export declare const KeyExchangeQuery2: import("../_common/ast").TypedDocumentNode<KeyExchangeQuery2>;
|
|
84
|
-
export interface KeyExchangeTokenQuery2 {
|
|
85
|
-
keyExchange: KeyExchangeFieldsResult;
|
|
86
|
-
}
|
|
87
|
-
export declare const KeyExchangeTokenQuery2: import("../_common/ast").TypedDocumentNode<KeyExchangeTokenQuery2>;
|
|
88
|
-
export interface CancelKeyExchangeMutation {
|
|
89
|
-
cancelKeyExchange: {
|
|
90
|
-
keyExchange: {
|
|
91
|
-
id: ID;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
export declare const CancelKeyExchangeMutation: import("../_common/ast").TypedDocumentNode<CancelKeyExchangeMutation>;
|
|
96
|
-
export interface DeclineKeyExchangeMutation {
|
|
97
|
-
declineKeyExchange: {
|
|
98
|
-
keyExchange: {
|
|
99
|
-
id: ID;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export declare const DeclineKeyExchangeMutation: import("../_common/ast").TypedDocumentNode<DeclineKeyExchangeMutation>;
|
|
104
|
-
export interface InitiateKeyExchangeOtkMutation {
|
|
105
|
-
initiateKeyExchangeOtk: {
|
|
106
|
-
keyExchange: KeyExchangeFieldsResult;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
export declare const InitiateKeyExchangeOtkMutation: import("../_common/ast").TypedDocumentNode<InitiateKeyExchangeOtkMutation>;
|
|
110
|
-
export interface RespondKeyExchangeOtkMutation {
|
|
111
|
-
respondKeyExchangeOtk: {
|
|
112
|
-
keyExchange: KeyExchangeFieldsResult;
|
|
113
|
-
userSharedKey: UserSharedKeyFieldsResult;
|
|
114
|
-
tp: {
|
|
115
|
-
id: ID;
|
|
116
|
-
user: {
|
|
117
|
-
config: unknown;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
export declare const RespondKeyExchangeOtkMutation: import("../_common/ast").TypedDocumentNode<RespondKeyExchangeOtkMutation>;
|
|
123
|
-
export interface CompleteKeyExchangeOtkMutation {
|
|
124
|
-
completeKeyExchangeOtk: {
|
|
125
|
-
keyExchange: KeyExchangeFieldsResult;
|
|
126
|
-
userSharedKey: UserSharedKeyFieldsResult;
|
|
127
|
-
tp: {
|
|
128
|
-
id: ID;
|
|
129
|
-
user: {
|
|
130
|
-
config: unknown;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
export declare const CompleteKeyExchangeOtkMutation: import("../_common/ast").TypedDocumentNode<CompleteKeyExchangeOtkMutation>;
|
|
136
|
-
export interface CurrentUserSharedKeyQuery2 {
|
|
137
|
-
currentUserSharedKey: {
|
|
138
|
-
userSharedKey: UserSharedKeyFieldsResult;
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
export declare const CurrentUserSharedKeyQuery2: import("../_common/ast").TypedDocumentNode<CurrentUserSharedKeyQuery2>;
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { JWK } from 'node-jose';
|
|
3
|
-
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
4
|
-
import { ContactCardSharedCipherData, JSONObject, OtKeyCipherClearJson2 } from '../api/types';
|
|
5
|
-
import { OwnerPlainDataJson } from '../contact-card/contact-card2.service';
|
|
6
|
-
import { EncryptionService } from '../encryption/encryption.service';
|
|
7
|
-
import { KeyFactoryService } from '../key/key-factory.service';
|
|
8
|
-
import { KeyGraphService } from '../key/key-graph.service';
|
|
9
|
-
import { KeyService } from '../key/key.service';
|
|
10
|
-
import { CancelKeyExchangeMutation, CompleteKeyExchangeOtkMutation, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, InitiateKeyExchangeOtkMutation, KeyExchangeFieldsResult, KeyExchangeState2, RespondKeyExchangeOtkMutation } from './key-exchange.gql';
|
|
11
|
-
/**
|
|
12
|
-
* The decrypted content of the one-time key cipher;
|
|
13
|
-
* When user supplies this information the lib doesn't need to do another API call
|
|
14
|
-
* to fetch the key exchange node. And since the typical use case is to display
|
|
15
|
-
* some information to the user, the key exchange node would already have been
|
|
16
|
-
* fetched and decrypted.
|
|
17
|
-
*/
|
|
18
|
-
export interface DecryptedOtk2 {
|
|
19
|
-
otKeyCipherClearJson: OtKeyCipherClearJson2;
|
|
20
|
-
otKey: JWK.Key;
|
|
21
|
-
}
|
|
22
|
-
export interface ContactCardReceiverCipherData {
|
|
23
|
-
receiverCipherDataClearJson: JSONObject;
|
|
24
|
-
}
|
|
25
|
-
export interface ContactCardOwnerPlainData {
|
|
26
|
-
ownerPlainDataJson: OwnerPlainDataJson;
|
|
27
|
-
}
|
|
28
|
-
export interface ContactCardOwnerCipherData {
|
|
29
|
-
ownerCipherDataClearJson: JSONObject;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Sending contact card information from the owner to the receiver.
|
|
33
|
-
*/
|
|
34
|
-
export declare type SendContactCardInput = ContactCardOwnerPlainData & ContactCardOwnerCipherData & ContactCardSharedCipherData;
|
|
35
|
-
export interface InitiateOtkInput2 {
|
|
36
|
-
email?: string;
|
|
37
|
-
message?: JSONObject;
|
|
38
|
-
contactCard?: SendContactCardInput;
|
|
39
|
-
upgrade?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface RespondOtkInput2 {
|
|
42
|
-
keyExchangeId: string;
|
|
43
|
-
token: string;
|
|
44
|
-
decryptedOtk: DecryptedOtk2;
|
|
45
|
-
message?: JSONObject;
|
|
46
|
-
initiatorContactCard?: ContactCardReceiverCipherData;
|
|
47
|
-
responderContactCard?: SendContactCardInput;
|
|
48
|
-
}
|
|
49
|
-
export interface CompleteOtkInput2 {
|
|
50
|
-
keyExchangeId: string;
|
|
51
|
-
initiatorRootKeyCipher: string;
|
|
52
|
-
initiatorOneTimePbkCipher: string;
|
|
53
|
-
responderContactCard?: ContactCardReceiverCipherData;
|
|
54
|
-
initiatorContactCard?: ContactCardOwnerCipherData;
|
|
55
|
-
}
|
|
56
|
-
export interface InitiatorRootKeyCipherClearJson2 {
|
|
57
|
-
nonce: string;
|
|
58
|
-
oneTimePrk: Record<string, JSONObject>;
|
|
59
|
-
otKey: Record<string, JSONObject>;
|
|
60
|
-
initiatorContactCard?: ContactCardOwnerCipherData & ContactCardSharedCipherData;
|
|
61
|
-
initiator: {
|
|
62
|
-
message?: JSONObject;
|
|
63
|
-
contactCard?: ContactCardSharedCipherData;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export interface InitiatorOneTimePbkCipherClearJson {
|
|
67
|
-
nonce: string;
|
|
68
|
-
sharedKey: Record<string, JSONObject>;
|
|
69
|
-
mkSharedKey: Record<string, JSONObject>;
|
|
70
|
-
responder: {
|
|
71
|
-
pbk: Record<string, JSONObject>;
|
|
72
|
-
sigPbk: Record<string, JSONObject>;
|
|
73
|
-
message?: JSONObject;
|
|
74
|
-
contactCard?: ContactCardSharedCipherData & {
|
|
75
|
-
sharedCipherKey: Record<string, JSONObject>;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
export interface GetKeyExchangeOptions2 {
|
|
80
|
-
otKeyK?: string;
|
|
81
|
-
token?: string;
|
|
82
|
-
}
|
|
83
|
-
export declare class KeyExchangeService extends LrService {
|
|
84
|
-
private ngZone;
|
|
85
|
-
private injector;
|
|
86
|
-
private keyFactory;
|
|
87
|
-
private keyService;
|
|
88
|
-
private encryptionService;
|
|
89
|
-
private keyGraph;
|
|
90
|
-
private readonly CLIENT_NONCE_LENGTH;
|
|
91
|
-
constructor(ngZone: NgZone, injector: Injector, keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService);
|
|
92
|
-
private getOtKey;
|
|
93
|
-
private decryptOtk;
|
|
94
|
-
private decryptResponseCipher;
|
|
95
|
-
private decryptKeyExchangeAsInitiator;
|
|
96
|
-
private decryptKeyExchangeAsResponder;
|
|
97
|
-
decryptKeyExchange(keyExchange: KeyExchangeFieldsResult, otKeyK?: string): Promise<KeyExchangeFieldsResult>;
|
|
98
|
-
getKeyExchanges({ state }?: {
|
|
99
|
-
state?: KeyExchangeState2;
|
|
100
|
-
}): Promise<KeyExchangeFieldsResult[]>;
|
|
101
|
-
/**
|
|
102
|
-
* @param id If the current user can responder the key exchange if they are either the initiator or the receiver.
|
|
103
|
-
* @param token If not signed in, or not the initiator or responder, 'token' must be given.
|
|
104
|
-
* @param otKeyK Is the raw one-time key (string). If the responder is explicitly specified at time of initiation, then
|
|
105
|
-
* it's possible to have the otKey wrapped by the public key of the responder. In which case, the otKeyK is not needed.
|
|
106
|
-
*/
|
|
107
|
-
getKeyExchange(id: string, { otKeyK, token }?: GetKeyExchangeOptions2): Promise<KeyExchangeFieldsResult>;
|
|
108
|
-
getCurrentUserSharedKey(input: {
|
|
109
|
-
username?: string;
|
|
110
|
-
userId?: string;
|
|
111
|
-
}): Promise<CurrentUserSharedKeyQuery2>;
|
|
112
|
-
cancelKeyExchange(id: string): Promise<CancelKeyExchangeMutation>;
|
|
113
|
-
cancelKeyExchangeMutation(id: string): LrMutation<CancelKeyExchangeMutation, {
|
|
114
|
-
input: {
|
|
115
|
-
id: string;
|
|
116
|
-
};
|
|
117
|
-
}>;
|
|
118
|
-
declineKeyExchange(id: string, token: string): Promise<DeclineKeyExchangeMutation>;
|
|
119
|
-
declineKeyExchangeMutation(id: string, token: string): LrMutation<DeclineKeyExchangeMutation, {
|
|
120
|
-
input: {
|
|
121
|
-
id: string;
|
|
122
|
-
token: string;
|
|
123
|
-
};
|
|
124
|
-
}>;
|
|
125
|
-
initiateOtk(input?: InitiateOtkInput2): Promise<InitiateKeyExchangeOtkMutation>;
|
|
126
|
-
initiateOtkMutation({ message, email, contactCard, upgrade, }?: InitiateOtkInput2): Promise<{
|
|
127
|
-
lrMutation: LrMutation<InitiateKeyExchangeOtkMutation, {
|
|
128
|
-
input: {
|
|
129
|
-
initiatorRootKeyCipher: string;
|
|
130
|
-
initiatorPxkId: string;
|
|
131
|
-
initiatorSigPxkId: string;
|
|
132
|
-
otKeyParams: string;
|
|
133
|
-
otKeyCipher: string;
|
|
134
|
-
sendEmail: {
|
|
135
|
-
email: string;
|
|
136
|
-
rawOtKey: string;
|
|
137
|
-
};
|
|
138
|
-
createTp: boolean;
|
|
139
|
-
initiatorPlainDataSig: string;
|
|
140
|
-
upgrade: boolean;
|
|
141
|
-
};
|
|
142
|
-
}>;
|
|
143
|
-
otKeyK: string;
|
|
144
|
-
}>;
|
|
145
|
-
respondOtk(input: RespondOtkInput2): Promise<RespondKeyExchangeOtkMutation>;
|
|
146
|
-
respondOtkMutation({ keyExchangeId, token, decryptedOtk, message, initiatorContactCard, responderContactCard, }: RespondOtkInput2): Promise<LrMutation<RespondKeyExchangeOtkMutation, {
|
|
147
|
-
input: {
|
|
148
|
-
keyExchangeId: string;
|
|
149
|
-
keyExchangeToken: string;
|
|
150
|
-
rootKeyId: string;
|
|
151
|
-
masterKeyId: string;
|
|
152
|
-
responderPxkId: string;
|
|
153
|
-
responderSigPxkId: string;
|
|
154
|
-
signedInitiatorPbk: string;
|
|
155
|
-
signedInitiatorSigPbk: string;
|
|
156
|
-
rkWrappedSharedKey: string;
|
|
157
|
-
mkWrappedMkSharedKey: string;
|
|
158
|
-
initiatorOneTimePbkCipher: string;
|
|
159
|
-
initiatorContactCard: any;
|
|
160
|
-
responderContactCard: any;
|
|
161
|
-
};
|
|
162
|
-
}>>;
|
|
163
|
-
completeOtk(input: CompleteOtkInput2): Promise<CompleteKeyExchangeOtkMutation>;
|
|
164
|
-
completeOtkMutation({ keyExchangeId, initiatorRootKeyCipher, initiatorOneTimePbkCipher, responderContactCard, initiatorContactCard, }: CompleteOtkInput2): Promise<LrMutation<CompleteKeyExchangeOtkMutation, {
|
|
165
|
-
input: {
|
|
166
|
-
keyExchangeId: string;
|
|
167
|
-
rootKeyId: string;
|
|
168
|
-
masterKeyId: string;
|
|
169
|
-
initiatorSigPxkId: string;
|
|
170
|
-
signedResponderPbk: string;
|
|
171
|
-
signedResponderSigPbk: string;
|
|
172
|
-
rkWrappedSharedKey: string;
|
|
173
|
-
mkWrappedMkSharedKey: string;
|
|
174
|
-
responderContactCardCipher: any;
|
|
175
|
-
initiatorContactCardCipher: any;
|
|
176
|
-
initiatorContactCardSharedCipher: any;
|
|
177
|
-
};
|
|
178
|
-
}>>;
|
|
179
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
3
|
-
import { JWK } from 'node-jose';
|
|
4
|
-
import { LrApolloService } from '../api/lr-apollo.service';
|
|
5
|
-
import { EncryptionService } from '../encryption/encryption.service';
|
|
6
|
-
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
7
|
-
import { KeyService } from '../key/key.service';
|
|
8
|
-
import { PassKeyParams } from '../key/key.types';
|
|
9
|
-
import { KcConfig } from '../life-ready.config';
|
|
10
|
-
import { PasswordService } from '../password/password.service';
|
|
11
|
-
export declare const ERROR_SOURCE = "LBOP";
|
|
12
|
-
export declare enum KcLbopErrorCode {
|
|
13
|
-
INVALID_PASSPHRASE = "INVALID_PASSPHRASE"
|
|
14
|
-
}
|
|
15
|
-
export interface SetPasswordParams {
|
|
16
|
-
lbopId: string;
|
|
17
|
-
newPassword: CryptoKey;
|
|
18
|
-
verifiedToken: string;
|
|
19
|
-
masterKeyId: string;
|
|
20
|
-
masterKey: JWK.Key;
|
|
21
|
-
}
|
|
22
|
-
export interface VerifyContactParams {
|
|
23
|
-
email?: string;
|
|
24
|
-
phone?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface VerifyContactResult {
|
|
27
|
-
claimId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface ConfirmContactParams {
|
|
30
|
-
claimId: string;
|
|
31
|
-
vCode: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ConfirmContactResult {
|
|
34
|
-
token: string;
|
|
35
|
-
}
|
|
36
|
-
export interface VerifyParams {
|
|
37
|
-
claimId: string;
|
|
38
|
-
claimToken: string;
|
|
39
|
-
lbop: string;
|
|
40
|
-
}
|
|
41
|
-
export interface VerifyResult {
|
|
42
|
-
lbopId: string;
|
|
43
|
-
verifiedToken: string;
|
|
44
|
-
masterKeyId: string;
|
|
45
|
-
masterKey: JWK.Key;
|
|
46
|
-
}
|
|
47
|
-
export interface ChallengeResultLbop {
|
|
48
|
-
lbopId: string;
|
|
49
|
-
lbopKeyParams: PassKeyParams;
|
|
50
|
-
wrappedLbopKeyVerifier: any;
|
|
51
|
-
}
|
|
52
|
-
export interface ChallengeResult {
|
|
53
|
-
challenge: {
|
|
54
|
-
serverNonce: string;
|
|
55
|
-
};
|
|
56
|
-
lbops: ChallengeResultLbop[];
|
|
57
|
-
}
|
|
58
|
-
export interface Lbop {
|
|
59
|
-
id: string;
|
|
60
|
-
partial?: string;
|
|
61
|
-
name?: string;
|
|
62
|
-
lbopString?: string;
|
|
63
|
-
}
|
|
64
|
-
export interface CreateLbopParams {
|
|
65
|
-
name?: string;
|
|
66
|
-
}
|
|
67
|
-
export declare const CreateLbopQuery: import("graphql").DocumentNode;
|
|
68
|
-
export declare const DeleteLbopQuery: import("graphql").DocumentNode;
|
|
69
|
-
export interface UpdateLbopParams {
|
|
70
|
-
id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
}
|
|
73
|
-
export declare const UpdateLbopQuery: import("graphql").DocumentNode;
|
|
74
|
-
export declare const LbopQuery: import("graphql").DocumentNode;
|
|
75
|
-
export declare const LbopsQuery: import("graphql").DocumentNode;
|
|
76
|
-
export declare class LbopService {
|
|
77
|
-
private config;
|
|
78
|
-
private http;
|
|
79
|
-
private lrApollo;
|
|
80
|
-
private auth;
|
|
81
|
-
private keyFactory;
|
|
82
|
-
private keyService;
|
|
83
|
-
private encryptionService;
|
|
84
|
-
private passwordService;
|
|
85
|
-
private readonly CLIENT_NONCE_LENGTH;
|
|
86
|
-
private readonly LBOP_WORDS;
|
|
87
|
-
constructor(config: KcConfig, http: HttpClient, lrApollo: LrApolloService, auth: AuthClass, keyFactory: KFS, keyService: KeyService, encryptionService: EncryptionService, passwordService: PasswordService);
|
|
88
|
-
private getPartial;
|
|
89
|
-
remove(id: string): Promise<string>;
|
|
90
|
-
update({ id, name }: UpdateLbopParams): Promise<Lbop>;
|
|
91
|
-
get(id: string): Promise<Lbop>;
|
|
92
|
-
list(): Promise<Lbop[]>;
|
|
93
|
-
create({ name }: CreateLbopParams): Promise<Lbop>;
|
|
94
|
-
private verifyLbops;
|
|
95
|
-
verifyContact(params: VerifyContactParams): Promise<VerifyContactResult>;
|
|
96
|
-
confirmContact(params: ConfirmContactParams): Promise<ConfirmContactResult>;
|
|
97
|
-
verify(params: VerifyParams): Promise<VerifyResult>;
|
|
98
|
-
setPassword(params: SetPasswordParams): Promise<any>;
|
|
99
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ApolloClientOptions } from '@apollo/client/core';
|
|
3
|
-
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
4
|
-
export declare const KC_CONFIG: InjectionToken<KcConfig>;
|
|
5
|
-
export declare function httpOptions(auth: AuthClass, config: KcConfig): Promise<{
|
|
6
|
-
withCredentials: boolean;
|
|
7
|
-
headers: {
|
|
8
|
-
'x-kc-dev-rbac-cache-mode': string;
|
|
9
|
-
'x-kc-dev-user': string;
|
|
10
|
-
authorization: string;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
13
|
-
export interface KcConfig {
|
|
14
|
-
authUrl: string;
|
|
15
|
-
apiUrl: string;
|
|
16
|
-
apolloUrl: string;
|
|
17
|
-
userPoolId: string;
|
|
18
|
-
userPoolWebClientId: string;
|
|
19
|
-
apolloConfig?: ApolloClientOptions<any>;
|
|
20
|
-
disableSessionEncryptionKey?: boolean;
|
|
21
|
-
debug?: {
|
|
22
|
-
username?: string;
|
|
23
|
-
rbacCacheMode?: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export declare const configureApollo: (config: KcConfig, auth: AuthClass) => ApolloClientOptions<any>;
|
package/lib/lock/lock.gql.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DateTime, LockState, UUID } from '../api/types';
|
|
2
|
-
export interface LockFragmentResult {
|
|
3
|
-
created: DateTime;
|
|
4
|
-
modified: DateTime;
|
|
5
|
-
version?: UUID;
|
|
6
|
-
expiryTime: DateTime;
|
|
7
|
-
state: LockState;
|
|
8
|
-
}
|
|
9
|
-
export declare const LockFragment: import("../_common/ast").TypedDocumentNode<LockFragmentResult>;
|
|
10
|
-
export interface UpdateLockMutationResult {
|
|
11
|
-
updateLock: {
|
|
12
|
-
lock: LockFragmentResult;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const UpdateLockMutation: import("../_common/ast").TypedDocumentNode<UpdateLockMutationResult>;
|
|
16
|
-
export interface AcquireLockMutationResult {
|
|
17
|
-
acquireLock: {
|
|
18
|
-
lock: LockFragmentResult;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare const AcquireLockMutation: import("../_common/ast").TypedDocumentNode<AcquireLockMutationResult>;
|
|
22
|
-
export interface ReleaseLockMutationResult {
|
|
23
|
-
releaseLock: {
|
|
24
|
-
lock: LockFragmentResult;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export declare const ReleaseLockMutation: import("../_common/ast").TypedDocumentNode<ReleaseLockMutationResult>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
export declare class LockService extends LrService {
|
|
4
|
-
private ngZone;
|
|
5
|
-
private injector;
|
|
6
|
-
constructor(ngZone: NgZone, injector: Injector);
|
|
7
|
-
updateLockMutation(options: {
|
|
8
|
-
resourceId?: string;
|
|
9
|
-
version: string;
|
|
10
|
-
}): LrMutation<import("./lock.gql").UpdateLockMutationResult, {
|
|
11
|
-
input: {
|
|
12
|
-
resourceId: string;
|
|
13
|
-
version: string;
|
|
14
|
-
};
|
|
15
|
-
}>;
|
|
16
|
-
acquireLockMutation(options: {
|
|
17
|
-
resourceId?: string;
|
|
18
|
-
timeoutMs: number;
|
|
19
|
-
}): LrMutation<import("./lock.gql").AcquireLockMutationResult, {
|
|
20
|
-
input: {
|
|
21
|
-
resourceId: string;
|
|
22
|
-
timeoutMs: number;
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
releaseLockMutation(options: {
|
|
26
|
-
resourceId: string;
|
|
27
|
-
version: string;
|
|
28
|
-
}): LrMutation<import("./lock.gql").ReleaseLockMutationResult, {
|
|
29
|
-
input: {
|
|
30
|
-
resourceId: string;
|
|
31
|
-
version: string;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { DateTime, ID } from '../api/types';
|
|
2
|
-
export interface UpdateNotificationMutationResult {
|
|
3
|
-
updateNotification: {
|
|
4
|
-
notification: {
|
|
5
|
-
id: ID;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare const UpdateNotificationMutation: import("../_common/ast").TypedDocumentNode<UpdateNotificationMutationResult>;
|
|
10
|
-
export interface UpdateAllNotificationsReadStateMutationResult {
|
|
11
|
-
updateAllNotificationsReadState: {
|
|
12
|
-
count: number;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const UpdateAllNotificationsReadStateMutation: import("../_common/ast").TypedDocumentNode<UpdateAllNotificationsReadStateMutationResult>;
|
|
16
|
-
export interface DebugCreateNotificationMutationResult {
|
|
17
|
-
debugCreateNotification: {
|
|
18
|
-
notification: {
|
|
19
|
-
id: ID;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const DebugCreateNotificationMutation: import("../_common/ast").TypedDocumentNode<DebugCreateNotificationMutationResult>;
|
|
24
|
-
export interface DebugDeleteAllNotificationsMutationResult {
|
|
25
|
-
debugDeleteAllNotifications: {
|
|
26
|
-
count: number;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export declare const DebugDeleteAllNotificationsMutation: import("../_common/ast").TypedDocumentNode<DebugDeleteAllNotificationsMutationResult>;
|
|
30
|
-
export interface UpdateNotificationFeatureStateMutationResult {
|
|
31
|
-
updateNotificationFeatureState: {
|
|
32
|
-
featureState: {
|
|
33
|
-
notificationsLastViewed: DateTime;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export declare const UpdateNotificationFeatureStateMutation: import("../_common/ast").TypedDocumentNode<UpdateNotificationFeatureStateMutationResult>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
import { JSONObject } from '../api/types';
|
|
4
|
-
export interface UpdateNotificationOptions {
|
|
5
|
-
notificationId: string;
|
|
6
|
-
hasBeenRead: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface UpdateAllNotificationsReadStateOptions {
|
|
9
|
-
hasBeenRead: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface DebugCreateNotificationOptions {
|
|
12
|
-
receiverId: string;
|
|
13
|
-
plainData?: Record<string, JSONObject>;
|
|
14
|
-
plainMeta?: Record<string, JSONObject>;
|
|
15
|
-
hasBeenRead?: boolean;
|
|
16
|
-
timeRead?: Date;
|
|
17
|
-
}
|
|
18
|
-
export interface DebugDeleteAllNotificationsOptions {
|
|
19
|
-
receiverId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface UpdateNotificationFeatureStateOptions {
|
|
22
|
-
lastViewed: Date | null;
|
|
23
|
-
}
|
|
24
|
-
export declare class NotificationService extends LrService {
|
|
25
|
-
private ngZone;
|
|
26
|
-
private injector;
|
|
27
|
-
constructor(ngZone: NgZone, injector: Injector);
|
|
28
|
-
updateNotification(options: UpdateNotificationOptions): Promise<import("./notification.gql").UpdateNotificationMutationResult>;
|
|
29
|
-
updateNotificationMutation(options: UpdateNotificationOptions): Promise<LrMutation<import("./notification.gql").UpdateNotificationMutationResult, {
|
|
30
|
-
input: {
|
|
31
|
-
notificationId: string;
|
|
32
|
-
hasBeenRead: boolean;
|
|
33
|
-
};
|
|
34
|
-
}>>;
|
|
35
|
-
updateAllNotificationsReadState(options: UpdateAllNotificationsReadStateOptions): Promise<import("./notification.gql").UpdateAllNotificationsReadStateMutationResult>;
|
|
36
|
-
updateAllNotificationsReadStateMutation(options: UpdateAllNotificationsReadStateOptions): Promise<LrMutation<import("./notification.gql").UpdateAllNotificationsReadStateMutationResult, {
|
|
37
|
-
input: {
|
|
38
|
-
hasBeenRead: boolean;
|
|
39
|
-
};
|
|
40
|
-
}>>;
|
|
41
|
-
debugCreateNotification(options: DebugCreateNotificationOptions): Promise<import("./notification.gql").DebugCreateNotificationMutationResult>;
|
|
42
|
-
debugCreateNotificationMutation(options: DebugCreateNotificationOptions): Promise<LrMutation<import("./notification.gql").DebugCreateNotificationMutationResult, {
|
|
43
|
-
input: {
|
|
44
|
-
receiverId: string;
|
|
45
|
-
hasBeenRead: boolean;
|
|
46
|
-
timeRead: string;
|
|
47
|
-
plainData: string;
|
|
48
|
-
plainMeta: string;
|
|
49
|
-
};
|
|
50
|
-
}>>;
|
|
51
|
-
debugDeleteAllNotifications(options: DebugDeleteAllNotificationsOptions): Promise<import("./notification.gql").DebugDeleteAllNotificationsMutationResult>;
|
|
52
|
-
debugDeleteAllNotificationsMutation(options: DebugDeleteAllNotificationsOptions): Promise<LrMutation<import("./notification.gql").DebugDeleteAllNotificationsMutationResult, {
|
|
53
|
-
input: {
|
|
54
|
-
receiverId: string;
|
|
55
|
-
};
|
|
56
|
-
}>>;
|
|
57
|
-
updateNotificationFeatureState(options: UpdateNotificationFeatureStateOptions): Promise<import("./notification.gql").UpdateNotificationFeatureStateMutationResult>;
|
|
58
|
-
updateNotificationFeatureStateMutation(options: UpdateNotificationFeatureStateOptions): Promise<LrMutation<import("./notification.gql").UpdateNotificationFeatureStateMutationResult, {
|
|
59
|
-
input: {
|
|
60
|
-
lastViewed: string;
|
|
61
|
-
clearLastViewed: true;
|
|
62
|
-
};
|
|
63
|
-
}>>;
|
|
64
|
-
}
|