@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
@@ -19,6 +19,7 @@ export const idlFactory = ({ IDL }) => {
19
19
  'solicitor_managed' : IDL.Null,
20
20
  'assisted_buyer' : IDL.Null,
21
21
  });
22
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
22
23
  const Permission = IDL.Variant({
23
24
  'ViewTransactionProgress' : IDL.Text,
24
25
  'ViewSharedTransaction' : IDL.Text,
@@ -29,7 +30,36 @@ export const idlFactory = ({ IDL }) => {
29
30
  'AdminManageUsers' : IDL.Null,
30
31
  'UpdateMemberDocuments' : IDL.Tuple(IDL.Text, IDL.Principal),
31
32
  });
33
+ const Result_4 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
34
+ const AdminMutationError = IDL.Variant({
35
+ 'targetIsAnonymous' : IDL.Null,
36
+ 'cannotDemoteController' : IDL.Null,
37
+ 'notSuperAdmin' : IDL.Null,
38
+ 'invalidCsrfToken' : IDL.Null,
39
+ 'anonymousCaller' : IDL.Null,
40
+ 'cannotDemoteLastSuperAdmin' : IDL.Null,
41
+ });
42
+ const AdminMutationResult_1 = IDL.Variant({
43
+ 'ok' : IDL.Null,
44
+ 'err' : AdminMutationError,
45
+ });
32
46
  const Time = IDL.Int;
47
+ const BotRole = IDL.Variant({
48
+ 'BotFirm' : IDL.Null,
49
+ 'BotInternal' : IDL.Null,
50
+ 'BotPersonal' : IDL.Null,
51
+ });
52
+ const BotAgent = IDL.Record({
53
+ 'ownerPrincipal' : IDL.Principal,
54
+ 'name' : IDL.Text,
55
+ 'createdAt' : Time,
56
+ 'role' : BotRole,
57
+ 'description' : IDL.Text,
58
+ 'isActive' : IDL.Bool,
59
+ 'callCount' : IDL.Nat,
60
+ 'lastActive' : Time,
61
+ 'botPrincipal' : IDL.Principal,
62
+ });
33
63
  const UserRole = IDL.Variant({
34
64
  'admin' : IDL.Null,
35
65
  'solicitor' : IDL.Null,
@@ -42,37 +72,66 @@ export const idlFactory = ({ IDL }) => {
42
72
  'userType' : UserType,
43
73
  'principal' : IDL.Principal,
44
74
  'managedBySolicitor' : IDL.Opt(IDL.Principal),
75
+ 'firmSRANumber' : IDL.Opt(IDL.Text),
45
76
  'emailVerified' : IDL.Bool,
46
77
  'name' : IDL.Text,
47
78
  'createdAt' : Time,
48
79
  'role' : IDL.Opt(UserRole),
80
+ 'businessGatewayUsername' : IDL.Opt(IDL.Text),
49
81
  'email' : IDL.Text,
50
82
  'lawFirmName' : IDL.Opt(IDL.Text),
51
83
  'isVerified' : IDL.Bool,
52
84
  'clientPrincipals' : IDL.Vec(IDL.Principal),
85
+ 'businessGatewayEnabled' : IDL.Bool,
53
86
  'emailVerificationSentAt' : IDL.Opt(Time),
54
87
  'emailVerificationToken' : IDL.Opt(IDL.Text),
88
+ 'conveyancerReference' : IDL.Opt(IDL.Text),
55
89
  'mobile' : IDL.Text,
56
90
  'solicitorLicenseNumber' : IDL.Opt(IDL.Text),
91
+ 'sraNumber' : IDL.Opt(IDL.Text),
57
92
  'lawFirmAddress' : IDL.Opt(IDL.Text),
58
93
  });
59
94
  const ActorType = IDL.Variant({
60
- 'user' : IDL.Null,
61
95
  'agent' : IDL.Null,
62
96
  'systemActor' : IDL.Null,
97
+ 'user' : IDL.Null,
63
98
  });
64
99
  const AuditLog = IDL.Record({
65
100
  'id' : IDL.Nat,
66
101
  'action' : IDL.Text,
102
+ 'actorType' : ActorType,
67
103
  'metadata' : IDL.Text,
104
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
68
105
  'targetPrincipal' : IDL.Opt(IDL.Principal),
69
106
  'timestamp' : Time,
70
107
  'success' : IDL.Bool,
71
108
  'actorPrincipal' : IDL.Principal,
72
- 'actorType' : ActorType,
73
- 'delegatedBy' : IDL.Opt(IDL.Principal),
74
109
  'transactionId' : IDL.Opt(IDL.Text),
75
110
  });
111
+ const BotActionLog = IDL.Record({
112
+ 'id' : IDL.Nat,
113
+ 'action' : IDL.Text,
114
+ 'metadata' : IDL.Text,
115
+ 'timestamp' : Time,
116
+ 'success' : IDL.Bool,
117
+ 'botPrincipal' : IDL.Principal,
118
+ 'transactionId' : IDL.Opt(IDL.Text),
119
+ });
120
+ const SolicitorSubmissionDetails = IDL.Record({
121
+ 'firmSRANumber' : IDL.Opt(IDL.Text),
122
+ 'fullName' : IDL.Text,
123
+ 'firmName' : IDL.Text,
124
+ 'email' : IDL.Text,
125
+ 'businessGatewayEnabled' : IDL.Bool,
126
+ 'conveyancerReference' : IDL.Opt(IDL.Text),
127
+ 'sraNumber' : IDL.Text,
128
+ 'principalId' : IDL.Principal,
129
+ 'firmAddress' : IDL.Text,
130
+ });
131
+ const Result_5 = IDL.Variant({
132
+ 'ok' : SolicitorSubmissionDetails,
133
+ 'err' : IDL.Text,
134
+ });
76
135
  const TransactionMember = IDL.Record({
77
136
  'uploadedDocuments' : IDL.Vec(IDL.Text),
78
137
  'principal' : IDL.Principal,
@@ -94,24 +153,23 @@ export const idlFactory = ({ IDL }) => {
94
153
  'blockingParties' : IDL.Vec(IDL.Principal),
95
154
  'transactionId' : IDL.Text,
96
155
  });
97
- const AdminMutationError = IDL.Variant({
98
- 'notSuperAdmin' : IDL.Null,
99
- 'cannotDemoteController' : IDL.Null,
100
- 'invalidCsrfToken' : IDL.Null,
101
- 'cannotDemoteLastSuperAdmin' : IDL.Null,
102
- 'anonymousCaller' : IDL.Null,
103
- 'targetIsAnonymous' : IDL.Null,
104
- });
105
- const AdminRole = IDL.Variant({
106
- 'super' : IDL.Null,
107
- 'regular' : IDL.Null,
108
- });
156
+ const AdminRole = IDL.Variant({ 'regular' : IDL.Null, 'super' : IDL.Null });
109
157
  const AdminRecord = IDL.Record({
110
158
  'principal' : IDL.Principal,
111
- 'note' : IDL.Opt(IDL.Text),
112
- 'role' : AdminRole,
113
159
  'grantedAt' : Time,
114
160
  'grantedBy' : IDL.Principal,
161
+ 'note' : IDL.Opt(IDL.Text),
162
+ 'role' : AdminRole,
163
+ });
164
+ const AdminMutationResult = IDL.Variant({
165
+ 'ok' : AdminRecord,
166
+ 'err' : AdminMutationError,
167
+ });
168
+ const Result_3 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
169
+ const Result_2 = IDL.Variant({ 'ok' : BotAgent, 'err' : IDL.Text });
170
+ const Result = IDL.Variant({
171
+ 'ok' : IDL.Record({ 'ownerPrincipal' : IDL.Principal, 'role' : BotRole }),
172
+ 'err' : IDL.Text,
115
173
  });
116
174
  return IDL.Service({
117
175
  'addTransactionMember' : IDL.Func(
@@ -119,6 +177,11 @@ export const idlFactory = ({ IDL }) => {
119
177
  [IDL.Bool],
120
178
  [],
121
179
  ),
180
+ 'adminLinkPrincipals' : IDL.Func(
181
+ [IDL.Principal, IDL.Principal],
182
+ [Result_1],
183
+ [],
184
+ ),
122
185
  'amIAdmin' : IDL.Func([], [IDL.Bool], ['query']),
123
186
  'bootstrapAdmin' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
124
187
  'canUserAccessTransaction' : IDL.Func(
@@ -127,11 +190,13 @@ export const idlFactory = ({ IDL }) => {
127
190
  ['query'],
128
191
  ),
129
192
  'checkPermissionWithAudit' : IDL.Func([Permission], [IDL.Bool], []),
193
+ 'claimLinkCode' : IDL.Func([IDL.Text], [Result_1], []),
130
194
  'createUserForPrincipal' : IDL.Func(
131
195
  [IDL.Principal, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
132
196
  [IDL.Bool],
133
197
  [],
134
198
  ),
199
+ 'deactivateBot' : IDL.Func([IDL.Principal], [Result_4], []),
135
200
  'deleteUserByPrincipal' : IDL.Func(
136
201
  [IDL.Principal, IDL.Text],
137
202
  [IDL.Bool],
@@ -139,18 +204,38 @@ export const idlFactory = ({ IDL }) => {
139
204
  ),
140
205
  'demoteAdmin' : IDL.Func(
141
206
  [IDL.Principal, IDL.Text],
142
- [IDL.Variant({ 'ok' : IDL.Null, 'err' : AdminMutationError })],
207
+ [AdminMutationResult_1],
143
208
  [],
144
209
  ),
145
210
  'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
211
+ 'generateLinkCode' : IDL.Func([], [Result_1], []),
212
+ 'getAllBots' : IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
146
213
  'getAllUsers' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
147
214
  'getAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
215
+ 'getBotActionLogs' : IDL.Func(
216
+ [IDL.Principal, IDL.Nat],
217
+ [IDL.Vec(BotActionLog)],
218
+ ['query'],
219
+ ),
220
+ 'getBotAgent' : IDL.Func([IDL.Principal], [IDL.Opt(BotAgent)], ['query']),
148
221
  'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
149
222
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
223
+ 'getLinkedPrincipals' : IDL.Func(
224
+ [IDL.Principal],
225
+ [IDL.Vec(IDL.Principal)],
226
+ ['query'],
227
+ ),
228
+ 'getMyBots' : IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
229
+ 'getMyLinkedPrincipals' : IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
150
230
  'getMyManagingSolicitor' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
151
231
  'getMyProfile' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
152
232
  'getMyProfileUpdate' : IDL.Func([], [IDL.Opt(UserProfile)], []),
153
233
  'getMySolicitorClients' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
234
+ 'getSolicitorSubmissionDetails' : IDL.Func(
235
+ [IDL.Principal],
236
+ [Result_5],
237
+ ['query'],
238
+ ),
154
239
  'getTransactionMembers' : IDL.Func(
155
240
  [IDL.Text],
156
241
  [IDL.Opt(IDL.Vec(TransactionMember))],
@@ -166,6 +251,11 @@ export const idlFactory = ({ IDL }) => {
166
251
  [IDL.Opt(UserProfile)],
167
252
  ['query'],
168
253
  ),
254
+ 'getUserProfileByPrincipal' : IDL.Func(
255
+ [IDL.Principal],
256
+ [IDL.Opt(UserProfile)],
257
+ ['query'],
258
+ ),
169
259
  'hasPermission' : IDL.Func([Permission], [IDL.Bool], ['query']),
170
260
  'linkSolicitorToClient' : IDL.Func(
171
261
  [IDL.Principal, IDL.Bool, IDL.Text],
@@ -173,12 +263,18 @@ export const idlFactory = ({ IDL }) => {
173
263
  [],
174
264
  ),
175
265
  'listAdmins' : IDL.Func([], [IDL.Vec(AdminRecord)], ['query']),
266
+ 'logBotAction' : IDL.Func(
267
+ [IDL.Principal, IDL.Text, IDL.Opt(IDL.Text), IDL.Bool, IDL.Text],
268
+ [Result_4],
269
+ [],
270
+ ),
176
271
  'myAdminRole' : IDL.Func([], [IDL.Opt(AdminRole)], ['query']),
177
272
  'promoteAdmin' : IDL.Func(
178
273
  [IDL.Principal, AdminRole, IDL.Opt(IDL.Text), IDL.Text],
179
- [IDL.Variant({ 'ok' : AdminRecord, 'err' : AdminMutationError })],
274
+ [AdminMutationResult],
180
275
  [],
181
276
  ),
277
+ 'reactivateBot' : IDL.Func([IDL.Principal], [Result_4], []),
182
278
  'recordAuditEntry' : IDL.Func(
183
279
  [
184
280
  ActorType,
@@ -189,7 +285,12 @@ export const idlFactory = ({ IDL }) => {
189
285
  IDL.Bool,
190
286
  IDL.Text,
191
287
  ],
192
- [IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text })],
288
+ [Result_3],
289
+ [],
290
+ ),
291
+ 'registerBot' : IDL.Func(
292
+ [IDL.Principal, IDL.Text, IDL.Text, BotRole],
293
+ [Result_2],
193
294
  [],
194
295
  ),
195
296
  'registerUser' : IDL.Func(
@@ -206,6 +307,7 @@ export const idlFactory = ({ IDL }) => {
206
307
  IDL.Opt(IDL.Text),
207
308
  IDL.Opt(IDL.Text),
208
309
  IDL.Opt(IDL.Text),
310
+ IDL.Opt(IDL.Text),
209
311
  IDL.Text,
210
312
  ],
211
313
  [IDL.Bool],
@@ -217,17 +319,30 @@ export const idlFactory = ({ IDL }) => {
217
319
  [IDL.Bool],
218
320
  [],
219
321
  ),
322
+ 'unlinkPrincipal' : IDL.Func([IDL.Principal], [Result_1], []),
220
323
  'updateMemberDocuments' : IDL.Func(
221
324
  [IDL.Text, IDL.Text, IDL.Text],
222
325
  [IDL.Bool],
223
326
  [],
224
327
  ),
328
+ 'updateSolicitorLRDetails' : IDL.Func(
329
+ [
330
+ IDL.Opt(IDL.Text),
331
+ IDL.Bool,
332
+ IDL.Opt(IDL.Text),
333
+ IDL.Opt(IDL.Text),
334
+ IDL.Opt(IDL.Text),
335
+ ],
336
+ [Result_1],
337
+ [],
338
+ ),
225
339
  'updateTransactionMemberRequiredDocs' : IDL.Func(
226
340
  [IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
227
341
  [IDL.Bool],
228
342
  [],
229
343
  ),
230
344
  'validateAdmin' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
345
+ 'validateBot' : IDL.Func([IDL.Principal], [Result], ['query']),
231
346
  'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
232
347
  'verifyEmail' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
233
348
  'verifyUser' : IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),