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