@propxchain/core-client 0.2.1-canary.20 → 0.2.1-canary.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
  2. package/dist/canisters/document_storage/document_storage.did.js +90 -21
  3. package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
  4. package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
  5. package/dist/canisters/document_verification/document_verification.did.js +132 -0
  6. package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
  7. package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
  8. package/dist/canisters/email_service/email_service.did.js +40 -0
  9. package/dist/canisters/email_service/email_service.did.js.map +1 -1
  10. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
  11. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
  12. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
  13. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
  14. package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -2
  15. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
  16. package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
  17. package/dist/canisters/user_management/user_management.did.js +103 -20
  18. package/dist/canisters/user_management/user_management.did.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/canisters/document_storage/document_storage.did +82 -12
  21. package/src/canisters/document_storage/document_storage.did.d.ts +89 -12
  22. package/src/canisters/document_storage/document_storage.did.js +128 -19
  23. package/src/canisters/document_verification/document_verification.did +150 -0
  24. package/src/canisters/document_verification/document_verification.did.d.ts +128 -4
  25. package/src/canisters/document_verification/document_verification.did.js +160 -0
  26. package/src/canisters/email_service/email_service.did +49 -0
  27. package/src/canisters/email_service/email_service.did.d.ts +52 -5
  28. package/src/canisters/email_service/email_service.did.js +68 -0
  29. package/src/canisters/land_registry_integration/land_registry_integration.did +239 -13
  30. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +188 -14
  31. package/src/canisters/land_registry_integration/land_registry_integration.did.js +213 -11
  32. package/src/canisters/ledger_manager/ledger_manager.did +77 -6
  33. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +68 -5
  34. package/src/canisters/ledger_manager/ledger_manager.did.js +71 -2
  35. package/src/canisters/property_registry/property_registry.did.d.ts +3 -3
  36. package/src/canisters/transaction_manager/transaction_manager.did +27 -0
  37. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +29 -0
  38. package/src/canisters/user_management/user_management.did +127 -25
  39. package/src/canisters/user_management/user_management.did.d.ts +100 -24
  40. package/src/canisters/user_management/user_management.did.js +135 -20
@@ -1,6 +1,6 @@
1
- import type { Principal } from '@icp-sdk/core/principal';
2
- import type { ActorMethod } from '@icp-sdk/core/agent';
3
- import type { IDL } from '@icp-sdk/core/candid';
1
+ import type { Principal } from '@dfinity/principal';
2
+ import type { ActorMethod } from '@dfinity/agent';
3
+ import type { IDL } from '@dfinity/candid';
4
4
 
5
5
  export interface ChainPropertyView {
6
6
  'status' : PropertyStatus,
@@ -576,6 +576,32 @@ service : {
576
576
  joinAsBotByInviteCode: (inviteCode: text, botName: text) -> (Result_6);
577
577
  joinTransactionByInviteCode: (inviteCode: text) -> (Result_6);
578
578
  joinTransactionByInviteCodeAsBuyer: (inviteCode: text) -> (Result_6);
579
+ /// Caller-initiated removal from a transaction they joined but didn't
580
+ /// create. Counterpart to `removeParty` (which is seller/admin-driven and
581
+ /// gated against primary parties) — this is the "I want out" path for a
582
+ /// joined buyer or any other access-list member.
583
+ ///
584
+ /// Gates:
585
+ /// - Anonymous callers rejected outright.
586
+ /// - Seller / createdBy cannot leave their own transaction (they
587
+ /// dispose via deleteTransaction).
588
+ /// - Caller must currently have access to the transaction.
589
+ /// - Locked after contract exchange (same posture as assignBuyer):
590
+ /// once the deal is signed nobody walks away by toggling a button.
591
+ ///
592
+ /// Effects:
593
+ /// - Caller is removed from `accessList`.
594
+ /// - If the caller is the assigned buyer (`txn.buyer == msg.caller`),
595
+ /// the buyer slot is reset to the seller placeholder, matching the
596
+ /// sentinel state that `assignBuyer` checks for. The transaction
597
+ /// re-enters the "Awaiting buyer" state and the invite code is
598
+ /// reusable by a new joiner.
599
+ /// - Audit event `buyer_left` (or `party_left` for non-buyer leavers)
600
+ /// is logged via the existing ledger pattern.
601
+ ///
602
+ /// Concurrency: uses the same acquireTxLock/finally releaseTxLock
603
+ /// posture as assignBuyer so a leave can't race against an in-flight
604
+ /// stage write.
579
605
  leaveTransaction: (transactionId: text) -> (Result);
580
606
  linkTransactionToChain: (myTransactionId: text, buyingTransactionId:
581
607
  text) -> (Result_1);
@@ -590,6 +616,7 @@ service : {
590
616
  /// 2. Stale-pin txs where the org's pinned principal changed after the
591
617
  /// tx was created (e.g. admin password reset → new ICP key, or org
592
618
  /// ownership transferred to a different admin).
619
+ ///
593
620
  /// Idempotent over the target: re-running with the same developerPrincipal
594
621
  /// returns an error (already at target), so admin-driven backfill scripts
595
622
  /// don't silently re-touch state. Always rejects:
@@ -483,6 +483,34 @@ export interface _SERVICE {
483
483
  'joinAsBotByInviteCode' : ActorMethod<[string, string], Result_6>,
484
484
  'joinTransactionByInviteCode' : ActorMethod<[string], Result_6>,
485
485
  'joinTransactionByInviteCodeAsBuyer' : ActorMethod<[string], Result_6>,
486
+ /**
487
+ * / Caller-initiated removal from a transaction they joined but didn't
488
+ * / create. Counterpart to `removeParty` (which is seller/admin-driven and
489
+ * / gated against primary parties) — this is the "I want out" path for a
490
+ * / joined buyer or any other access-list member.
491
+ * /
492
+ * / Gates:
493
+ * / - Anonymous callers rejected outright.
494
+ * / - Seller / createdBy cannot leave their own transaction (they
495
+ * / dispose via deleteTransaction).
496
+ * / - Caller must currently have access to the transaction.
497
+ * / - Locked after contract exchange (same posture as assignBuyer):
498
+ * / once the deal is signed nobody walks away by toggling a button.
499
+ * /
500
+ * / Effects:
501
+ * / - Caller is removed from `accessList`.
502
+ * / - If the caller is the assigned buyer (`txn.buyer == msg.caller`),
503
+ * / the buyer slot is reset to the seller placeholder, matching the
504
+ * / sentinel state that `assignBuyer` checks for. The transaction
505
+ * / re-enters the "Awaiting buyer" state and the invite code is
506
+ * / reusable by a new joiner.
507
+ * / - Audit event `buyer_left` (or `party_left` for non-buyer leavers)
508
+ * / is logged via the existing ledger pattern.
509
+ * /
510
+ * / Concurrency: uses the same acquireTxLock/finally releaseTxLock
511
+ * / posture as assignBuyer so a leave can't race against an in-flight
512
+ * / stage write.
513
+ */
486
514
  'leaveTransaction' : ActorMethod<[string], Result>,
487
515
  'linkTransactionToChain' : ActorMethod<[string, string], Result_1>,
488
516
  'markAllNotificationsRead' : ActorMethod<[], bigint>,
@@ -497,6 +525,7 @@ export interface _SERVICE {
497
525
  * / 2. Stale-pin txs where the org's pinned principal changed after the
498
526
  * / tx was created (e.g. admin password reset → new ICP key, or org
499
527
  * / ownership transferred to a different admin).
528
+ * /
500
529
  * / Idempotent over the target: re-running with the same developerPrincipal
501
530
  * / returns an error (already at target), so admin-driven backfill scripts
502
531
  * / don't silently re-touch state. Always rejects:
@@ -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,13 +135,35 @@ type Permission =
85
135
  ViewSharedTransaction: text;
86
136
  ViewTransactionProgress: text;
87
137
  };
88
- type ActorType =
138
+ type BotRole =
89
139
  variant {
90
- agent;
91
- systemActor;
92
- user;
140
+ BotFirm;
141
+ BotInternal;
142
+ BotPersonal;
93
143
  };
94
- type AuditLog =
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
+ };
166
+ type AuditLog =
95
167
  record {
96
168
  action: text;
97
169
  actorPrincipal: principal;
@@ -104,12 +176,12 @@ type AuditLog =
104
176
  timestamp: Time;
105
177
  transactionId: opt text;
106
178
  };
107
- type AdminRole =
179
+ type AdminRole =
108
180
  variant {
109
181
  regular;
110
- "super";
182
+ super;
111
183
  };
112
- type AdminRecord =
184
+ type AdminRecord =
113
185
  record {
114
186
  grantedAt: Time;
115
187
  grantedBy: principal;
@@ -117,7 +189,17 @@ type AdminRecord =
117
189
  "principal": principal;
118
190
  role: AdminRole;
119
191
  };
120
- type AdminMutationError =
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 =
121
203
  variant {
122
204
  anonymousCaller;
123
205
  cannotDemoteController;
@@ -126,68 +208,88 @@ type AdminMutationError =
126
208
  notSuperAdmin;
127
209
  targetIsAnonymous;
128
210
  };
211
+ type ActorType =
212
+ variant {
213
+ agent;
214
+ systemActor;
215
+ user;
216
+ };
129
217
  service : {
130
218
  addTransactionMember: (transactionId: text, memberPrincipal: principal,
131
219
  role: UserType, canViewProgress: bool, canInviteOthers: bool, csrfToken:
132
220
  text) -> (bool);
221
+ adminLinkPrincipals: (primary: principal, alias: principal) -> (Result_1);
133
222
  amIAdmin: () -> (bool) query;
134
223
  bootstrapAdmin: (name: text, email: text) -> (bool);
135
224
  canUserAccessTransaction: (user: principal, txId: text) -> (bool) query;
136
225
  checkPermissionWithAudit: (permission: Permission) -> (bool);
226
+ claimLinkCode: (code: text) -> (Result_1);
137
227
  createUserForPrincipal: (targetPrincipal: principal, name: text, email:
138
228
  text, mobile: text, userTypeText: text, csrfToken: text) -> (bool);
229
+ deactivateBot: (botPrincipal: principal) -> (Result_4);
139
230
  deleteUserByPrincipal: (targetPrincipal: principal, csrfToken: text) ->
140
231
  (bool);
141
232
  demoteAdmin: (target: principal, csrfToken: text) ->
142
- (variant {
143
- err: AdminMutationError;
144
- ok;
145
- });
233
+ (AdminMutationResult_1);
146
234
  generateCSRFToken: () -> (text);
235
+ generateLinkCode: () -> (Result_1);
236
+ getAllBots: () -> (vec BotAgent) query;
147
237
  getAllUsers: () -> (vec UserProfile) query;
148
238
  getAuditLogs: (limit: nat) -> (vec AuditLog) query;
239
+ getBotActionLogs: (botPrincipal: principal, limit: nat) ->
240
+ (vec BotActionLog) query;
241
+ getBotAgent: (botPrincipal: principal) -> (opt BotAgent) query;
149
242
  getCSRFToken: () -> (opt text) query;
150
243
  getCycles: () -> (nat) query;
244
+ getLinkedPrincipals: ("principal": principal) -> (vec principal) query;
245
+ getMyBots: () -> (vec BotAgent) query;
246
+ getMyLinkedPrincipals: () -> (vec principal) query;
151
247
  getMyManagingSolicitor: () -> (opt UserProfile) query;
152
248
  getMyProfile: () -> (opt UserProfile) query;
153
249
  getMyProfileUpdate: () -> (opt UserProfile);
154
250
  getMySolicitorClients: () -> (vec UserProfile) query;
251
+ getSolicitorSubmissionDetails: (solicitorPrincipal: principal) ->
252
+ (Result_5) query;
155
253
  getTransactionMembers: (transactionId: text) ->
156
254
  (opt vec TransactionMember) query;
157
255
  getTransactionProgress: (transactionId: text) ->
158
256
  (opt TransactionProgress) query;
159
257
  getUserProfile: ("principal": principal) -> (opt UserProfile) query;
258
+ getUserProfileByPrincipal: ("principal": principal) ->
259
+ (opt UserProfile) query;
160
260
  hasPermission: (permission: Permission) -> (bool) query;
161
- linkSolicitorToClient: (solicitorPrincipal: principal, consentGiven:
261
+ linkSolicitorToClient: (solicitorPrincipal: principal, consentGiven:
162
262
  bool, csrfToken: text) -> (bool);
163
263
  listAdmins: () -> (vec AdminRecord) query;
264
+ logBotAction: (botPrincipal: principal, action: text, transactionId:
265
+ opt text, success: bool, metadata: text) -> (Result_4);
164
266
  myAdminRole: () -> (opt AdminRole) query;
165
267
  promoteAdmin: (target: principal, role: AdminRole, note: opt text,
166
- csrfToken: text) ->
167
- (variant {
168
- err: AdminMutationError;
169
- ok: AdminRecord;
170
- });
268
+ csrfToken: text) -> (AdminMutationResult);
269
+ reactivateBot: (botPrincipal: principal) -> (Result_4);
171
270
  recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
172
271
  action: text, targetPrincipal: opt principal, transactionId: opt text,
173
- success: bool, metadata: text) ->
174
- (variant {
175
- err: text;
176
- ok: nat;
177
- });
272
+ success: bool, metadata: text) -> (Result_3);
273
+ registerBot: (botPrincipal: principal, name: text, description: text, role:
274
+ BotRole) -> (Result_2);
178
275
  registerUser: (name: text, email: text, mobile: text, userType: text) ->
179
276
  (bool);
180
277
  registerUserV2: (name: text, email: text, mobile: text, userType: UserType,
181
278
  solicitorLicenseNumber: opt text, lawFirmName: opt text, lawFirmAddress:
182
- opt text, csrfToken: text) -> (bool);
279
+ opt text, sraNumber: opt text, csrfToken: text) -> (bool);
183
280
  resendVerificationEmail: (csrfToken: text) -> (bool);
184
281
  revokeSolicitorAccess: (solicitorPrincipal: principal, csrfToken: text) ->
185
282
  (bool);
283
+ unlinkPrincipal: (alias: principal) -> (Result_1);
186
284
  updateMemberDocuments: (transactionId: text, uploadedDocumentName:
187
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);
188
289
  updateTransactionMemberRequiredDocs: (transactionId: text,
189
290
  documentsToRemove: vec text, csrfToken: text) -> (bool);
190
291
  validateAdmin: ("principal": principal) -> (bool) query;
292
+ validateBot: (botPrincipal: principal) -> (Result) query;
191
293
  validateCSRFToken: (token: text) -> (bool);
192
294
  verifyEmail: (token: text, csrfToken: text) -> (bool);
193
295
  verifyUser: (userPrincipal: principal, csrfToken: text) -> (bool);
@@ -1,37 +1,64 @@
1
- import type { Principal } from '@icp-sdk/core/principal';
2
- import type { ActorMethod } from '@icp-sdk/core/agent';
3
- import type { IDL } from '@icp-sdk/core/candid';
1
+ import type { Principal } from '@dfinity/principal';
2
+ import type { ActorMethod } from '@dfinity/agent';
3
+ import type { IDL } from '@dfinity/candid';
4
4
 
5
- export type ActorType = { 'user' : null } |
6
- { 'agent' : null } |
7
- { 'systemActor' : null };
8
- export type AdminMutationError = { 'notSuperAdmin' : null } |
5
+ export type ActorType = { 'agent' : null } |
6
+ { 'systemActor' : null } |
7
+ { 'user' : null };
8
+ export type AdminMutationError = { 'targetIsAnonymous' : null } |
9
9
  { 'cannotDemoteController' : null } |
10
+ { 'notSuperAdmin' : null } |
10
11
  { 'invalidCsrfToken' : null } |
11
- { 'cannotDemoteLastSuperAdmin' : null } |
12
12
  { 'anonymousCaller' : null } |
13
- { 'targetIsAnonymous' : null };
13
+ { 'cannotDemoteLastSuperAdmin' : null };
14
+ export type AdminMutationResult = { 'ok' : AdminRecord } |
15
+ { 'err' : AdminMutationError };
16
+ export type AdminMutationResult_1 = { 'ok' : null } |
17
+ { 'err' : AdminMutationError };
14
18
  export interface AdminRecord {
15
19
  'principal' : Principal,
16
- 'note' : [] | [string],
17
- 'role' : AdminRole,
18
20
  'grantedAt' : Time,
19
21
  'grantedBy' : Principal,
22
+ 'note' : [] | [string],
23
+ 'role' : AdminRole,
20
24
  }
21
- export type AdminRole = { 'super' : null } |
22
- { 'regular' : null };
25
+ export type AdminRole = { 'regular' : null } |
26
+ { 'super' : null };
23
27
  export interface AuditLog {
24
28
  'id' : bigint,
25
29
  'action' : string,
30
+ 'actorType' : ActorType,
26
31
  'metadata' : string,
32
+ 'delegatedBy' : [] | [Principal],
27
33
  'targetPrincipal' : [] | [Principal],
28
34
  'timestamp' : Time,
29
35
  'success' : boolean,
30
36
  'actorPrincipal' : Principal,
31
- 'actorType' : ActorType,
32
- 'delegatedBy' : [] | [Principal],
33
37
  'transactionId' : [] | [string],
34
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 };
35
62
  export type Permission = { 'ViewTransactionProgress' : string } |
36
63
  { 'ViewSharedTransaction' : string } |
37
64
  { 'ViewDevelopmentUnits' : string } |
@@ -40,6 +67,31 @@ export type Permission = { 'ViewTransactionProgress' : string } |
40
67
  { 'AdminViewAllTransactions' : null } |
41
68
  { 'AdminManageUsers' : null } |
42
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
+ }
43
95
  export type Time = bigint;
44
96
  export interface TransactionMember {
45
97
  'uploadedDocuments' : Array<string>,
@@ -67,18 +119,23 @@ export interface UserProfile {
67
119
  'userType' : UserType,
68
120
  'principal' : Principal,
69
121
  'managedBySolicitor' : [] | [Principal],
122
+ 'firmSRANumber' : [] | [string],
70
123
  'emailVerified' : boolean,
71
124
  'name' : string,
72
125
  'createdAt' : Time,
73
126
  'role' : [] | [UserRole],
127
+ 'businessGatewayUsername' : [] | [string],
74
128
  'email' : string,
75
129
  'lawFirmName' : [] | [string],
76
130
  'isVerified' : boolean,
77
131
  'clientPrincipals' : Array<Principal>,
132
+ 'businessGatewayEnabled' : boolean,
78
133
  'emailVerificationSentAt' : [] | [Time],
79
134
  'emailVerificationToken' : [] | [string],
135
+ 'conveyancerReference' : [] | [string],
80
136
  'mobile' : string,
81
137
  'solicitorLicenseNumber' : [] | [string],
138
+ 'sraNumber' : [] | [string],
82
139
  'lawFirmAddress' : [] | [string],
83
140
  }
84
141
  export type UserRole = { 'admin' : null } |
@@ -109,44 +166,56 @@ export interface _SERVICE {
109
166
  [string, Principal, UserType, boolean, boolean, string],
110
167
  boolean
111
168
  >,
169
+ 'adminLinkPrincipals' : ActorMethod<[Principal, Principal], Result_1>,
112
170
  'amIAdmin' : ActorMethod<[], boolean>,
113
171
  'bootstrapAdmin' : ActorMethod<[string, string], boolean>,
114
172
  'canUserAccessTransaction' : ActorMethod<[Principal, string], boolean>,
115
173
  'checkPermissionWithAudit' : ActorMethod<[Permission], boolean>,
174
+ 'claimLinkCode' : ActorMethod<[string], Result_1>,
116
175
  'createUserForPrincipal' : ActorMethod<
117
176
  [Principal, string, string, string, string, string],
118
177
  boolean
119
178
  >,
179
+ 'deactivateBot' : ActorMethod<[Principal], Result_4>,
120
180
  'deleteUserByPrincipal' : ActorMethod<[Principal, string], boolean>,
121
- 'demoteAdmin' : ActorMethod<
122
- [Principal, string],
123
- { 'ok' : null } |
124
- { 'err' : AdminMutationError }
125
- >,
181
+ 'demoteAdmin' : ActorMethod<[Principal, string], AdminMutationResult_1>,
126
182
  'generateCSRFToken' : ActorMethod<[], string>,
183
+ 'generateLinkCode' : ActorMethod<[], Result_1>,
184
+ 'getAllBots' : ActorMethod<[], Array<BotAgent>>,
127
185
  'getAllUsers' : ActorMethod<[], Array<UserProfile>>,
128
186
  'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
187
+ 'getBotActionLogs' : ActorMethod<[Principal, bigint], Array<BotActionLog>>,
188
+ 'getBotAgent' : ActorMethod<[Principal], [] | [BotAgent]>,
129
189
  'getCSRFToken' : ActorMethod<[], [] | [string]>,
130
190
  'getCycles' : ActorMethod<[], bigint>,
191
+ 'getLinkedPrincipals' : ActorMethod<[Principal], Array<Principal>>,
192
+ 'getMyBots' : ActorMethod<[], Array<BotAgent>>,
193
+ 'getMyLinkedPrincipals' : ActorMethod<[], Array<Principal>>,
131
194
  'getMyManagingSolicitor' : ActorMethod<[], [] | [UserProfile]>,
132
195
  'getMyProfile' : ActorMethod<[], [] | [UserProfile]>,
133
196
  'getMyProfileUpdate' : ActorMethod<[], [] | [UserProfile]>,
134
197
  'getMySolicitorClients' : ActorMethod<[], Array<UserProfile>>,
198
+ 'getSolicitorSubmissionDetails' : ActorMethod<[Principal], Result_5>,
135
199
  'getTransactionMembers' : ActorMethod<
136
200
  [string],
137
201
  [] | [Array<TransactionMember>]
138
202
  >,
139
203
  'getTransactionProgress' : ActorMethod<[string], [] | [TransactionProgress]>,
140
204
  'getUserProfile' : ActorMethod<[Principal], [] | [UserProfile]>,
205
+ 'getUserProfileByPrincipal' : ActorMethod<[Principal], [] | [UserProfile]>,
141
206
  'hasPermission' : ActorMethod<[Permission], boolean>,
142
207
  'linkSolicitorToClient' : ActorMethod<[Principal, boolean, string], boolean>,
143
208
  'listAdmins' : ActorMethod<[], Array<AdminRecord>>,
209
+ 'logBotAction' : ActorMethod<
210
+ [Principal, string, [] | [string], boolean, string],
211
+ Result_4
212
+ >,
144
213
  'myAdminRole' : ActorMethod<[], [] | [AdminRole]>,
145
214
  'promoteAdmin' : ActorMethod<
146
215
  [Principal, AdminRole, [] | [string], string],
147
- { 'ok' : AdminRecord } |
148
- { 'err' : AdminMutationError }
216
+ AdminMutationResult
149
217
  >,
218
+ 'reactivateBot' : ActorMethod<[Principal], Result_4>,
150
219
  'recordAuditEntry' : ActorMethod<
151
220
  [
152
221
  ActorType,
@@ -157,9 +226,9 @@ export interface _SERVICE {
157
226
  boolean,
158
227
  string,
159
228
  ],
160
- { 'ok' : bigint } |
161
- { 'err' : string }
229
+ Result_3
162
230
  >,
231
+ 'registerBot' : ActorMethod<[Principal, string, string, BotRole], Result_2>,
163
232
  'registerUser' : ActorMethod<[string, string, string, string], boolean>,
164
233
  'registerUserV2' : ActorMethod<
165
234
  [
@@ -170,18 +239,25 @@ export interface _SERVICE {
170
239
  [] | [string],
171
240
  [] | [string],
172
241
  [] | [string],
242
+ [] | [string],
173
243
  string,
174
244
  ],
175
245
  boolean
176
246
  >,
177
247
  'resendVerificationEmail' : ActorMethod<[string], boolean>,
178
248
  'revokeSolicitorAccess' : ActorMethod<[Principal, string], boolean>,
249
+ 'unlinkPrincipal' : ActorMethod<[Principal], Result_1>,
179
250
  'updateMemberDocuments' : ActorMethod<[string, string, string], boolean>,
251
+ 'updateSolicitorLRDetails' : ActorMethod<
252
+ [[] | [string], boolean, [] | [string], [] | [string], [] | [string]],
253
+ Result_1
254
+ >,
180
255
  'updateTransactionMemberRequiredDocs' : ActorMethod<
181
256
  [string, Array<string>, string],
182
257
  boolean
183
258
  >,
184
259
  'validateAdmin' : ActorMethod<[Principal], boolean>,
260
+ 'validateBot' : ActorMethod<[Principal], Result>,
185
261
  'validateCSRFToken' : ActorMethod<[string], boolean>,
186
262
  'verifyEmail' : ActorMethod<[string, string], boolean>,
187
263
  'verifyUser' : ActorMethod<[Principal, string], boolean>,