@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,112 +1,236 @@
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 interface AuditLog {
6
- 'id' : bigint,
7
- 'action' : string,
8
- 'performedBy' : Principal,
9
- 'timestamp' : Time,
10
- 'details' : string,
11
- 'success' : boolean,
12
- 'documentId' : bigint,
13
- }
14
- export interface DocumentMetadata {
15
- 'id' : bigint,
16
- 'documentHash' : string,
17
- 'documentType' : string,
18
- 'contentType' : [] | [string],
19
- 'propertyId' : bigint,
20
- 'fileName' : [] | [string],
21
- 'fileSize' : [] | [bigint],
22
- 'isVerified' : boolean,
23
- 'lastVerificationId' : [] | [bigint],
24
- 'storageDocumentId' : [] | [bigint],
25
- 'uploadedAt' : Time,
26
- 'uploadedBy' : Principal,
27
- 'transactionId' : [] | [bigint],
28
- }
29
- export interface DocumentVerification {
30
- 'id' : bigint,
31
- 'documentType' : string,
32
- 'verificationDate' : Time,
33
- 'expiresAt' : [] | [Time],
34
- 'failureReason' : [] | [string],
35
- 'propertyId' : bigint,
36
- 'hashVerified' : boolean,
37
- 'notes' : [] | [string],
38
- 'documentId' : bigint,
39
- 'isValid' : boolean,
40
- 'expectedHash' : string,
41
- 'calculatedHash' : string,
42
- 'verifiedBy' : Principal,
43
- 'verificationMethod' : VerificationMethod,
44
- }
45
- export type Result = { 'ok' : DocumentVerification } |
46
- { 'err' : string };
47
- export type Time = bigint;
48
- export type VerificationMethod = { 'passport_dcs' : null } |
49
- { 'commercial_api' : string } |
50
- { 'system_hash_only' : null } |
51
- { 'manual_solicitor' : null } |
52
- { 'dvla_api' : null };
53
- export interface _SERVICE {
54
- 'deleteDocument' : ActorMethod<
55
- [bigint],
56
- { 'ok' : null } |
57
- { 'err' : string }
58
- >,
59
- 'getAuditLogs' : ActorMethod<[], Array<AuditLog>>,
60
- 'getConfiguration' : ActorMethod<
61
- [],
62
- {
63
- 'userManagement' : [] | [Principal],
64
- 'documentStorage' : [] | [Principal],
65
- }
66
- >,
67
- 'getCycles' : ActorMethod<[], bigint>,
68
- 'getDocument' : ActorMethod<[bigint], [] | [DocumentMetadata]>,
69
- 'getDocumentVerifications' : ActorMethod<
70
- [bigint],
71
- Array<DocumentVerification>
72
- >,
73
- 'getPropertyDocuments' : ActorMethod<[bigint], Array<DocumentMetadata>>,
74
- 'getRecentAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
75
- 'getStats' : ActorMethod<
76
- [],
77
- {
78
- 'totalVerifications' : bigint,
79
- 'totalAuditLogs' : bigint,
80
- 'verifiedDocuments' : bigint,
81
- 'totalDocuments' : bigint,
82
- }
83
- >,
84
- 'getUnverifiedDocuments' : ActorMethod<[bigint], Array<DocumentMetadata>>,
85
- 'getVerification' : ActorMethod<[bigint], [] | [DocumentVerification]>,
86
- 'getVerificationsByVerifier' : ActorMethod<
87
- [Principal],
88
- Array<DocumentVerification>
89
- >,
90
- 'registerDocument' : ActorMethod<
91
- [
92
- bigint,
93
- [] | [bigint],
94
- string,
95
- string,
96
- [] | [bigint],
97
- [] | [string],
98
- [] | [bigint],
99
- [] | [string],
100
- ],
101
- bigint
102
- >,
103
- 'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
104
- 'setUserManagementCanister' : ActorMethod<[Principal], undefined>,
105
- 'verifyDocument' : ActorMethod<[bigint], boolean>,
106
- 'verifyDocumentWithHash' : ActorMethod<[bigint, [] | [string]], Result>,
107
- 'verifyWithCommercialAPI' : ActorMethod<[bigint, string, string], Result>,
108
- 'verifyWithDVLA' : ActorMethod<[bigint, string], Result>,
109
- 'verifyWithPassportDCS' : ActorMethod<[bigint, string], Result>,
110
- }
111
- export declare const idlFactory: IDL.InterfaceFactory;
112
- export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
1
+ import type { Principal } from '@dfinity/principal';
2
+ import type { ActorMethod } from '@dfinity/agent';
3
+ import type { IDL } from '@dfinity/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
+ 'getDocument' : ActorMethod<[bigint], [] | [DocumentMetadata]>,
174
+ 'getDocumentVerifications' : ActorMethod<
175
+ [bigint],
176
+ Array<DocumentVerification>
177
+ >,
178
+ 'getOscarVerificationDetails' : ActorMethod<
179
+ [bigint],
180
+ [] | [OscarVerificationDetails]
181
+ >,
182
+ 'getPropertyDocuments' : ActorMethod<[bigint], Array<DocumentMetadata>>,
183
+ 'getRecentAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
184
+ 'getStats' : ActorMethod<
185
+ [],
186
+ {
187
+ 'totalVerifications' : bigint,
188
+ 'totalAuditLogs' : bigint,
189
+ 'verifiedDocuments' : bigint,
190
+ 'totalDocuments' : bigint,
191
+ }
192
+ >,
193
+ 'getTransactionVerificationSummary' : ActorMethod<[string, string], Result_4>,
194
+ 'getUnverifiedDocuments' : ActorMethod<[bigint], Array<DocumentMetadata>>,
195
+ 'getVerification' : ActorMethod<[bigint], [] | [DocumentVerification]>,
196
+ 'getVerificationsByTransaction' : ActorMethod<
197
+ [bigint],
198
+ Array<DocumentVerification>
199
+ >,
200
+ 'getVerificationsByVerifier' : ActorMethod<
201
+ [Principal],
202
+ Array<DocumentVerification>
203
+ >,
204
+ 'recordAuditEntry' : ActorMethod<
205
+ [ActorType, [] | [Principal], string, bigint, string, boolean],
206
+ Result_3
207
+ >,
208
+ 'registerDocument' : ActorMethod<
209
+ [
210
+ bigint,
211
+ [] | [bigint],
212
+ string,
213
+ string,
214
+ [] | [bigint],
215
+ [] | [string],
216
+ [] | [bigint],
217
+ [] | [string],
218
+ ],
219
+ bigint
220
+ >,
221
+ 'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
222
+ 'setUserManagementCanister' : ActorMethod<[Principal], undefined>,
223
+ 'verifyDocument' : ActorMethod<[bigint], boolean>,
224
+ 'verifyDocumentWithHash' : ActorMethod<[bigint, [] | [string]], Result>,
225
+ 'verifyOfficialCopy' : ActorMethod<[bigint, string, bigint], Result_2>,
226
+ 'verifyOfficialSearchCertificate' : ActorMethod<
227
+ [bigint, string, [] | [string]],
228
+ Result_1
229
+ >,
230
+ 'verifyWithCommercialAPI' : ActorMethod<[bigint, string, string], Result>,
231
+ 'verifyWithDVLA' : ActorMethod<[bigint, string], Result>,
232
+ 'verifyWithOscar' : ActorMethod<[bigint, OscarVerificationInput], Result>,
233
+ 'verifyWithPassportDCS' : ActorMethod<[bigint, string], Result>,
234
+ }
235
+ export declare const idlFactory: IDL.InterfaceFactory;
236
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];