@propxchain/core-client 0.3.0-canary.35 → 0.3.0-canary.36

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 (33) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +159 -7
  2. package/dist/canisters/document_storage/document_storage.did.js +227 -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 +380 -315
  9. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +214 -7
  10. package/dist/canisters/ledger_manager/ledger_manager.did.js +265 -198
  11. package/dist/canisters/property_registry/property_registry.did.d.ts +73 -7
  12. package/dist/canisters/property_registry/property_registry.did.js +76 -57
  13. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +912 -7
  14. package/dist/canisters/transaction_manager/transaction_manager.did.js +1004 -869
  15. package/dist/canisters/user_management/user_management.did.d.ts +267 -7
  16. package/dist/canisters/user_management/user_management.did.js +349 -254
  17. package/package.json +2 -2
  18. package/dist/canisters/document_storage/document_storage.did.d.ts.map +0 -1
  19. package/dist/canisters/document_storage/document_storage.did.js.map +0 -1
  20. package/dist/canisters/document_verification/document_verification.did.d.ts.map +0 -1
  21. package/dist/canisters/document_verification/document_verification.did.js.map +0 -1
  22. package/dist/canisters/email_service/email_service.did.d.ts.map +0 -1
  23. package/dist/canisters/email_service/email_service.did.js.map +0 -1
  24. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +0 -1
  25. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +0 -1
  26. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +0 -1
  27. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +0 -1
  28. package/dist/canisters/property_registry/property_registry.did.d.ts.map +0 -1
  29. package/dist/canisters/property_registry/property_registry.did.js.map +0 -1
  30. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +0 -1
  31. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +0 -1
  32. package/dist/canisters/user_management/user_management.did.d.ts.map +0 -1
  33. package/dist/canisters/user_management/user_management.did.js.map +0 -1
@@ -1,257 +1,352 @@
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_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
+ });
255
351
  };
256
352
  export const init = ({ IDL }) => { return []; };
257
- //# sourceMappingURL=user_management.did.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propxchain/core-client",
3
- "version": "0.3.0-canary.35",
3
+ "version": "0.3.0-canary.36",
4
4
  "description": "Typed TypeScript client for the PropXchain core canisters on the Internet Computer. Includes a deterministic mock mode for local development and tests.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "scripts": {
32
- "build": "tsc -p tsconfig.json",
32
+ "build": "tsc -p tsconfig.json && node scripts/copy-candid-artifacts.mjs",
33
33
  "clean": "rm -rf dist",
34
34
  "test": "node --import tsx --test tests/*.test.ts",
35
35
  "typecheck": "tsc -p tsconfig.json --noEmit"
@@ -1 +0,0 @@
1
- {"version":3,"file":"document_storage.did.d.ts","sourceRoot":"","sources":["../../../src/canisters/document_storage/document_storage.did.js"],"names":[],"mappings":"AAAO;;QAoON;AACM;;YAAwC"}