@propxchain/core-client 0.2.1 → 0.3.0-canary.23
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/README.md +2 -3
- package/dist/auth.d.ts +7 -7
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +5 -5
- package/dist/auth.js.map +1 -1
- package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
- package/dist/canisters/document_storage/document_storage.did.js +90 -21
- package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
- package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
- package/dist/canisters/document_verification/document_verification.did.js +132 -0
- package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
- package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
- package/dist/canisters/email_service/email_service.did.js +40 -0
- package/dist/canisters/email_service/email_service.did.js.map +1 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
- package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
- package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -0
- package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +1 -1
- package/dist/canisters/transaction_manager/transaction_manager.did.js +42 -4
- package/dist/canisters/transaction_manager/transaction_manager.did.js.map +1 -1
- package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
- package/dist/canisters/user_management/user_management.did.js +122 -2
- package/dist/canisters/user_management/user_management.did.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mock.js +1 -1
- package/dist/mock.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -6
- package/src/auth.ts +8 -9
- package/src/canisters/document_storage/document_storage.did +82 -12
- package/src/canisters/document_storage/document_storage.did.d.ts +86 -9
- package/src/canisters/document_storage/document_storage.did.js +128 -19
- package/src/canisters/document_verification/document_verification.did +150 -0
- package/src/canisters/document_verification/document_verification.did.d.ts +125 -1
- package/src/canisters/document_verification/document_verification.did.js +160 -0
- package/src/canisters/email_service/email_service.did +49 -0
- package/src/canisters/email_service/email_service.did.d.ts +49 -2
- package/src/canisters/email_service/email_service.did.js +68 -0
- package/src/canisters/land_registry_integration/land_registry_integration.did +118 -19
- package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +89 -19
- package/src/canisters/land_registry_integration/land_registry_integration.did.js +213 -11
- package/src/canisters/ledger_manager/ledger_manager.did +78 -0
- package/src/canisters/ledger_manager/ledger_manager.did.d.ts +66 -0
- package/src/canisters/ledger_manager/ledger_manager.did.js +75 -0
- package/src/canisters/transaction_manager/transaction_manager.did +98 -5
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +102 -4
- package/src/canisters/transaction_manager/transaction_manager.did.js +50 -4
- package/src/canisters/user_management/user_management.did +153 -3
- package/src/canisters/user_management/user_management.did.d.ts +121 -2
- package/src/canisters/user_management/user_management.did.js +166 -6
- package/src/client.ts +1 -1
- package/src/index.ts +2 -2
- package/src/mock.ts +1 -1
- package/src/types.ts +1 -1
|
@@ -29,12 +29,16 @@ type UserRole =
|
|
|
29
29
|
};
|
|
30
30
|
type UserProfile =
|
|
31
31
|
record {
|
|
32
|
+
businessGatewayEnabled: bool;
|
|
33
|
+
businessGatewayUsername: opt text;
|
|
32
34
|
clientPrincipals: vec principal;
|
|
35
|
+
conveyancerReference: opt text;
|
|
33
36
|
createdAt: Time;
|
|
34
37
|
email: text;
|
|
35
38
|
emailVerificationSentAt: opt Time;
|
|
36
39
|
emailVerificationToken: opt text;
|
|
37
40
|
emailVerified: bool;
|
|
41
|
+
firmSRANumber: opt text;
|
|
38
42
|
isPlatformOnlySolicitor: bool;
|
|
39
43
|
isVerified: bool;
|
|
40
44
|
lawFirmAddress: opt text;
|
|
@@ -45,6 +49,7 @@ type UserProfile =
|
|
|
45
49
|
"principal": principal;
|
|
46
50
|
role: opt UserRole;
|
|
47
51
|
solicitorLicenseNumber: opt text;
|
|
52
|
+
sraNumber: opt text;
|
|
48
53
|
userType: UserType;
|
|
49
54
|
};
|
|
50
55
|
type TransactionProgress =
|
|
@@ -71,6 +76,51 @@ type TransactionMember =
|
|
|
71
76
|
uploadedDocuments: vec text;
|
|
72
77
|
};
|
|
73
78
|
type Time = int;
|
|
79
|
+
type SolicitorSubmissionDetails =
|
|
80
|
+
record {
|
|
81
|
+
businessGatewayEnabled: bool;
|
|
82
|
+
conveyancerReference: opt text;
|
|
83
|
+
email: text;
|
|
84
|
+
firmAddress: text;
|
|
85
|
+
firmName: text;
|
|
86
|
+
firmSRANumber: opt text;
|
|
87
|
+
fullName: text;
|
|
88
|
+
principalId: principal;
|
|
89
|
+
sraNumber: text;
|
|
90
|
+
};
|
|
91
|
+
type Result_5 =
|
|
92
|
+
variant {
|
|
93
|
+
err: text;
|
|
94
|
+
ok: SolicitorSubmissionDetails;
|
|
95
|
+
};
|
|
96
|
+
type Result_4 =
|
|
97
|
+
variant {
|
|
98
|
+
err: text;
|
|
99
|
+
ok;
|
|
100
|
+
};
|
|
101
|
+
type Result_3 =
|
|
102
|
+
variant {
|
|
103
|
+
err: text;
|
|
104
|
+
ok: nat;
|
|
105
|
+
};
|
|
106
|
+
type Result_2 =
|
|
107
|
+
variant {
|
|
108
|
+
err: text;
|
|
109
|
+
ok: BotAgent;
|
|
110
|
+
};
|
|
111
|
+
type Result_1 =
|
|
112
|
+
variant {
|
|
113
|
+
err: text;
|
|
114
|
+
ok: text;
|
|
115
|
+
};
|
|
116
|
+
type Result =
|
|
117
|
+
variant {
|
|
118
|
+
err: text;
|
|
119
|
+
ok: record {
|
|
120
|
+
ownerPrincipal: principal;
|
|
121
|
+
role: BotRole;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
74
124
|
type Permission =
|
|
75
125
|
variant {
|
|
76
126
|
AdminManageUsers;
|
|
@@ -85,10 +135,40 @@ type Permission =
|
|
|
85
135
|
ViewSharedTransaction: text;
|
|
86
136
|
ViewTransactionProgress: text;
|
|
87
137
|
};
|
|
138
|
+
type BotRole =
|
|
139
|
+
variant {
|
|
140
|
+
BotFirm;
|
|
141
|
+
BotInternal;
|
|
142
|
+
BotPersonal;
|
|
143
|
+
};
|
|
144
|
+
type BotAgent =
|
|
145
|
+
record {
|
|
146
|
+
botPrincipal: principal;
|
|
147
|
+
callCount: nat;
|
|
148
|
+
createdAt: Time;
|
|
149
|
+
description: text;
|
|
150
|
+
isActive: bool;
|
|
151
|
+
lastActive: Time;
|
|
152
|
+
name: text;
|
|
153
|
+
ownerPrincipal: principal;
|
|
154
|
+
role: BotRole;
|
|
155
|
+
};
|
|
156
|
+
type BotActionLog =
|
|
157
|
+
record {
|
|
158
|
+
action: text;
|
|
159
|
+
botPrincipal: principal;
|
|
160
|
+
id: nat;
|
|
161
|
+
metadata: text;
|
|
162
|
+
success: bool;
|
|
163
|
+
timestamp: Time;
|
|
164
|
+
transactionId: opt text;
|
|
165
|
+
};
|
|
88
166
|
type AuditLog =
|
|
89
167
|
record {
|
|
90
168
|
action: text;
|
|
91
169
|
actorPrincipal: principal;
|
|
170
|
+
actorType: ActorType;
|
|
171
|
+
delegatedBy: opt principal;
|
|
92
172
|
id: nat;
|
|
93
173
|
metadata: text;
|
|
94
174
|
success: bool;
|
|
@@ -96,50 +176,120 @@ type AuditLog =
|
|
|
96
176
|
timestamp: Time;
|
|
97
177
|
transactionId: opt text;
|
|
98
178
|
};
|
|
179
|
+
type AdminRole =
|
|
180
|
+
variant {
|
|
181
|
+
regular;
|
|
182
|
+
super;
|
|
183
|
+
};
|
|
184
|
+
type AdminRecord =
|
|
185
|
+
record {
|
|
186
|
+
grantedAt: Time;
|
|
187
|
+
grantedBy: principal;
|
|
188
|
+
note: opt text;
|
|
189
|
+
"principal": principal;
|
|
190
|
+
role: AdminRole;
|
|
191
|
+
};
|
|
192
|
+
type AdminMutationResult_1 =
|
|
193
|
+
variant {
|
|
194
|
+
err: AdminMutationError;
|
|
195
|
+
ok;
|
|
196
|
+
};
|
|
197
|
+
type AdminMutationResult =
|
|
198
|
+
variant {
|
|
199
|
+
err: AdminMutationError;
|
|
200
|
+
ok: AdminRecord;
|
|
201
|
+
};
|
|
202
|
+
type AdminMutationError =
|
|
203
|
+
variant {
|
|
204
|
+
anonymousCaller;
|
|
205
|
+
cannotDemoteController;
|
|
206
|
+
cannotDemoteLastSuperAdmin;
|
|
207
|
+
invalidCsrfToken;
|
|
208
|
+
notSuperAdmin;
|
|
209
|
+
targetIsAnonymous;
|
|
210
|
+
};
|
|
211
|
+
type ActorType =
|
|
212
|
+
variant {
|
|
213
|
+
agent;
|
|
214
|
+
systemActor;
|
|
215
|
+
user;
|
|
216
|
+
};
|
|
99
217
|
service : {
|
|
100
218
|
addTransactionMember: (transactionId: text, memberPrincipal: principal,
|
|
101
219
|
role: UserType, canViewProgress: bool, canInviteOthers: bool, csrfToken:
|
|
102
220
|
text) -> (bool);
|
|
221
|
+
adminLinkPrincipals: (primary: principal, alias: principal) -> (Result_1);
|
|
103
222
|
amIAdmin: () -> (bool) query;
|
|
104
223
|
bootstrapAdmin: (name: text, email: text) -> (bool);
|
|
105
224
|
canUserAccessTransaction: (user: principal, txId: text) -> (bool) query;
|
|
106
225
|
checkPermissionWithAudit: (permission: Permission) -> (bool);
|
|
226
|
+
claimLinkCode: (code: text) -> (Result_1);
|
|
107
227
|
createUserForPrincipal: (targetPrincipal: principal, name: text, email:
|
|
108
228
|
text, mobile: text, userTypeText: text, csrfToken: text) -> (bool);
|
|
229
|
+
deactivateBot: (botPrincipal: principal) -> (Result_4);
|
|
109
230
|
deleteUserByPrincipal: (targetPrincipal: principal, csrfToken: text) ->
|
|
110
231
|
(bool);
|
|
232
|
+
demoteAdmin: (target: principal, csrfToken: text) ->
|
|
233
|
+
(AdminMutationResult_1);
|
|
111
234
|
generateCSRFToken: () -> (text);
|
|
235
|
+
generateLinkCode: () -> (Result_1);
|
|
236
|
+
getAllBots: () -> (vec BotAgent) query;
|
|
112
237
|
getAllUsers: () -> (vec UserProfile) query;
|
|
113
238
|
getAuditLogs: (limit: nat) -> (vec AuditLog) query;
|
|
239
|
+
getBotActionLogs: (botPrincipal: principal, limit: nat) ->
|
|
240
|
+
(vec BotActionLog) query;
|
|
241
|
+
getBotAgent: (botPrincipal: principal) -> (opt BotAgent) query;
|
|
114
242
|
getCSRFToken: () -> (opt text) query;
|
|
115
243
|
getCycles: () -> (nat) query;
|
|
244
|
+
getLinkedPrincipals: ("principal": principal) -> (vec principal) query;
|
|
245
|
+
getMyBots: () -> (vec BotAgent) query;
|
|
246
|
+
getMyLinkedPrincipals: () -> (vec principal) query;
|
|
116
247
|
getMyManagingSolicitor: () -> (opt UserProfile) query;
|
|
117
248
|
getMyProfile: () -> (opt UserProfile) query;
|
|
118
249
|
getMyProfileUpdate: () -> (opt UserProfile);
|
|
119
250
|
getMySolicitorClients: () -> (vec UserProfile) query;
|
|
251
|
+
getSolicitorSubmissionDetails: (solicitorPrincipal: principal) ->
|
|
252
|
+
(Result_5) query;
|
|
120
253
|
getTransactionMembers: (transactionId: text) ->
|
|
121
254
|
(opt vec TransactionMember) query;
|
|
122
255
|
getTransactionProgress: (transactionId: text) ->
|
|
123
256
|
(opt TransactionProgress) query;
|
|
124
257
|
getUserProfile: ("principal": principal) -> (opt UserProfile) query;
|
|
258
|
+
getUserProfileByPrincipal: ("principal": principal) ->
|
|
259
|
+
(opt UserProfile) query;
|
|
125
260
|
hasPermission: (permission: Permission) -> (bool) query;
|
|
126
|
-
initializeKnownAdmin: (name: text, email: text, mobile: text) -> (bool);
|
|
127
261
|
linkSolicitorToClient: (solicitorPrincipal: principal, consentGiven:
|
|
128
262
|
bool, csrfToken: text) -> (bool);
|
|
263
|
+
listAdmins: () -> (vec AdminRecord) query;
|
|
264
|
+
logBotAction: (botPrincipal: principal, action: text, transactionId:
|
|
265
|
+
opt text, success: bool, metadata: text) -> (Result_4);
|
|
266
|
+
myAdminRole: () -> (opt AdminRole) query;
|
|
267
|
+
promoteAdmin: (target: principal, role: AdminRole, note: opt text,
|
|
268
|
+
csrfToken: text) -> (AdminMutationResult);
|
|
269
|
+
reactivateBot: (botPrincipal: principal) -> (Result_4);
|
|
270
|
+
recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
|
|
271
|
+
action: text, targetPrincipal: opt principal, transactionId: opt text,
|
|
272
|
+
success: bool, metadata: text) -> (Result_3);
|
|
273
|
+
registerBot: (botPrincipal: principal, name: text, description: text, role:
|
|
274
|
+
BotRole) -> (Result_2);
|
|
129
275
|
registerUser: (name: text, email: text, mobile: text, userType: text) ->
|
|
130
276
|
(bool);
|
|
131
277
|
registerUserV2: (name: text, email: text, mobile: text, userType: UserType,
|
|
132
278
|
solicitorLicenseNumber: opt text, lawFirmName: opt text, lawFirmAddress:
|
|
133
|
-
opt text, csrfToken: text) -> (bool);
|
|
279
|
+
opt text, sraNumber: opt text, csrfToken: text) -> (bool);
|
|
134
280
|
resendVerificationEmail: (csrfToken: text) -> (bool);
|
|
135
281
|
revokeSolicitorAccess: (solicitorPrincipal: principal, csrfToken: text) ->
|
|
136
282
|
(bool);
|
|
283
|
+
unlinkPrincipal: (alias: principal) -> (Result_1);
|
|
137
284
|
updateMemberDocuments: (transactionId: text, uploadedDocumentName:
|
|
138
285
|
text, csrfToken: text) -> (bool);
|
|
286
|
+
updateSolicitorLRDetails: (sraNumber: opt text, businessGatewayEnabled:
|
|
287
|
+
bool, businessGatewayUsername: opt text, firmSRANumber: opt text,
|
|
288
|
+
conveyancerReference: opt text) -> (Result_1);
|
|
139
289
|
updateTransactionMemberRequiredDocs: (transactionId: text,
|
|
140
290
|
documentsToRemove: vec text, csrfToken: text) -> (bool);
|
|
141
|
-
upgradeToAdmin: (targetPrincipal: principal, csrfToken: text) -> (bool);
|
|
142
291
|
validateAdmin: ("principal": principal) -> (bool) query;
|
|
292
|
+
validateBot: (botPrincipal: principal) -> (Result) query;
|
|
143
293
|
validateCSRFToken: (token: text) -> (bool);
|
|
144
294
|
verifyEmail: (token: text, csrfToken: text) -> (bool);
|
|
145
295
|
verifyUser: (userPrincipal: principal, csrfToken: text) -> (bool);
|
|
@@ -2,16 +2,63 @@ import type { Principal } from '@dfinity/principal';
|
|
|
2
2
|
import type { ActorMethod } from '@dfinity/agent';
|
|
3
3
|
import type { IDL } from '@dfinity/candid';
|
|
4
4
|
|
|
5
|
+
export type ActorType = { 'agent' : null } |
|
|
6
|
+
{ 'systemActor' : null } |
|
|
7
|
+
{ 'user' : null };
|
|
8
|
+
export type AdminMutationError = { 'targetIsAnonymous' : null } |
|
|
9
|
+
{ 'cannotDemoteController' : null } |
|
|
10
|
+
{ 'notSuperAdmin' : null } |
|
|
11
|
+
{ 'invalidCsrfToken' : null } |
|
|
12
|
+
{ 'anonymousCaller' : null } |
|
|
13
|
+
{ 'cannotDemoteLastSuperAdmin' : null };
|
|
14
|
+
export type AdminMutationResult = { 'ok' : AdminRecord } |
|
|
15
|
+
{ 'err' : AdminMutationError };
|
|
16
|
+
export type AdminMutationResult_1 = { 'ok' : null } |
|
|
17
|
+
{ 'err' : AdminMutationError };
|
|
18
|
+
export interface AdminRecord {
|
|
19
|
+
'principal' : Principal,
|
|
20
|
+
'grantedAt' : Time,
|
|
21
|
+
'grantedBy' : Principal,
|
|
22
|
+
'note' : [] | [string],
|
|
23
|
+
'role' : AdminRole,
|
|
24
|
+
}
|
|
25
|
+
export type AdminRole = { 'regular' : null } |
|
|
26
|
+
{ 'super' : null };
|
|
5
27
|
export interface AuditLog {
|
|
6
28
|
'id' : bigint,
|
|
7
29
|
'action' : string,
|
|
30
|
+
'actorType' : ActorType,
|
|
8
31
|
'metadata' : string,
|
|
32
|
+
'delegatedBy' : [] | [Principal],
|
|
9
33
|
'targetPrincipal' : [] | [Principal],
|
|
10
34
|
'timestamp' : Time,
|
|
11
35
|
'success' : boolean,
|
|
12
36
|
'actorPrincipal' : Principal,
|
|
13
37
|
'transactionId' : [] | [string],
|
|
14
38
|
}
|
|
39
|
+
export interface BotActionLog {
|
|
40
|
+
'id' : bigint,
|
|
41
|
+
'action' : string,
|
|
42
|
+
'metadata' : string,
|
|
43
|
+
'timestamp' : Time,
|
|
44
|
+
'success' : boolean,
|
|
45
|
+
'botPrincipal' : Principal,
|
|
46
|
+
'transactionId' : [] | [string],
|
|
47
|
+
}
|
|
48
|
+
export interface BotAgent {
|
|
49
|
+
'ownerPrincipal' : Principal,
|
|
50
|
+
'name' : string,
|
|
51
|
+
'createdAt' : Time,
|
|
52
|
+
'role' : BotRole,
|
|
53
|
+
'description' : string,
|
|
54
|
+
'isActive' : boolean,
|
|
55
|
+
'callCount' : bigint,
|
|
56
|
+
'lastActive' : Time,
|
|
57
|
+
'botPrincipal' : Principal,
|
|
58
|
+
}
|
|
59
|
+
export type BotRole = { 'BotFirm' : null } |
|
|
60
|
+
{ 'BotInternal' : null } |
|
|
61
|
+
{ 'BotPersonal' : null };
|
|
15
62
|
export type Permission = { 'ViewTransactionProgress' : string } |
|
|
16
63
|
{ 'ViewSharedTransaction' : string } |
|
|
17
64
|
{ 'ViewDevelopmentUnits' : string } |
|
|
@@ -20,6 +67,31 @@ export type Permission = { 'ViewTransactionProgress' : string } |
|
|
|
20
67
|
{ 'AdminViewAllTransactions' : null } |
|
|
21
68
|
{ 'AdminManageUsers' : null } |
|
|
22
69
|
{ 'UpdateMemberDocuments' : [string, Principal] };
|
|
70
|
+
export type Result = {
|
|
71
|
+
'ok' : { 'ownerPrincipal' : Principal, 'role' : BotRole }
|
|
72
|
+
} |
|
|
73
|
+
{ 'err' : string };
|
|
74
|
+
export type Result_1 = { 'ok' : string } |
|
|
75
|
+
{ 'err' : string };
|
|
76
|
+
export type Result_2 = { 'ok' : BotAgent } |
|
|
77
|
+
{ 'err' : string };
|
|
78
|
+
export type Result_3 = { 'ok' : bigint } |
|
|
79
|
+
{ 'err' : string };
|
|
80
|
+
export type Result_4 = { 'ok' : null } |
|
|
81
|
+
{ 'err' : string };
|
|
82
|
+
export type Result_5 = { 'ok' : SolicitorSubmissionDetails } |
|
|
83
|
+
{ 'err' : string };
|
|
84
|
+
export interface SolicitorSubmissionDetails {
|
|
85
|
+
'firmSRANumber' : [] | [string],
|
|
86
|
+
'fullName' : string,
|
|
87
|
+
'firmName' : string,
|
|
88
|
+
'email' : string,
|
|
89
|
+
'businessGatewayEnabled' : boolean,
|
|
90
|
+
'conveyancerReference' : [] | [string],
|
|
91
|
+
'sraNumber' : string,
|
|
92
|
+
'principalId' : Principal,
|
|
93
|
+
'firmAddress' : string,
|
|
94
|
+
}
|
|
23
95
|
export type Time = bigint;
|
|
24
96
|
export interface TransactionMember {
|
|
25
97
|
'uploadedDocuments' : Array<string>,
|
|
@@ -47,18 +119,23 @@ export interface UserProfile {
|
|
|
47
119
|
'userType' : UserType,
|
|
48
120
|
'principal' : Principal,
|
|
49
121
|
'managedBySolicitor' : [] | [Principal],
|
|
122
|
+
'firmSRANumber' : [] | [string],
|
|
50
123
|
'emailVerified' : boolean,
|
|
51
124
|
'name' : string,
|
|
52
125
|
'createdAt' : Time,
|
|
53
126
|
'role' : [] | [UserRole],
|
|
127
|
+
'businessGatewayUsername' : [] | [string],
|
|
54
128
|
'email' : string,
|
|
55
129
|
'lawFirmName' : [] | [string],
|
|
56
130
|
'isVerified' : boolean,
|
|
57
131
|
'clientPrincipals' : Array<Principal>,
|
|
132
|
+
'businessGatewayEnabled' : boolean,
|
|
58
133
|
'emailVerificationSentAt' : [] | [Time],
|
|
59
134
|
'emailVerificationToken' : [] | [string],
|
|
135
|
+
'conveyancerReference' : [] | [string],
|
|
60
136
|
'mobile' : string,
|
|
61
137
|
'solicitorLicenseNumber' : [] | [string],
|
|
138
|
+
'sraNumber' : [] | [string],
|
|
62
139
|
'lawFirmAddress' : [] | [string],
|
|
63
140
|
}
|
|
64
141
|
export type UserRole = { 'admin' : null } |
|
|
@@ -89,33 +166,69 @@ export interface _SERVICE {
|
|
|
89
166
|
[string, Principal, UserType, boolean, boolean, string],
|
|
90
167
|
boolean
|
|
91
168
|
>,
|
|
169
|
+
'adminLinkPrincipals' : ActorMethod<[Principal, Principal], Result_1>,
|
|
92
170
|
'amIAdmin' : ActorMethod<[], boolean>,
|
|
93
171
|
'bootstrapAdmin' : ActorMethod<[string, string], boolean>,
|
|
94
172
|
'canUserAccessTransaction' : ActorMethod<[Principal, string], boolean>,
|
|
95
173
|
'checkPermissionWithAudit' : ActorMethod<[Permission], boolean>,
|
|
174
|
+
'claimLinkCode' : ActorMethod<[string], Result_1>,
|
|
96
175
|
'createUserForPrincipal' : ActorMethod<
|
|
97
176
|
[Principal, string, string, string, string, string],
|
|
98
177
|
boolean
|
|
99
178
|
>,
|
|
179
|
+
'deactivateBot' : ActorMethod<[Principal], Result_4>,
|
|
100
180
|
'deleteUserByPrincipal' : ActorMethod<[Principal, string], boolean>,
|
|
181
|
+
'demoteAdmin' : ActorMethod<[Principal, string], AdminMutationResult_1>,
|
|
101
182
|
'generateCSRFToken' : ActorMethod<[], string>,
|
|
183
|
+
'generateLinkCode' : ActorMethod<[], Result_1>,
|
|
184
|
+
'getAllBots' : ActorMethod<[], Array<BotAgent>>,
|
|
102
185
|
'getAllUsers' : ActorMethod<[], Array<UserProfile>>,
|
|
103
186
|
'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
|
|
187
|
+
'getBotActionLogs' : ActorMethod<[Principal, bigint], Array<BotActionLog>>,
|
|
188
|
+
'getBotAgent' : ActorMethod<[Principal], [] | [BotAgent]>,
|
|
104
189
|
'getCSRFToken' : ActorMethod<[], [] | [string]>,
|
|
105
190
|
'getCycles' : ActorMethod<[], bigint>,
|
|
191
|
+
'getLinkedPrincipals' : ActorMethod<[Principal], Array<Principal>>,
|
|
192
|
+
'getMyBots' : ActorMethod<[], Array<BotAgent>>,
|
|
193
|
+
'getMyLinkedPrincipals' : ActorMethod<[], Array<Principal>>,
|
|
106
194
|
'getMyManagingSolicitor' : ActorMethod<[], [] | [UserProfile]>,
|
|
107
195
|
'getMyProfile' : ActorMethod<[], [] | [UserProfile]>,
|
|
108
196
|
'getMyProfileUpdate' : ActorMethod<[], [] | [UserProfile]>,
|
|
109
197
|
'getMySolicitorClients' : ActorMethod<[], Array<UserProfile>>,
|
|
198
|
+
'getSolicitorSubmissionDetails' : ActorMethod<[Principal], Result_5>,
|
|
110
199
|
'getTransactionMembers' : ActorMethod<
|
|
111
200
|
[string],
|
|
112
201
|
[] | [Array<TransactionMember>]
|
|
113
202
|
>,
|
|
114
203
|
'getTransactionProgress' : ActorMethod<[string], [] | [TransactionProgress]>,
|
|
115
204
|
'getUserProfile' : ActorMethod<[Principal], [] | [UserProfile]>,
|
|
205
|
+
'getUserProfileByPrincipal' : ActorMethod<[Principal], [] | [UserProfile]>,
|
|
116
206
|
'hasPermission' : ActorMethod<[Permission], boolean>,
|
|
117
|
-
'initializeKnownAdmin' : ActorMethod<[string, string, string], boolean>,
|
|
118
207
|
'linkSolicitorToClient' : ActorMethod<[Principal, boolean, string], boolean>,
|
|
208
|
+
'listAdmins' : ActorMethod<[], Array<AdminRecord>>,
|
|
209
|
+
'logBotAction' : ActorMethod<
|
|
210
|
+
[Principal, string, [] | [string], boolean, string],
|
|
211
|
+
Result_4
|
|
212
|
+
>,
|
|
213
|
+
'myAdminRole' : ActorMethod<[], [] | [AdminRole]>,
|
|
214
|
+
'promoteAdmin' : ActorMethod<
|
|
215
|
+
[Principal, AdminRole, [] | [string], string],
|
|
216
|
+
AdminMutationResult
|
|
217
|
+
>,
|
|
218
|
+
'reactivateBot' : ActorMethod<[Principal], Result_4>,
|
|
219
|
+
'recordAuditEntry' : ActorMethod<
|
|
220
|
+
[
|
|
221
|
+
ActorType,
|
|
222
|
+
[] | [Principal],
|
|
223
|
+
string,
|
|
224
|
+
[] | [Principal],
|
|
225
|
+
[] | [string],
|
|
226
|
+
boolean,
|
|
227
|
+
string,
|
|
228
|
+
],
|
|
229
|
+
Result_3
|
|
230
|
+
>,
|
|
231
|
+
'registerBot' : ActorMethod<[Principal, string, string, BotRole], Result_2>,
|
|
119
232
|
'registerUser' : ActorMethod<[string, string, string, string], boolean>,
|
|
120
233
|
'registerUserV2' : ActorMethod<
|
|
121
234
|
[
|
|
@@ -126,19 +239,25 @@ export interface _SERVICE {
|
|
|
126
239
|
[] | [string],
|
|
127
240
|
[] | [string],
|
|
128
241
|
[] | [string],
|
|
242
|
+
[] | [string],
|
|
129
243
|
string,
|
|
130
244
|
],
|
|
131
245
|
boolean
|
|
132
246
|
>,
|
|
133
247
|
'resendVerificationEmail' : ActorMethod<[string], boolean>,
|
|
134
248
|
'revokeSolicitorAccess' : ActorMethod<[Principal, string], boolean>,
|
|
249
|
+
'unlinkPrincipal' : ActorMethod<[Principal], Result_1>,
|
|
135
250
|
'updateMemberDocuments' : ActorMethod<[string, string, string], boolean>,
|
|
251
|
+
'updateSolicitorLRDetails' : ActorMethod<
|
|
252
|
+
[[] | [string], boolean, [] | [string], [] | [string], [] | [string]],
|
|
253
|
+
Result_1
|
|
254
|
+
>,
|
|
136
255
|
'updateTransactionMemberRequiredDocs' : ActorMethod<
|
|
137
256
|
[string, Array<string>, string],
|
|
138
257
|
boolean
|
|
139
258
|
>,
|
|
140
|
-
'upgradeToAdmin' : ActorMethod<[Principal, string], boolean>,
|
|
141
259
|
'validateAdmin' : ActorMethod<[Principal], boolean>,
|
|
260
|
+
'validateBot' : ActorMethod<[Principal], Result>,
|
|
142
261
|
'validateCSRFToken' : ActorMethod<[string], boolean>,
|
|
143
262
|
'verifyEmail' : ActorMethod<[string, string], boolean>,
|
|
144
263
|
'verifyUser' : ActorMethod<[Principal, string], boolean>,
|