@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,98 +1,248 @@
1
- type VerificationMethod =
2
- variant {
3
- commercial_api: text;
4
- dvla_api;
5
- manual_solicitor;
6
- passport_dcs;
7
- system_hash_only;
8
- };
9
- type Time = int;
10
- type Result =
11
- variant {
12
- err: text;
13
- ok: DocumentVerification;
14
- };
15
- type DocumentVerification =
16
- record {
17
- calculatedHash: text;
18
- documentId: nat;
19
- documentType: text;
20
- expectedHash: text;
21
- expiresAt: opt Time;
22
- failureReason: opt text;
23
- hashVerified: bool;
24
- id: nat;
25
- isValid: bool;
26
- notes: opt text;
27
- propertyId: nat;
28
- verificationDate: Time;
29
- verificationMethod: VerificationMethod;
30
- verifiedBy: principal;
31
- };
32
- type DocumentMetadata =
33
- record {
34
- contentType: opt text;
35
- documentHash: text;
36
- documentType: text;
37
- fileName: opt text;
38
- fileSize: opt nat;
39
- id: nat;
40
- isVerified: bool;
41
- lastVerificationId: opt nat;
42
- propertyId: nat;
43
- storageDocumentId: opt nat;
44
- transactionId: opt nat;
45
- uploadedAt: Time;
46
- uploadedBy: principal;
47
- };
48
- type AuditLog =
49
- record {
50
- action: text;
51
- details: text;
52
- documentId: nat;
53
- id: nat;
54
- performedBy: principal;
55
- success: bool;
56
- timestamp: Time;
57
- };
58
- service : {
59
- deleteDocument: (documentId: nat) -> (variant {
60
- err: text;
61
- ok;
62
- });
63
- getAuditLogs: () -> (vec AuditLog) query;
64
- getConfiguration: () ->
65
- (record {
66
- documentStorage: opt principal;
67
- userManagement: opt principal;
68
- }) query;
69
- getCycles: () -> (nat) query;
70
- getDocument: (id: nat) -> (opt DocumentMetadata) query;
71
- getDocumentVerifications: (documentId: nat) ->
72
- (vec DocumentVerification) query;
73
- getPropertyDocuments: (propertyId: nat) -> (vec DocumentMetadata) query;
74
- getRecentAuditLogs: (limit: nat) -> (vec AuditLog) query;
75
- getStats: () ->
76
- (record {
77
- totalAuditLogs: nat;
78
- totalDocuments: nat;
79
- totalVerifications: nat;
80
- verifiedDocuments: nat;
81
- }) query;
82
- getUnverifiedDocuments: (propertyId: nat) -> (vec DocumentMetadata) query;
83
- getVerification: (verificationId: nat) -> (opt DocumentVerification) query;
84
- getVerificationsByVerifier: (verifier: principal) ->
85
- (vec DocumentVerification) query;
86
- registerDocument: (propertyId: nat, transactionId: opt nat, documentType:
87
- text, documentHash: text, storageDocumentId: opt nat, fileName: opt text,
88
- fileSize: opt nat, contentType: opt text) -> (nat);
89
- setDocumentStorageCanister: (canisterId: principal) -> ();
90
- setUserManagementCanister: (canisterId: principal) -> ();
91
- verifyDocument: (documentId: nat) -> (bool);
92
- verifyDocumentWithHash: (documentId: nat, notes: opt text) -> (Result);
93
- verifyWithCommercialAPI: (_documentId: nat, _apiProvider: text,
94
- _verificationData: text) -> (Result);
95
- verifyWithDVLA: (_documentId: nat, _drivingLicenseNumber: text) -> (Result);
96
- verifyWithPassportDCS: (_documentId: nat, _passportNumber: text) ->
97
- (Result);
98
- }
1
+ type VerificationMethod =
2
+ variant {
3
+ commercial_api: text;
4
+ dvla_api;
5
+ manual_solicitor;
6
+ oscar_ai: OscarVerificationDetails;
7
+ passport_dcs;
8
+ system_hash_only;
9
+ };
10
+ type TransactionVerificationSummary =
11
+ record {
12
+ allDocumentsVerified: bool;
13
+ allLRDocumentsCurrent: bool;
14
+ daysUntilSearchExpiry: opt int;
15
+ expiredDocuments: nat;
16
+ hasOfficialSearch: bool;
17
+ lrDocuments: vec LRDocumentSummary;
18
+ missingDocuments: vec text;
19
+ officialSearchExpiry: opt int;
20
+ officialSearchValid: bool;
21
+ readyForCompletion: bool;
22
+ readyForExchange: bool;
23
+ readyForSubmission: bool;
24
+ titleNumber: text;
25
+ totalDocuments: nat;
26
+ transactionId: text;
27
+ unverifiedDocuments: nat;
28
+ verifiedDocuments: nat;
29
+ };
30
+ type Time = int;
31
+ type Result_4 =
32
+ variant {
33
+ err: text;
34
+ ok: TransactionVerificationSummary;
35
+ };
36
+ type Result_3 =
37
+ variant {
38
+ err: text;
39
+ ok: nat;
40
+ };
41
+ type Result_2 =
42
+ variant {
43
+ err: text;
44
+ ok: OfficialCopyVerification;
45
+ };
46
+ type Result_1 =
47
+ variant {
48
+ err: text;
49
+ ok: OSCertificateVerification;
50
+ };
51
+ type Result =
52
+ variant {
53
+ err: text;
54
+ ok: DocumentVerification;
55
+ };
56
+ type PriorityStatus =
57
+ variant {
58
+ Active;
59
+ Expired;
60
+ ExpiringImminently;
61
+ Unknown;
62
+ };
63
+ type OscarVerificationInput =
64
+ record {
65
+ confidence: nat;
66
+ documentType: text;
67
+ extractedData: text;
68
+ issues: vec OscarIssue;
69
+ mismatches: vec DataMismatch;
70
+ requiresSolicitorReview: bool;
71
+ };
72
+ type OscarVerificationDetails =
73
+ record {
74
+ analysisTimestamp: Time;
75
+ confidence: nat;
76
+ documentType: text;
77
+ extractedData: text;
78
+ issues: vec OscarIssue;
79
+ mismatches: vec DataMismatch;
80
+ requiresSolicitorReview: bool;
81
+ };
82
+ type OscarIssue =
83
+ record {
84
+ code: text;
85
+ field: opt text;
86
+ message: text;
87
+ severity: variant {
88
+ error;
89
+ info;
90
+ warning;
91
+ };
92
+ };
93
+ type OfficialCopyVerification =
94
+ record {
95
+ copyType: LRDocumentType;
96
+ documentAge: nat;
97
+ hashVerified: bool;
98
+ isCurrent: bool;
99
+ issuedAt: int;
100
+ titleNumberMatches: bool;
101
+ verifiedAt: int;
102
+ verifiedBy: principal;
103
+ };
104
+ type OSCertificateVerification =
105
+ record {
106
+ advisoryEntries: vec text;
107
+ daysRemaining: opt int;
108
+ hashVerified: bool;
109
+ priorityExpiry: opt int;
110
+ priorityStatus: PriorityStatus;
111
+ registerChangedFlag: opt bool;
112
+ titleNumberMatches: bool;
113
+ verifiedAt: int;
114
+ verifiedBy: principal;
115
+ };
116
+ type LRDocumentType =
117
+ variant {
118
+ AP1Acknowledgement;
119
+ CompletionConfirmation;
120
+ LandChargesSearchK16;
121
+ LocalAuthoritySearch;
122
+ OfficialCopyRegister;
123
+ OfficialCopyTitlePlan;
124
+ OfficialSearchCertificate;
125
+ RegisterExtract;
126
+ RequisitionNotice;
127
+ SearchOfPartCertificate;
128
+ };
129
+ type LRDocumentSummary =
130
+ record {
131
+ documentType: LRDocumentType;
132
+ isCurrent: bool;
133
+ isVerified: bool;
134
+ landRegistryReference: opt text;
135
+ validUntil: opt int;
136
+ };
137
+ type DocumentVerification =
138
+ record {
139
+ calculatedHash: text;
140
+ documentId: nat;
141
+ documentType: text;
142
+ expectedHash: text;
143
+ expiresAt: opt Time;
144
+ failureReason: opt text;
145
+ hashVerified: bool;
146
+ id: nat;
147
+ isValid: bool;
148
+ notes: opt text;
149
+ propertyId: nat;
150
+ verificationDate: Time;
151
+ verificationMethod: VerificationMethod;
152
+ verifiedBy: principal;
153
+ };
154
+ type DocumentMetadata =
155
+ record {
156
+ contentType: opt text;
157
+ documentHash: text;
158
+ documentType: text;
159
+ fileName: opt text;
160
+ fileSize: opt nat;
161
+ id: nat;
162
+ isVerified: bool;
163
+ lastVerificationId: opt nat;
164
+ propertyId: nat;
165
+ storageDocumentId: opt nat;
166
+ transactionId: opt nat;
167
+ uploadedAt: Time;
168
+ uploadedBy: principal;
169
+ };
170
+ type DataMismatch =
171
+ record {
172
+ expected: text;
173
+ field: text;
174
+ found: text;
175
+ };
176
+ type AuditLog =
177
+ record {
178
+ action: text;
179
+ actorType: ActorType;
180
+ delegatedBy: opt principal;
181
+ details: text;
182
+ documentId: nat;
183
+ id: nat;
184
+ performedBy: principal;
185
+ success: bool;
186
+ timestamp: Time;
187
+ };
188
+ type ActorType =
189
+ variant {
190
+ agent;
191
+ systemActor;
192
+ user;
193
+ };
194
+ service : {
195
+ deleteDocument: (documentId: nat) -> (variant {
196
+ err: text;
197
+ ok;
198
+ });
199
+ getAuditLogs: () -> (vec AuditLog) query;
200
+ getConfiguration: () ->
201
+ (record {
202
+ documentStorage: opt principal;
203
+ userManagement: opt principal;
204
+ }) query;
205
+ getCycles: () -> (nat) query;
206
+ getDocument: (id: nat) -> (opt DocumentMetadata) query;
207
+ getDocumentVerifications: (documentId: nat) ->
208
+ (vec DocumentVerification) query;
209
+ getOscarVerificationDetails: (verificationId: nat) ->
210
+ (opt OscarVerificationDetails) query;
211
+ getPropertyDocuments: (propertyId: nat) -> (vec DocumentMetadata) query;
212
+ getRecentAuditLogs: (limit: nat) -> (vec AuditLog) query;
213
+ getStats: () ->
214
+ (record {
215
+ totalAuditLogs: nat;
216
+ totalDocuments: nat;
217
+ totalVerifications: nat;
218
+ verifiedDocuments: nat;
219
+ }) query;
220
+ getTransactionVerificationSummary: (transactionId: text, titleNumber:
221
+ text) -> (Result_4);
222
+ getUnverifiedDocuments: (propertyId: nat) -> (vec DocumentMetadata) query;
223
+ getVerification: (verificationId: nat) -> (opt DocumentVerification) query;
224
+ getVerificationsByTransaction: (txId: nat) ->
225
+ (vec DocumentVerification) query;
226
+ getVerificationsByVerifier: (verifier: principal) ->
227
+ (vec DocumentVerification) query;
228
+ recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
229
+ action: text, documentId: nat, details: text, success: bool) -> (Result_3);
230
+ registerDocument: (propertyId: nat, transactionId: opt nat, documentType:
231
+ text, documentHash: text, storageDocumentId: opt nat, fileName: opt text,
232
+ fileSize: opt nat, contentType: opt text) -> (nat);
233
+ setDocumentStorageCanister: (canisterId: principal) -> ();
234
+ setUserManagementCanister: (canisterId: principal) -> ();
235
+ verifyDocument: (documentId: nat) -> (bool);
236
+ verifyDocumentWithHash: (documentId: nat, notes: opt text) -> (Result);
237
+ verifyOfficialCopy: (documentId: nat, expectedTitleNumber: text,
238
+ maxAgeDays: nat) -> (Result_2);
239
+ verifyOfficialSearchCertificate: (documentId: nat, expectedTitleNumber:
240
+ text, _expectedTransactionId: opt text) -> (Result_1);
241
+ verifyWithCommercialAPI: (_documentId: nat, _apiProvider: text,
242
+ _verificationData: text) -> (Result);
243
+ verifyWithDVLA: (_documentId: nat, _drivingLicenseNumber: text) -> (Result);
244
+ verifyWithOscar: (documentId: nat, oscarResult: OscarVerificationInput) ->
245
+ (Result);
246
+ verifyWithPassportDCS: (_documentId: nat, _passportNumber: text) ->
247
+ (Result);
248
+ }