@propxchain/core-client 0.2.1-canary.21 → 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.
@@ -1,352 +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 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 []; };
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 []; };