@propxchain/core-client 0.3.0 → 0.5.0-canary.42

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 (61) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +169 -7
  2. package/dist/canisters/document_storage/document_storage.did.js +237 -148
  3. package/dist/canisters/document_verification/document_verification.did.d.ts +248 -7
  4. package/dist/canisters/document_verification/document_verification.did.js +322 -231
  5. package/dist/canisters/email_service/email_service.did.d.ts +92 -7
  6. package/dist/canisters/email_service/email_service.did.js +128 -73
  7. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts +227 -7
  8. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +264 -315
  9. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +215 -7
  10. package/dist/canisters/ledger_manager/ledger_manager.did.js +262 -198
  11. package/dist/canisters/property_registry/property_registry.did.d.ts +77 -7
  12. package/dist/canisters/property_registry/property_registry.did.js +84 -57
  13. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +960 -7
  14. package/dist/canisters/transaction_manager/transaction_manager.did.js +1081 -867
  15. package/dist/canisters/user_management/user_management.did.d.ts +314 -7
  16. package/dist/canisters/user_management/user_management.did.js +420 -254
  17. package/dist/jurisdiction.d.ts +50 -0
  18. package/dist/jurisdiction.d.ts.map +1 -0
  19. package/dist/jurisdiction.js +109 -0
  20. package/dist/jurisdiction.js.map +1 -0
  21. package/dist/mock.js +1 -1
  22. package/package.json +6 -2
  23. package/src/canisters/document_storage/document_storage.did +32 -21
  24. package/src/canisters/document_storage/document_storage.did.d.ts +34 -24
  25. package/src/canisters/document_storage/document_storage.did.js +31 -21
  26. package/src/canisters/document_verification/document_verification.did +6 -6
  27. package/src/canisters/document_verification/document_verification.did.d.ts +12 -12
  28. package/src/canisters/document_verification/document_verification.did.js +28 -28
  29. package/src/canisters/email_service/email_service.did.d.ts +3 -3
  30. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +3 -3
  31. package/src/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
  32. package/src/canisters/ledger_manager/ledger_manager.did +2 -1
  33. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +4 -3
  34. package/src/canisters/ledger_manager/ledger_manager.did.js +2 -5
  35. package/src/canisters/property_registry/property_registry.did +7 -3
  36. package/src/canisters/property_registry/property_registry.did.d.ts +10 -6
  37. package/src/canisters/property_registry/property_registry.did.js +12 -4
  38. package/src/canisters/transaction_manager/transaction_manager.did +104 -44
  39. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +93 -43
  40. package/src/canisters/transaction_manager/transaction_manager.did.js +117 -38
  41. package/src/canisters/user_management/user_management.did +62 -19
  42. package/src/canisters/user_management/user_management.did.d.ts +68 -21
  43. package/src/canisters/user_management/user_management.did.js +90 -19
  44. package/src/jurisdiction.ts +117 -0
  45. package/src/mock.ts +1 -1
  46. package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
  47. package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
  48. package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
  49. package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
  50. package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
  51. package/dist/canisters/email_service/email_service.did.js.map +0 -1
  52. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
  53. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
  54. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
  55. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
  56. package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
  57. package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
  58. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
  59. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
  60. package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
  61. package/dist/canisters/user_management/user_management.did.js.map +0 -1
@@ -1,257 +1,423 @@
1
1
  export const idlFactory = ({ IDL }) => {
2
- const UserType = IDL.Variant({
3
- 'solicitor_platform_only': IDL.Null,
4
- 'admin': IDL.Null,
5
- 'diy_buyer': IDL.Null,
6
- 'solicitor_transparent': IDL.Null,
7
- 'platform_admin': IDL.Null,
8
- 'solicitor_client_linked': IDL.Null,
9
- 'estate_agent': IDL.Null,
10
- 'platform_support': IDL.Null,
11
- 'mortgage_broker': IDL.Null,
12
- 'seller': IDL.Null,
13
- 'conveyancer_managed': IDL.Null,
14
- 'diy_seller': IDL.Null,
15
- 'assisted_seller': IDL.Null,
16
- 'conveyancer_transparent': IDL.Null,
17
- 'buyer': IDL.Null,
18
- 'property_developer': IDL.Null,
19
- 'solicitor_managed': IDL.Null,
20
- 'assisted_buyer': IDL.Null,
21
- });
22
- const Result_1 = IDL.Variant({ 'ok': IDL.Text, 'err': IDL.Text });
23
- const Permission = IDL.Variant({
24
- 'ViewTransactionProgress': IDL.Text,
25
- 'ViewSharedTransaction': IDL.Text,
26
- 'ViewDevelopmentUnits': IDL.Text,
27
- 'ManageClientAccess': IDL.Principal,
28
- 'InvitePartyToTransaction': IDL.Text,
29
- 'AdminViewAllTransactions': IDL.Null,
30
- 'AdminManageUsers': IDL.Null,
31
- 'UpdateMemberDocuments': IDL.Tuple(IDL.Text, IDL.Principal),
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
- });
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
- });
63
- const UserRole = IDL.Variant({
64
- 'admin': IDL.Null,
65
- 'solicitor': IDL.Null,
66
- 'seller': IDL.Null,
67
- 'guest': IDL.Null,
68
- 'buyer': IDL.Null,
69
- });
70
- const UserProfile = IDL.Record({
71
- 'isPlatformOnlySolicitor': IDL.Bool,
72
- 'userType': UserType,
73
- 'principal': IDL.Principal,
74
- 'managedBySolicitor': IDL.Opt(IDL.Principal),
75
- 'firmSRANumber': IDL.Opt(IDL.Text),
76
- 'emailVerified': IDL.Bool,
77
- 'name': IDL.Text,
78
- 'createdAt': Time,
79
- 'role': IDL.Opt(UserRole),
80
- 'businessGatewayUsername': IDL.Opt(IDL.Text),
81
- 'email': IDL.Text,
82
- 'lawFirmName': IDL.Opt(IDL.Text),
83
- 'isVerified': IDL.Bool,
84
- 'clientPrincipals': IDL.Vec(IDL.Principal),
85
- 'businessGatewayEnabled': IDL.Bool,
86
- 'emailVerificationSentAt': IDL.Opt(Time),
87
- 'emailVerificationToken': IDL.Opt(IDL.Text),
88
- 'conveyancerReference': IDL.Opt(IDL.Text),
89
- 'mobile': IDL.Text,
90
- 'solicitorLicenseNumber': IDL.Opt(IDL.Text),
91
- 'sraNumber': IDL.Opt(IDL.Text),
92
- 'lawFirmAddress': IDL.Opt(IDL.Text),
93
- });
94
- const ActorType = IDL.Variant({
95
- 'agent': IDL.Null,
96
- 'systemActor': IDL.Null,
97
- 'user': IDL.Null,
98
- });
99
- const AuditLog = IDL.Record({
100
- 'id': IDL.Nat,
101
- 'action': IDL.Text,
102
- 'actorType': ActorType,
103
- 'metadata': IDL.Text,
104
- 'delegatedBy': IDL.Opt(IDL.Principal),
105
- 'targetPrincipal': IDL.Opt(IDL.Principal),
106
- 'timestamp': Time,
107
- 'success': IDL.Bool,
108
- 'actorPrincipal': IDL.Principal,
109
- 'transactionId': IDL.Opt(IDL.Text),
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
- });
135
- const TransactionMember = IDL.Record({
136
- 'uploadedDocuments': IDL.Vec(IDL.Text),
137
- 'principal': IDL.Principal,
138
- 'requiredDocuments': IDL.Vec(IDL.Text),
139
- 'joinedAt': Time,
140
- 'role': UserType,
141
- 'documentsComplete': IDL.Bool,
142
- 'canViewProgress': IDL.Bool,
143
- 'canInviteOthers': IDL.Bool,
144
- 'lastActivityAt': Time,
145
- 'transactionId': IDL.Text,
146
- });
147
- const TransactionProgress = IDL.Record({
148
- 'members': IDL.Vec(TransactionMember),
149
- 'completionPercentage': IDL.Nat,
150
- 'readyToExchange': IDL.Bool,
151
- 'membersComplete': IDL.Nat,
152
- 'totalMembers': IDL.Nat,
153
- 'blockingParties': IDL.Vec(IDL.Principal),
154
- 'transactionId': IDL.Text,
155
- });
156
- const AdminRole = IDL.Variant({ 'regular': IDL.Null, 'super': IDL.Null });
157
- const AdminRecord = IDL.Record({
158
- 'principal': IDL.Principal,
159
- 'grantedAt': Time,
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,
173
- });
174
- return IDL.Service({
175
- 'addTransactionMember': IDL.Func([IDL.Text, IDL.Principal, UserType, IDL.Bool, IDL.Bool, IDL.Text], [IDL.Bool], []),
176
- 'adminLinkPrincipals': IDL.Func([IDL.Principal, IDL.Principal], [Result_1], []),
177
- 'amIAdmin': IDL.Func([], [IDL.Bool], ['query']),
178
- 'bootstrapAdmin': IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
179
- 'canUserAccessTransaction': IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], ['query']),
180
- 'checkPermissionWithAudit': IDL.Func([Permission], [IDL.Bool], []),
181
- 'claimLinkCode': IDL.Func([IDL.Text], [Result_1], []),
182
- 'createUserForPrincipal': IDL.Func([IDL.Principal, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text], [IDL.Bool], []),
183
- 'deactivateBot': IDL.Func([IDL.Principal], [Result_4], []),
184
- 'deleteUserByPrincipal': IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
185
- 'demoteAdmin': IDL.Func([IDL.Principal, IDL.Text], [AdminMutationResult_1], []),
186
- 'generateCSRFToken': IDL.Func([], [IDL.Text], []),
187
- 'generateLinkCode': IDL.Func([], [Result_1], []),
188
- 'getAllBots': IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
189
- 'getAllUsers': IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
190
- 'getAuditLogs': IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
191
- 'getBotActionLogs': IDL.Func([IDL.Principal, IDL.Nat], [IDL.Vec(BotActionLog)], ['query']),
192
- 'getBotAgent': IDL.Func([IDL.Principal], [IDL.Opt(BotAgent)], ['query']),
193
- 'getCSRFToken': IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
194
- 'getCycles': IDL.Func([], [IDL.Nat], ['query']),
195
- 'getLinkedPrincipals': IDL.Func([IDL.Principal], [IDL.Vec(IDL.Principal)], ['query']),
196
- 'getMyBots': IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
197
- 'getMyLinkedPrincipals': IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
198
- 'getMyManagingSolicitor': IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
199
- 'getMyProfile': IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
200
- 'getMyProfileUpdate': IDL.Func([], [IDL.Opt(UserProfile)], []),
201
- 'getMySolicitorClients': IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
202
- 'getSolicitorSubmissionDetails': IDL.Func([IDL.Principal], [Result_5], ['query']),
203
- 'getTransactionMembers': IDL.Func([IDL.Text], [IDL.Opt(IDL.Vec(TransactionMember))], ['query']),
204
- 'getTransactionProgress': IDL.Func([IDL.Text], [IDL.Opt(TransactionProgress)], ['query']),
205
- 'getUserProfile': IDL.Func([IDL.Principal], [IDL.Opt(UserProfile)], ['query']),
206
- 'getUserProfileByPrincipal': IDL.Func([IDL.Principal], [IDL.Opt(UserProfile)], ['query']),
207
- 'hasPermission': IDL.Func([Permission], [IDL.Bool], ['query']),
208
- 'linkSolicitorToClient': IDL.Func([IDL.Principal, IDL.Bool, IDL.Text], [IDL.Bool], []),
209
- 'listAdmins': IDL.Func([], [IDL.Vec(AdminRecord)], ['query']),
210
- 'logBotAction': IDL.Func([IDL.Principal, IDL.Text, IDL.Opt(IDL.Text), IDL.Bool, IDL.Text], [Result_4], []),
211
- 'myAdminRole': IDL.Func([], [IDL.Opt(AdminRole)], ['query']),
212
- 'promoteAdmin': IDL.Func([IDL.Principal, AdminRole, IDL.Opt(IDL.Text), IDL.Text], [AdminMutationResult], []),
213
- 'reactivateBot': IDL.Func([IDL.Principal], [Result_4], []),
214
- 'recordAuditEntry': IDL.Func([
215
- ActorType,
216
- IDL.Opt(IDL.Principal),
217
- IDL.Text,
218
- IDL.Opt(IDL.Principal),
219
- IDL.Opt(IDL.Text),
220
- IDL.Bool,
221
- IDL.Text,
222
- ], [Result_3], []),
223
- 'registerBot': IDL.Func([IDL.Principal, IDL.Text, IDL.Text, BotRole], [Result_2], []),
224
- 'registerUser': IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Text], [IDL.Bool], []),
225
- 'registerUserV2': IDL.Func([
226
- IDL.Text,
227
- IDL.Text,
228
- IDL.Text,
229
- UserType,
230
- IDL.Opt(IDL.Text),
231
- IDL.Opt(IDL.Text),
232
- IDL.Opt(IDL.Text),
233
- IDL.Opt(IDL.Text),
234
- IDL.Text,
235
- ], [IDL.Bool], []),
236
- 'resendVerificationEmail': IDL.Func([IDL.Text], [IDL.Bool], []),
237
- 'revokeSolicitorAccess': IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
238
- 'unlinkPrincipal': IDL.Func([IDL.Principal], [Result_1], []),
239
- 'updateMemberDocuments': IDL.Func([IDL.Text, IDL.Text, IDL.Text], [IDL.Bool], []),
240
- 'updateSolicitorLRDetails': IDL.Func([
241
- IDL.Opt(IDL.Text),
242
- IDL.Bool,
243
- IDL.Opt(IDL.Text),
244
- IDL.Opt(IDL.Text),
245
- IDL.Opt(IDL.Text),
246
- ], [Result_1], []),
247
- 'updateTransactionMemberRequiredDocs': IDL.Func([IDL.Text, IDL.Vec(IDL.Text), IDL.Text], [IDL.Bool], []),
248
- 'validateAdmin': IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
249
- 'validateBot': IDL.Func([IDL.Principal], [Result], ['query']),
250
- 'validateCSRFToken': IDL.Func([IDL.Text], [IDL.Bool], []),
251
- 'verifyEmail': IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
252
- 'verifyUser': IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
253
- 'whoAmI': IDL.Func([], [IDL.Principal], ['query']),
254
- });
2
+ const UserType = IDL.Variant({
3
+ 'solicitor_platform_only' : IDL.Null,
4
+ 'admin' : IDL.Null,
5
+ 'diy_buyer' : IDL.Null,
6
+ 'solicitor_transparent' : IDL.Null,
7
+ 'platform_admin' : IDL.Null,
8
+ 'solicitor_client_linked' : IDL.Null,
9
+ 'estate_agent' : IDL.Null,
10
+ 'platform_support' : IDL.Null,
11
+ 'mortgage_broker' : IDL.Null,
12
+ 'seller' : IDL.Null,
13
+ 'conveyancer_managed' : IDL.Null,
14
+ 'diy_seller' : IDL.Null,
15
+ 'assisted_seller' : IDL.Null,
16
+ 'conveyancer_transparent' : IDL.Null,
17
+ 'buyer' : IDL.Null,
18
+ 'property_developer' : IDL.Null,
19
+ 'solicitor_managed' : IDL.Null,
20
+ 'assisted_buyer' : IDL.Null,
21
+ });
22
+ const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
23
+ const Permission = IDL.Variant({
24
+ 'ViewTransactionProgress' : IDL.Text,
25
+ 'ViewSharedTransaction' : IDL.Text,
26
+ 'ViewDevelopmentUnits' : IDL.Text,
27
+ 'ManageClientAccess' : IDL.Principal,
28
+ 'InvitePartyToTransaction' : IDL.Text,
29
+ 'AdminViewAllTransactions' : IDL.Null,
30
+ 'AdminManageUsers' : IDL.Null,
31
+ 'UpdateMemberDocuments' : IDL.Tuple(IDL.Text, IDL.Principal),
32
+ });
33
+ const Result_2 = 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
+ });
46
+ const GrantStatus = IDL.Variant({
47
+ 'active' : IDL.Null,
48
+ 'revoked' : IDL.Null,
49
+ 'preClaim' : IDL.Null,
50
+ });
51
+ const Time = IDL.Int;
52
+ const GrantSource = IDL.Variant({
53
+ 'authMdEmail' : IDL.Null,
54
+ 'authMdIdJag' : IDL.Null,
55
+ 'invite' : IDL.Null,
56
+ 'authMdAnonymous' : IDL.Null,
57
+ });
58
+ const GrantTier = IDL.Variant({
59
+ 'readOnly' : IDL.Null,
60
+ 'consequential' : IDL.Null,
61
+ });
62
+ const AgentGrant = IDL.Record({
63
+ 'status' : GrantStatus,
64
+ 'expiresAt' : IDL.Opt(Time),
65
+ 'source' : GrantSource,
66
+ 'ownerPrincipal' : IDL.Opt(IDL.Principal),
67
+ 'scopes' : IDL.Vec(IDL.Text),
68
+ 'tier' : GrantTier,
69
+ 'issuedAt' : Time,
70
+ 'lastElevatedAt' : IDL.Opt(Time),
71
+ 'agentPrincipal' : IDL.Principal,
72
+ });
73
+ const BotRole = IDL.Variant({
74
+ 'BotFirm' : IDL.Null,
75
+ 'BotInternal' : IDL.Null,
76
+ 'BotPersonal' : IDL.Null,
77
+ });
78
+ const BotAgent = IDL.Record({
79
+ 'ownerPrincipal' : IDL.Principal,
80
+ 'name' : IDL.Text,
81
+ 'createdAt' : Time,
82
+ 'role' : BotRole,
83
+ 'description' : IDL.Text,
84
+ 'isActive' : IDL.Bool,
85
+ 'callCount' : IDL.Nat,
86
+ 'lastActive' : Time,
87
+ 'botPrincipal' : IDL.Principal,
88
+ });
89
+ const UserRole = IDL.Variant({
90
+ 'admin' : IDL.Null,
91
+ 'solicitor' : IDL.Null,
92
+ 'seller' : IDL.Null,
93
+ 'guest' : IDL.Null,
94
+ 'buyer' : IDL.Null,
95
+ });
96
+ const UserProfile = IDL.Record({
97
+ 'isPlatformOnlySolicitor' : IDL.Bool,
98
+ 'userType' : UserType,
99
+ 'principal' : IDL.Principal,
100
+ 'managedBySolicitor' : IDL.Opt(IDL.Principal),
101
+ 'firmSRANumber' : IDL.Opt(IDL.Text),
102
+ 'emailVerified' : IDL.Bool,
103
+ 'name' : IDL.Text,
104
+ 'createdAt' : Time,
105
+ 'role' : IDL.Opt(UserRole),
106
+ 'businessGatewayUsername' : IDL.Opt(IDL.Text),
107
+ 'email' : IDL.Text,
108
+ 'lawFirmName' : IDL.Opt(IDL.Text),
109
+ 'isVerified' : IDL.Bool,
110
+ 'clientPrincipals' : IDL.Vec(IDL.Principal),
111
+ 'businessGatewayEnabled' : IDL.Bool,
112
+ 'emailVerificationSentAt' : IDL.Opt(Time),
113
+ 'emailVerificationToken' : IDL.Opt(IDL.Text),
114
+ 'conveyancerReference' : IDL.Opt(IDL.Text),
115
+ 'mobile' : IDL.Text,
116
+ 'solicitorLicenseNumber' : IDL.Opt(IDL.Text),
117
+ 'sraNumber' : IDL.Opt(IDL.Text),
118
+ 'lawFirmAddress' : IDL.Opt(IDL.Text),
119
+ });
120
+ const ActorType = IDL.Variant({
121
+ 'agent' : IDL.Null,
122
+ 'systemActor' : IDL.Null,
123
+ 'user' : IDL.Null,
124
+ });
125
+ const AuditLog = IDL.Record({
126
+ 'id' : IDL.Nat,
127
+ 'action' : IDL.Text,
128
+ 'actorType' : ActorType,
129
+ 'metadata' : IDL.Text,
130
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
131
+ 'targetPrincipal' : IDL.Opt(IDL.Principal),
132
+ 'timestamp' : Time,
133
+ 'success' : IDL.Bool,
134
+ 'actorPrincipal' : IDL.Principal,
135
+ 'transactionId' : IDL.Opt(IDL.Text),
136
+ });
137
+ const BotActionLog = IDL.Record({
138
+ 'id' : IDL.Nat,
139
+ 'action' : IDL.Text,
140
+ 'metadata' : IDL.Text,
141
+ 'timestamp' : Time,
142
+ 'success' : IDL.Bool,
143
+ 'botPrincipal' : IDL.Principal,
144
+ 'transactionId' : IDL.Opt(IDL.Text),
145
+ });
146
+ const SolicitorSubmissionDetails = IDL.Record({
147
+ 'firmSRANumber' : IDL.Opt(IDL.Text),
148
+ 'fullName' : IDL.Text,
149
+ 'firmName' : IDL.Text,
150
+ 'email' : IDL.Text,
151
+ 'businessGatewayEnabled' : IDL.Bool,
152
+ 'conveyancerReference' : IDL.Opt(IDL.Text),
153
+ 'sraNumber' : IDL.Text,
154
+ 'principalId' : IDL.Principal,
155
+ 'firmAddress' : IDL.Text,
156
+ });
157
+ const Result_5 = IDL.Variant({
158
+ 'ok' : SolicitorSubmissionDetails,
159
+ 'err' : IDL.Text,
160
+ });
161
+ const TransactionMember = IDL.Record({
162
+ 'uploadedDocuments' : IDL.Vec(IDL.Text),
163
+ 'principal' : IDL.Principal,
164
+ 'requiredDocuments' : IDL.Vec(IDL.Text),
165
+ 'joinedAt' : Time,
166
+ 'role' : UserType,
167
+ 'documentsComplete' : IDL.Bool,
168
+ 'canViewProgress' : IDL.Bool,
169
+ 'canInviteOthers' : IDL.Bool,
170
+ 'lastActivityAt' : Time,
171
+ 'transactionId' : IDL.Text,
172
+ });
173
+ const TransactionProgress = IDL.Record({
174
+ 'members' : IDL.Vec(TransactionMember),
175
+ 'completionPercentage' : IDL.Nat,
176
+ 'readyToExchange' : IDL.Bool,
177
+ 'membersComplete' : IDL.Nat,
178
+ 'totalMembers' : IDL.Nat,
179
+ 'blockingParties' : IDL.Vec(IDL.Principal),
180
+ 'transactionId' : IDL.Text,
181
+ });
182
+ const AdminRole = IDL.Variant({ 'regular' : IDL.Null, 'super' : IDL.Null });
183
+ const AdminRecord = IDL.Record({
184
+ 'principal' : IDL.Principal,
185
+ 'grantedAt' : Time,
186
+ 'grantedBy' : IDL.Principal,
187
+ 'note' : IDL.Opt(IDL.Text),
188
+ 'role' : AdminRole,
189
+ });
190
+ const AdminMutationResult = IDL.Variant({
191
+ 'ok' : AdminRecord,
192
+ 'err' : AdminMutationError,
193
+ });
194
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
195
+ const Result_4 = IDL.Variant({ 'ok' : AgentGrant, 'err' : IDL.Text });
196
+ const Result_3 = IDL.Variant({ 'ok' : BotAgent, 'err' : IDL.Text });
197
+ return IDL.Service({
198
+ 'addTransactionMember' : IDL.Func(
199
+ [IDL.Text, IDL.Principal, UserType, IDL.Bool, IDL.Bool, IDL.Text],
200
+ [IDL.Bool],
201
+ [],
202
+ ),
203
+ 'adminLinkPrincipals' : IDL.Func(
204
+ [IDL.Principal, IDL.Principal],
205
+ [Result],
206
+ [],
207
+ ),
208
+ 'amIAdmin' : IDL.Func([], [IDL.Bool], ['query']),
209
+ 'bootstrapAdmin' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
210
+ 'canUserAccessTransaction' : IDL.Func(
211
+ [IDL.Principal, IDL.Text],
212
+ [IDL.Bool],
213
+ ['query'],
214
+ ),
215
+ 'checkPermissionWithAudit' : IDL.Func([Permission], [IDL.Bool], []),
216
+ 'claimLinkCode' : IDL.Func([IDL.Text], [Result], []),
217
+ 'createUserForPrincipal' : IDL.Func(
218
+ [IDL.Principal, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
219
+ [IDL.Bool],
220
+ [],
221
+ ),
222
+ 'deactivateBot' : IDL.Func([IDL.Principal], [Result_2], []),
223
+ 'deleteUserByPrincipal' : IDL.Func(
224
+ [IDL.Principal, IDL.Text],
225
+ [IDL.Bool],
226
+ [],
227
+ ),
228
+ 'demoteAdmin' : IDL.Func(
229
+ [IDL.Principal, IDL.Text],
230
+ [AdminMutationResult_1],
231
+ [],
232
+ ),
233
+ 'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
234
+ 'generateLinkCode' : IDL.Func([], [Result], []),
235
+ 'getAgentGrant' : IDL.Func(
236
+ [IDL.Principal],
237
+ [IDL.Opt(AgentGrant)],
238
+ ['query'],
239
+ ),
240
+ 'getAllBots' : IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
241
+ 'getAllUsers' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
242
+ 'getAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
243
+ 'getBotActionLogs' : IDL.Func(
244
+ [IDL.Principal, IDL.Nat],
245
+ [IDL.Vec(BotActionLog)],
246
+ ['query'],
247
+ ),
248
+ 'getBotAgent' : IDL.Func([IDL.Principal], [IDL.Opt(BotAgent)], ['query']),
249
+ 'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
250
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
251
+ 'getGrantIssuer' : IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
252
+ 'getLinkedPrincipals' : IDL.Func(
253
+ [IDL.Principal],
254
+ [IDL.Vec(IDL.Principal)],
255
+ ['query'],
256
+ ),
257
+ 'getMemberRoleInTransaction' : IDL.Func(
258
+ [IDL.Principal, IDL.Text],
259
+ [IDL.Opt(UserType)],
260
+ ['query'],
261
+ ),
262
+ 'getMyAgentGrants' : IDL.Func([], [IDL.Vec(AgentGrant)], ['query']),
263
+ 'getMyBots' : IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
264
+ 'getMyLinkedPrincipals' : IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
265
+ 'getMyManagingSolicitor' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
266
+ 'getMyProfile' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
267
+ 'getMyProfileUpdate' : IDL.Func([], [IDL.Opt(UserProfile)], []),
268
+ 'getMySolicitorClients' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
269
+ 'getSolicitorSubmissionDetails' : IDL.Func(
270
+ [IDL.Principal],
271
+ [Result_5],
272
+ ['query'],
273
+ ),
274
+ 'getTransactionMembers' : IDL.Func(
275
+ [IDL.Text],
276
+ [IDL.Opt(IDL.Vec(TransactionMember))],
277
+ ['query'],
278
+ ),
279
+ 'getTransactionProgress' : IDL.Func(
280
+ [IDL.Text],
281
+ [IDL.Opt(TransactionProgress)],
282
+ ['query'],
283
+ ),
284
+ 'getUserProfile' : IDL.Func(
285
+ [IDL.Principal],
286
+ [IDL.Opt(UserProfile)],
287
+ ['query'],
288
+ ),
289
+ 'getUserProfileByPrincipal' : IDL.Func(
290
+ [IDL.Principal],
291
+ [IDL.Opt(UserProfile)],
292
+ ['query'],
293
+ ),
294
+ 'hasPermission' : IDL.Func([Permission], [IDL.Bool], ['query']),
295
+ 'linkSolicitorToClient' : IDL.Func(
296
+ [IDL.Principal, IDL.Bool, IDL.Text],
297
+ [IDL.Bool],
298
+ [],
299
+ ),
300
+ 'listAdmins' : IDL.Func([], [IDL.Vec(AdminRecord)], ['query']),
301
+ 'logBotAction' : IDL.Func(
302
+ [IDL.Principal, IDL.Text, IDL.Opt(IDL.Text), IDL.Bool, IDL.Text],
303
+ [Result_2],
304
+ [],
305
+ ),
306
+ 'myAdminRole' : IDL.Func([], [IDL.Opt(AdminRole)], ['query']),
307
+ 'promoteAdmin' : IDL.Func(
308
+ [IDL.Principal, AdminRole, IDL.Opt(IDL.Text), IDL.Text],
309
+ [AdminMutationResult],
310
+ [],
311
+ ),
312
+ 'reactivateBot' : IDL.Func([IDL.Principal], [Result_2], []),
313
+ 'recordAuditEntry' : IDL.Func(
314
+ [
315
+ ActorType,
316
+ IDL.Opt(IDL.Principal),
317
+ IDL.Text,
318
+ IDL.Opt(IDL.Principal),
319
+ IDL.Opt(IDL.Text),
320
+ IDL.Bool,
321
+ IDL.Text,
322
+ ],
323
+ [Result_1],
324
+ [],
325
+ ),
326
+ 'recordGrantElevation' : IDL.Func(
327
+ [
328
+ IDL.Principal,
329
+ IDL.Principal,
330
+ GrantTier,
331
+ IDL.Vec(IDL.Text),
332
+ GrantSource,
333
+ IDL.Opt(Time),
334
+ ],
335
+ [Result_4],
336
+ [],
337
+ ),
338
+ 'recordGrantIssued' : IDL.Func(
339
+ [
340
+ IDL.Principal,
341
+ IDL.Opt(IDL.Principal),
342
+ GrantTier,
343
+ IDL.Vec(IDL.Text),
344
+ GrantStatus,
345
+ GrantSource,
346
+ IDL.Opt(Time),
347
+ ],
348
+ [Result_4],
349
+ [],
350
+ ),
351
+ 'recordGrantRevocation' : IDL.Func(
352
+ [IDL.Principal, IDL.Text],
353
+ [Result_2],
354
+ [],
355
+ ),
356
+ 'registerBot' : IDL.Func(
357
+ [IDL.Principal, IDL.Text, IDL.Text, BotRole],
358
+ [Result_3],
359
+ [],
360
+ ),
361
+ 'registerUser' : IDL.Func(
362
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Text],
363
+ [IDL.Bool],
364
+ [],
365
+ ),
366
+ 'registerUserV2' : IDL.Func(
367
+ [
368
+ IDL.Text,
369
+ IDL.Text,
370
+ IDL.Text,
371
+ UserType,
372
+ IDL.Opt(IDL.Text),
373
+ IDL.Opt(IDL.Text),
374
+ IDL.Opt(IDL.Text),
375
+ IDL.Opt(IDL.Text),
376
+ IDL.Text,
377
+ ],
378
+ [IDL.Bool],
379
+ [],
380
+ ),
381
+ 'repairTransactionMemberRole' : IDL.Func(
382
+ [IDL.Text, IDL.Principal, UserType],
383
+ [IDL.Bool],
384
+ [],
385
+ ),
386
+ 'resendVerificationEmail' : IDL.Func([IDL.Text], [IDL.Bool], []),
387
+ 'revokeSolicitorAccess' : IDL.Func(
388
+ [IDL.Principal, IDL.Text],
389
+ [IDL.Bool],
390
+ [],
391
+ ),
392
+ 'setGrantIssuer' : IDL.Func([IDL.Principal], [Result_2], []),
393
+ 'sweepStaleGrants' : IDL.Func([], [Result_1], []),
394
+ 'unlinkPrincipal' : IDL.Func([IDL.Principal], [Result], []),
395
+ 'updateMemberDocuments' : IDL.Func(
396
+ [IDL.Text, IDL.Text, IDL.Text],
397
+ [IDL.Bool],
398
+ [],
399
+ ),
400
+ 'updateSolicitorLRDetails' : IDL.Func(
401
+ [
402
+ IDL.Opt(IDL.Text),
403
+ IDL.Bool,
404
+ IDL.Opt(IDL.Text),
405
+ IDL.Opt(IDL.Text),
406
+ IDL.Opt(IDL.Text),
407
+ ],
408
+ [Result],
409
+ [],
410
+ ),
411
+ 'updateTransactionMemberRequiredDocs' : IDL.Func(
412
+ [IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
413
+ [IDL.Bool],
414
+ [],
415
+ ),
416
+ 'validateAdmin' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
417
+ 'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
418
+ 'verifyEmail' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
419
+ 'verifyUser' : IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
420
+ 'whoAmI' : IDL.Func([], [IDL.Principal], ['query']),
421
+ });
255
422
  };
256
423
  export const init = ({ IDL }) => { return []; };
257
- //# sourceMappingURL=user_management.did.js.map