@propxchain/core-client 0.2.1-canary.19 → 0.2.1-canary.21

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 -22
  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 +159 -89
  21. package/src/canisters/document_storage/document_storage.did.d.ts +159 -82
  22. package/src/canisters/document_storage/document_storage.did.js +230 -121
  23. package/src/canisters/document_verification/document_verification.did +248 -98
  24. package/src/canisters/document_verification/document_verification.did.d.ts +236 -112
  25. package/src/canisters/document_verification/document_verification.did.js +299 -139
  26. package/src/canisters/email_service/email_service.did +86 -37
  27. package/src/canisters/email_service/email_service.did.d.ts +92 -45
  28. package/src/canisters/email_service/email_service.did.js +131 -63
  29. package/src/canisters/land_registry_integration/land_registry_integration.did +395 -169
  30. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +331 -157
  31. package/src/canisters/land_registry_integration/land_registry_integration.did.js +384 -182
  32. package/src/canisters/ledger_manager/ledger_manager.did +232 -161
  33. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +205 -142
  34. package/src/canisters/ledger_manager/ledger_manager.did.js +256 -187
  35. package/src/canisters/property_registry/property_registry.did.d.ts +71 -71
  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 +297 -197
  39. package/src/canisters/user_management/user_management.did.d.ts +267 -193
  40. package/src/canisters/user_management/user_management.did.js +352 -243
@@ -1,243 +1,352 @@
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 Permission = IDL.Variant({
23
- 'ViewTransactionProgress' : IDL.Text,
24
- 'ViewSharedTransaction' : IDL.Text,
25
- 'ViewDevelopmentUnits' : IDL.Text,
26
- 'ManageClientAccess' : IDL.Principal,
27
- 'InvitePartyToTransaction' : IDL.Text,
28
- 'AdminViewAllTransactions' : IDL.Null,
29
- 'AdminManageUsers' : IDL.Null,
30
- 'UpdateMemberDocuments' : IDL.Tuple(IDL.Text, IDL.Principal),
31
- });
32
- const Time = IDL.Int;
33
- const UserRole = IDL.Variant({
34
- 'admin' : IDL.Null,
35
- 'solicitor' : IDL.Null,
36
- 'seller' : IDL.Null,
37
- 'guest' : IDL.Null,
38
- 'buyer' : IDL.Null,
39
- });
40
- const UserProfile = IDL.Record({
41
- 'isPlatformOnlySolicitor' : IDL.Bool,
42
- 'userType' : UserType,
43
- 'principal' : IDL.Principal,
44
- 'managedBySolicitor' : IDL.Opt(IDL.Principal),
45
- 'emailVerified' : IDL.Bool,
46
- 'name' : IDL.Text,
47
- 'createdAt' : Time,
48
- 'role' : IDL.Opt(UserRole),
49
- 'email' : IDL.Text,
50
- 'lawFirmName' : IDL.Opt(IDL.Text),
51
- 'isVerified' : IDL.Bool,
52
- 'clientPrincipals' : IDL.Vec(IDL.Principal),
53
- 'emailVerificationSentAt' : IDL.Opt(Time),
54
- 'emailVerificationToken' : IDL.Opt(IDL.Text),
55
- 'mobile' : IDL.Text,
56
- 'solicitorLicenseNumber' : IDL.Opt(IDL.Text),
57
- 'lawFirmAddress' : IDL.Opt(IDL.Text),
58
- });
59
- const ActorType = IDL.Variant({
60
- 'user' : IDL.Null,
61
- 'agent' : IDL.Null,
62
- 'systemActor' : IDL.Null,
63
- });
64
- const AuditLog = IDL.Record({
65
- 'id' : IDL.Nat,
66
- 'action' : IDL.Text,
67
- 'metadata' : IDL.Text,
68
- 'targetPrincipal' : IDL.Opt(IDL.Principal),
69
- 'timestamp' : Time,
70
- 'success' : IDL.Bool,
71
- 'actorPrincipal' : IDL.Principal,
72
- 'actorType' : ActorType,
73
- 'delegatedBy' : IDL.Opt(IDL.Principal),
74
- 'transactionId' : IDL.Opt(IDL.Text),
75
- });
76
- const TransactionMember = IDL.Record({
77
- 'uploadedDocuments' : IDL.Vec(IDL.Text),
78
- 'principal' : IDL.Principal,
79
- 'requiredDocuments' : IDL.Vec(IDL.Text),
80
- 'joinedAt' : Time,
81
- 'role' : UserType,
82
- 'documentsComplete' : IDL.Bool,
83
- 'canViewProgress' : IDL.Bool,
84
- 'canInviteOthers' : IDL.Bool,
85
- 'lastActivityAt' : Time,
86
- 'transactionId' : IDL.Text,
87
- });
88
- const TransactionProgress = IDL.Record({
89
- 'members' : IDL.Vec(TransactionMember),
90
- 'completionPercentage' : IDL.Nat,
91
- 'readyToExchange' : IDL.Bool,
92
- 'membersComplete' : IDL.Nat,
93
- 'totalMembers' : IDL.Nat,
94
- 'blockingParties' : IDL.Vec(IDL.Principal),
95
- 'transactionId' : IDL.Text,
96
- });
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
- });
109
- const AdminRecord = IDL.Record({
110
- 'principal' : IDL.Principal,
111
- 'note' : IDL.Opt(IDL.Text),
112
- 'role' : AdminRole,
113
- 'grantedAt' : Time,
114
- 'grantedBy' : IDL.Principal,
115
- });
116
- return IDL.Service({
117
- 'addTransactionMember' : IDL.Func(
118
- [IDL.Text, IDL.Principal, UserType, IDL.Bool, IDL.Bool, IDL.Text],
119
- [IDL.Bool],
120
- [],
121
- ),
122
- 'amIAdmin' : IDL.Func([], [IDL.Bool], ['query']),
123
- 'bootstrapAdmin' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
124
- 'canUserAccessTransaction' : IDL.Func(
125
- [IDL.Principal, IDL.Text],
126
- [IDL.Bool],
127
- ['query'],
128
- ),
129
- 'checkPermissionWithAudit' : IDL.Func([Permission], [IDL.Bool], []),
130
- 'createUserForPrincipal' : IDL.Func(
131
- [IDL.Principal, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
132
- [IDL.Bool],
133
- [],
134
- ),
135
- 'deleteUserByPrincipal' : IDL.Func(
136
- [IDL.Principal, IDL.Text],
137
- [IDL.Bool],
138
- [],
139
- ),
140
- 'demoteAdmin' : IDL.Func(
141
- [IDL.Principal, IDL.Text],
142
- [IDL.Variant({ 'ok' : IDL.Null, 'err' : AdminMutationError })],
143
- [],
144
- ),
145
- 'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
146
- 'getAllUsers' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
147
- 'getAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
148
- 'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
149
- 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
150
- 'getMyManagingSolicitor' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
151
- 'getMyProfile' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
152
- 'getMyProfileUpdate' : IDL.Func([], [IDL.Opt(UserProfile)], []),
153
- 'getMySolicitorClients' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
154
- 'getTransactionMembers' : IDL.Func(
155
- [IDL.Text],
156
- [IDL.Opt(IDL.Vec(TransactionMember))],
157
- ['query'],
158
- ),
159
- 'getTransactionProgress' : IDL.Func(
160
- [IDL.Text],
161
- [IDL.Opt(TransactionProgress)],
162
- ['query'],
163
- ),
164
- 'getUserProfile' : IDL.Func(
165
- [IDL.Principal],
166
- [IDL.Opt(UserProfile)],
167
- ['query'],
168
- ),
169
- 'hasPermission' : IDL.Func([Permission], [IDL.Bool], ['query']),
170
- 'initializeKnownAdmin' : IDL.Func(
171
- [IDL.Text, IDL.Text, IDL.Text],
172
- [IDL.Bool],
173
- [],
174
- ),
175
- 'linkSolicitorToClient' : IDL.Func(
176
- [IDL.Principal, IDL.Bool, IDL.Text],
177
- [IDL.Bool],
178
- [],
179
- ),
180
- 'listAdmins' : IDL.Func([], [IDL.Vec(AdminRecord)], ['query']),
181
- 'myAdminRole' : IDL.Func([], [IDL.Opt(AdminRole)], ['query']),
182
- 'promoteAdmin' : IDL.Func(
183
- [IDL.Principal, AdminRole, IDL.Opt(IDL.Text), IDL.Text],
184
- [IDL.Variant({ 'ok' : AdminRecord, 'err' : AdminMutationError })],
185
- [],
186
- ),
187
- 'recordAuditEntry' : IDL.Func(
188
- [
189
- ActorType,
190
- IDL.Opt(IDL.Principal),
191
- IDL.Text,
192
- IDL.Opt(IDL.Principal),
193
- IDL.Opt(IDL.Text),
194
- IDL.Bool,
195
- IDL.Text,
196
- ],
197
- [IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text })],
198
- [],
199
- ),
200
- 'registerUser' : IDL.Func(
201
- [IDL.Text, IDL.Text, IDL.Text, IDL.Text],
202
- [IDL.Bool],
203
- [],
204
- ),
205
- 'registerUserV2' : IDL.Func(
206
- [
207
- IDL.Text,
208
- IDL.Text,
209
- IDL.Text,
210
- UserType,
211
- IDL.Opt(IDL.Text),
212
- IDL.Opt(IDL.Text),
213
- IDL.Opt(IDL.Text),
214
- IDL.Text,
215
- ],
216
- [IDL.Bool],
217
- [],
218
- ),
219
- 'resendVerificationEmail' : IDL.Func([IDL.Text], [IDL.Bool], []),
220
- 'revokeSolicitorAccess' : IDL.Func(
221
- [IDL.Principal, IDL.Text],
222
- [IDL.Bool],
223
- [],
224
- ),
225
- 'updateMemberDocuments' : IDL.Func(
226
- [IDL.Text, IDL.Text, IDL.Text],
227
- [IDL.Bool],
228
- [],
229
- ),
230
- 'updateTransactionMemberRequiredDocs' : IDL.Func(
231
- [IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
232
- [IDL.Bool],
233
- [],
234
- ),
235
- 'upgradeToAdmin' : IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
236
- 'validateAdmin' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
237
- 'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
238
- 'verifyEmail' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
239
- 'verifyUser' : IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
240
- 'whoAmI' : IDL.Func([], [IDL.Principal], ['query']),
241
- });
242
- };
243
- export const init = ({ IDL }) => { return []; };
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(
176
+ [IDL.Text, IDL.Principal, UserType, IDL.Bool, IDL.Bool, IDL.Text],
177
+ [IDL.Bool],
178
+ [],
179
+ ),
180
+ 'adminLinkPrincipals' : IDL.Func(
181
+ [IDL.Principal, IDL.Principal],
182
+ [Result_1],
183
+ [],
184
+ ),
185
+ 'amIAdmin' : IDL.Func([], [IDL.Bool], ['query']),
186
+ 'bootstrapAdmin' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
187
+ 'canUserAccessTransaction' : IDL.Func(
188
+ [IDL.Principal, IDL.Text],
189
+ [IDL.Bool],
190
+ ['query'],
191
+ ),
192
+ 'checkPermissionWithAudit' : IDL.Func([Permission], [IDL.Bool], []),
193
+ 'claimLinkCode' : IDL.Func([IDL.Text], [Result_1], []),
194
+ 'createUserForPrincipal' : IDL.Func(
195
+ [IDL.Principal, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
196
+ [IDL.Bool],
197
+ [],
198
+ ),
199
+ 'deactivateBot' : IDL.Func([IDL.Principal], [Result_4], []),
200
+ 'deleteUserByPrincipal' : IDL.Func(
201
+ [IDL.Principal, IDL.Text],
202
+ [IDL.Bool],
203
+ [],
204
+ ),
205
+ 'demoteAdmin' : IDL.Func(
206
+ [IDL.Principal, IDL.Text],
207
+ [AdminMutationResult_1],
208
+ [],
209
+ ),
210
+ 'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
211
+ 'generateLinkCode' : IDL.Func([], [Result_1], []),
212
+ 'getAllBots' : IDL.Func([], [IDL.Vec(BotAgent)], ['query']),
213
+ 'getAllUsers' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
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']),
221
+ 'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
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']),
230
+ 'getMyManagingSolicitor' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
231
+ 'getMyProfile' : IDL.Func([], [IDL.Opt(UserProfile)], ['query']),
232
+ 'getMyProfileUpdate' : IDL.Func([], [IDL.Opt(UserProfile)], []),
233
+ 'getMySolicitorClients' : IDL.Func([], [IDL.Vec(UserProfile)], ['query']),
234
+ 'getSolicitorSubmissionDetails' : IDL.Func(
235
+ [IDL.Principal],
236
+ [Result_5],
237
+ ['query'],
238
+ ),
239
+ 'getTransactionMembers' : IDL.Func(
240
+ [IDL.Text],
241
+ [IDL.Opt(IDL.Vec(TransactionMember))],
242
+ ['query'],
243
+ ),
244
+ 'getTransactionProgress' : IDL.Func(
245
+ [IDL.Text],
246
+ [IDL.Opt(TransactionProgress)],
247
+ ['query'],
248
+ ),
249
+ 'getUserProfile' : IDL.Func(
250
+ [IDL.Principal],
251
+ [IDL.Opt(UserProfile)],
252
+ ['query'],
253
+ ),
254
+ 'getUserProfileByPrincipal' : IDL.Func(
255
+ [IDL.Principal],
256
+ [IDL.Opt(UserProfile)],
257
+ ['query'],
258
+ ),
259
+ 'hasPermission' : IDL.Func([Permission], [IDL.Bool], ['query']),
260
+ 'linkSolicitorToClient' : IDL.Func(
261
+ [IDL.Principal, IDL.Bool, IDL.Text],
262
+ [IDL.Bool],
263
+ [],
264
+ ),
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
+ ),
271
+ 'myAdminRole' : IDL.Func([], [IDL.Opt(AdminRole)], ['query']),
272
+ 'promoteAdmin' : IDL.Func(
273
+ [IDL.Principal, AdminRole, IDL.Opt(IDL.Text), IDL.Text],
274
+ [AdminMutationResult],
275
+ [],
276
+ ),
277
+ 'reactivateBot' : IDL.Func([IDL.Principal], [Result_4], []),
278
+ 'recordAuditEntry' : IDL.Func(
279
+ [
280
+ ActorType,
281
+ IDL.Opt(IDL.Principal),
282
+ IDL.Text,
283
+ IDL.Opt(IDL.Principal),
284
+ IDL.Opt(IDL.Text),
285
+ IDL.Bool,
286
+ IDL.Text,
287
+ ],
288
+ [Result_3],
289
+ [],
290
+ ),
291
+ 'registerBot' : IDL.Func(
292
+ [IDL.Principal, IDL.Text, IDL.Text, BotRole],
293
+ [Result_2],
294
+ [],
295
+ ),
296
+ 'registerUser' : IDL.Func(
297
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Text],
298
+ [IDL.Bool],
299
+ [],
300
+ ),
301
+ 'registerUserV2' : IDL.Func(
302
+ [
303
+ IDL.Text,
304
+ IDL.Text,
305
+ IDL.Text,
306
+ UserType,
307
+ IDL.Opt(IDL.Text),
308
+ IDL.Opt(IDL.Text),
309
+ IDL.Opt(IDL.Text),
310
+ IDL.Opt(IDL.Text),
311
+ IDL.Text,
312
+ ],
313
+ [IDL.Bool],
314
+ [],
315
+ ),
316
+ 'resendVerificationEmail' : IDL.Func([IDL.Text], [IDL.Bool], []),
317
+ 'revokeSolicitorAccess' : IDL.Func(
318
+ [IDL.Principal, IDL.Text],
319
+ [IDL.Bool],
320
+ [],
321
+ ),
322
+ 'unlinkPrincipal' : IDL.Func([IDL.Principal], [Result_1], []),
323
+ 'updateMemberDocuments' : IDL.Func(
324
+ [IDL.Text, IDL.Text, IDL.Text],
325
+ [IDL.Bool],
326
+ [],
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
+ ),
339
+ 'updateTransactionMemberRequiredDocs' : IDL.Func(
340
+ [IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
341
+ [IDL.Bool],
342
+ [],
343
+ ),
344
+ 'validateAdmin' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
345
+ 'validateBot' : IDL.Func([IDL.Principal], [Result], ['query']),
346
+ 'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
347
+ 'verifyEmail' : IDL.Func([IDL.Text, IDL.Text], [IDL.Bool], []),
348
+ 'verifyUser' : IDL.Func([IDL.Principal, IDL.Text], [IDL.Bool], []),
349
+ 'whoAmI' : IDL.Func([], [IDL.Principal], ['query']),
350
+ });
351
+ };
352
+ export const init = ({ IDL }) => { return []; };