@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,234 +1,325 @@
1
1
  export const idlFactory = ({ IDL }) => {
2
- const ActorType = IDL.Variant({
3
- 'agent': IDL.Null,
4
- 'systemActor': IDL.Null,
5
- 'user': IDL.Null,
6
- });
7
- const Time = IDL.Int;
8
- const AuditLog = IDL.Record({
9
- 'id': IDL.Nat,
10
- 'action': IDL.Text,
11
- 'actorType': ActorType,
12
- 'delegatedBy': IDL.Opt(IDL.Principal),
13
- 'performedBy': IDL.Principal,
14
- 'timestamp': Time,
15
- 'details': IDL.Text,
16
- 'success': IDL.Bool,
17
- 'documentId': IDL.Nat,
18
- });
19
- const DocumentMetadata = IDL.Record({
20
- 'id': IDL.Nat,
21
- 'documentHash': IDL.Text,
22
- 'documentType': IDL.Text,
23
- 'contentType': IDL.Opt(IDL.Text),
24
- 'propertyId': IDL.Nat,
25
- 'fileName': IDL.Opt(IDL.Text),
26
- 'fileSize': IDL.Opt(IDL.Nat),
27
- 'isVerified': IDL.Bool,
28
- 'lastVerificationId': IDL.Opt(IDL.Nat),
29
- 'storageDocumentId': IDL.Opt(IDL.Nat),
30
- 'uploadedAt': Time,
31
- 'uploadedBy': IDL.Principal,
32
- 'transactionId': IDL.Opt(IDL.Nat),
33
- });
34
- const OscarIssue = IDL.Record({
35
- 'field': IDL.Opt(IDL.Text),
36
- 'code': IDL.Text,
37
- 'message': IDL.Text,
38
- 'severity': IDL.Variant({
39
- 'warning': IDL.Null,
40
- 'info': IDL.Null,
41
- 'error': IDL.Null,
42
- }),
43
- });
44
- const DataMismatch = IDL.Record({
45
- 'field': IDL.Text,
46
- 'found': IDL.Text,
47
- 'expected': IDL.Text,
48
- });
49
- const OscarVerificationDetails = IDL.Record({
50
- 'documentType': IDL.Text,
51
- 'requiresSolicitorReview': IDL.Bool,
52
- 'extractedData': IDL.Text,
53
- 'issues': IDL.Vec(OscarIssue),
54
- 'mismatches': IDL.Vec(DataMismatch),
55
- 'confidence': IDL.Nat,
56
- 'analysisTimestamp': Time,
57
- });
58
- const VerificationMethod = IDL.Variant({
59
- 'oscar_ai': OscarVerificationDetails,
60
- 'passport_dcs': IDL.Null,
61
- 'commercial_api': IDL.Text,
62
- 'system_hash_only': IDL.Null,
63
- 'manual_solicitor': IDL.Null,
64
- 'dvla_api': IDL.Null,
65
- });
66
- const DocumentVerification = IDL.Record({
67
- 'id': IDL.Nat,
68
- 'documentType': IDL.Text,
69
- 'verificationDate': Time,
70
- 'expiresAt': IDL.Opt(Time),
71
- 'failureReason': IDL.Opt(IDL.Text),
72
- 'propertyId': IDL.Nat,
73
- 'hashVerified': IDL.Bool,
74
- 'notes': IDL.Opt(IDL.Text),
75
- 'documentId': IDL.Nat,
76
- 'isValid': IDL.Bool,
77
- 'expectedHash': IDL.Text,
78
- 'calculatedHash': IDL.Text,
79
- 'verifiedBy': IDL.Principal,
80
- 'verificationMethod': VerificationMethod,
81
- });
82
- const LRDocumentType = IDL.Variant({
83
- 'LandChargesSearchK16': IDL.Null,
84
- 'OfficialSearchCertificate': IDL.Null,
85
- 'SearchOfPartCertificate': IDL.Null,
86
- 'RegisterExtract': IDL.Null,
87
- 'OfficialCopyRegister': IDL.Null,
88
- 'LocalAuthoritySearch': IDL.Null,
89
- 'OfficialCopyTitlePlan': IDL.Null,
90
- 'CompletionConfirmation': IDL.Null,
91
- 'AP1Acknowledgement': IDL.Null,
92
- 'RequisitionNotice': IDL.Null,
93
- });
94
- const LRDocumentSummary = IDL.Record({
95
- 'documentType': LRDocumentType,
96
- 'isVerified': IDL.Bool,
97
- 'isCurrent': IDL.Bool,
98
- 'landRegistryReference': IDL.Opt(IDL.Text),
99
- 'validUntil': IDL.Opt(IDL.Int),
100
- });
101
- const TransactionVerificationSummary = IDL.Record({
102
- 'missingDocuments': IDL.Vec(IDL.Text),
103
- 'expiredDocuments': IDL.Nat,
104
- 'hasOfficialSearch': IDL.Bool,
105
- 'titleNumber': IDL.Text,
106
- 'allDocumentsVerified': IDL.Bool,
107
- 'readyForSubmission': IDL.Bool,
108
- 'readyForCompletion': IDL.Bool,
109
- 'officialSearchValid': IDL.Bool,
110
- 'allLRDocumentsCurrent': IDL.Bool,
111
- 'verifiedDocuments': IDL.Nat,
112
- 'daysUntilSearchExpiry': IDL.Opt(IDL.Int),
113
- 'lrDocuments': IDL.Vec(LRDocumentSummary),
114
- 'officialSearchExpiry': IDL.Opt(IDL.Int),
115
- 'readyForExchange': IDL.Bool,
116
- 'unverifiedDocuments': IDL.Nat,
117
- 'totalDocuments': IDL.Nat,
118
- 'transactionId': IDL.Text,
119
- });
120
- const Result_4 = IDL.Variant({
121
- 'ok': TransactionVerificationSummary,
122
- 'err': IDL.Text,
123
- });
124
- const Result_3 = IDL.Variant({ 'ok': IDL.Nat, 'err': IDL.Text });
125
- const Result = IDL.Variant({ 'ok': DocumentVerification, 'err': IDL.Text });
126
- const OfficialCopyVerification = IDL.Record({
127
- 'documentAge': IDL.Nat,
128
- 'hashVerified': IDL.Bool,
129
- 'issuedAt': IDL.Int,
130
- 'titleNumberMatches': IDL.Bool,
131
- 'isCurrent': IDL.Bool,
132
- 'copyType': LRDocumentType,
133
- 'verifiedAt': IDL.Int,
134
- 'verifiedBy': IDL.Principal,
135
- });
136
- const Result_2 = IDL.Variant({
137
- 'ok': OfficialCopyVerification,
138
- 'err': IDL.Text,
139
- });
140
- const PriorityStatus = IDL.Variant({
141
- 'Active': IDL.Null,
142
- 'ExpiringImminently': IDL.Null,
143
- 'Unknown': IDL.Null,
144
- 'Expired': IDL.Null,
145
- });
146
- const OSCertificateVerification = IDL.Record({
147
- 'priorityStatus': PriorityStatus,
148
- 'registerChangedFlag': IDL.Opt(IDL.Bool),
149
- 'advisoryEntries': IDL.Vec(IDL.Text),
150
- 'hashVerified': IDL.Bool,
151
- 'priorityExpiry': IDL.Opt(IDL.Int),
152
- 'titleNumberMatches': IDL.Bool,
153
- 'daysRemaining': IDL.Opt(IDL.Int),
154
- 'verifiedAt': IDL.Int,
155
- 'verifiedBy': IDL.Principal,
156
- });
157
- const Result_1 = IDL.Variant({
158
- 'ok': OSCertificateVerification,
159
- 'err': IDL.Text,
160
- });
161
- const OscarVerificationInput = IDL.Record({
162
- 'documentType': IDL.Text,
163
- 'requiresSolicitorReview': IDL.Bool,
164
- 'extractedData': IDL.Text,
165
- 'issues': IDL.Vec(OscarIssue),
166
- 'mismatches': IDL.Vec(DataMismatch),
167
- 'confidence': IDL.Nat,
168
- });
169
- return IDL.Service({
170
- 'deleteDocument': IDL.Func([IDL.Nat], [IDL.Variant({ 'ok': IDL.Null, 'err': IDL.Text })], []),
171
- 'getAuditLogs': IDL.Func([], [IDL.Vec(AuditLog)], ['query']),
172
- 'getConfiguration': IDL.Func([], [
173
- IDL.Record({
174
- 'userManagement': IDL.Opt(IDL.Principal),
175
- 'documentStorage': IDL.Opt(IDL.Principal),
176
- }),
177
- ], ['query']),
178
- 'getCycles': IDL.Func([], [IDL.Nat], ['query']),
179
- 'fetchDocument': IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], []),
180
- 'fetchDocumentVerifications': IDL.Func([IDL.Nat], [IDL.Vec(DocumentVerification)], []),
181
- 'fetchPropertyDocuments': IDL.Func([IDL.Nat], [IDL.Vec(DocumentMetadata)], []),
182
- 'fetchUnverifiedDocuments': IDL.Func([IDL.Nat], [IDL.Vec(DocumentMetadata)], []),
183
- 'fetchVerification': IDL.Func([IDL.Nat], [IDL.Opt(DocumentVerification)], []),
184
- 'fetchVerificationsByTransaction': IDL.Func([IDL.Nat], [IDL.Vec(DocumentVerification)], []),
185
- 'getDocument': IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], ['query']),
186
- 'getDocumentVerifications': IDL.Func([IDL.Nat], [IDL.Vec(DocumentVerification)], ['query']),
187
- 'getOscarVerificationDetails': IDL.Func([IDL.Nat], [IDL.Opt(OscarVerificationDetails)], ['query']),
188
- 'getPropertyDocuments': IDL.Func([IDL.Nat], [IDL.Vec(DocumentMetadata)], ['query']),
189
- 'getRecentAuditLogs': IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
190
- 'getStats': IDL.Func([], [
191
- IDL.Record({
192
- 'totalVerifications': IDL.Nat,
193
- 'totalAuditLogs': IDL.Nat,
194
- 'verifiedDocuments': IDL.Nat,
195
- 'totalDocuments': IDL.Nat,
196
- }),
197
- ], ['query']),
198
- 'getTransactionVerificationSummary': IDL.Func([IDL.Text, IDL.Text], [Result_4], []),
199
- 'getUnverifiedDocuments': IDL.Func([IDL.Nat], [IDL.Vec(DocumentMetadata)], ['query']),
200
- 'getVerification': IDL.Func([IDL.Nat], [IDL.Opt(DocumentVerification)], ['query']),
201
- 'getVerificationsByTransaction': IDL.Func([IDL.Nat], [IDL.Vec(DocumentVerification)], ['query']),
202
- 'getVerificationsByVerifier': IDL.Func([IDL.Principal], [IDL.Vec(DocumentVerification)], ['query']),
203
- 'recordAuditEntry': IDL.Func([
204
- ActorType,
205
- IDL.Opt(IDL.Principal),
206
- IDL.Text,
207
- IDL.Nat,
208
- IDL.Text,
209
- IDL.Bool,
210
- ], [Result_3], []),
211
- 'registerDocument': IDL.Func([
212
- IDL.Nat,
213
- IDL.Opt(IDL.Nat),
214
- IDL.Text,
215
- IDL.Text,
216
- IDL.Opt(IDL.Nat),
217
- IDL.Opt(IDL.Text),
218
- IDL.Opt(IDL.Nat),
219
- IDL.Opt(IDL.Text),
220
- ], [IDL.Nat], []),
221
- 'setDocumentStorageCanister': IDL.Func([IDL.Principal], [], []),
222
- 'setUserManagementCanister': IDL.Func([IDL.Principal], [], []),
223
- 'verifyDocument': IDL.Func([IDL.Nat], [IDL.Bool], []),
224
- 'verifyDocumentWithHash': IDL.Func([IDL.Nat, IDL.Opt(IDL.Text)], [Result], []),
225
- 'verifyOfficialCopy': IDL.Func([IDL.Nat, IDL.Text, IDL.Nat], [Result_2], []),
226
- 'verifyOfficialSearchCertificate': IDL.Func([IDL.Nat, IDL.Text, IDL.Opt(IDL.Text)], [Result_1], []),
227
- 'verifyWithCommercialAPI': IDL.Func([IDL.Nat, IDL.Text, IDL.Text], [Result], []),
228
- 'verifyWithDVLA': IDL.Func([IDL.Nat, IDL.Text], [Result], []),
229
- 'verifyWithOscar': IDL.Func([IDL.Nat, OscarVerificationInput], [Result], []),
230
- 'verifyWithPassportDCS': IDL.Func([IDL.Nat, IDL.Text], [Result], []),
231
- });
2
+ const ActorType = IDL.Variant({
3
+ 'agent' : IDL.Null,
4
+ 'systemActor' : IDL.Null,
5
+ 'user' : IDL.Null,
6
+ });
7
+ const Time = IDL.Int;
8
+ const AuditLog = IDL.Record({
9
+ 'id' : IDL.Nat,
10
+ 'action' : IDL.Text,
11
+ 'actorType' : ActorType,
12
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
13
+ 'performedBy' : IDL.Principal,
14
+ 'timestamp' : Time,
15
+ 'details' : IDL.Text,
16
+ 'success' : IDL.Bool,
17
+ 'documentId' : IDL.Nat,
18
+ });
19
+ const DocumentMetadata = IDL.Record({
20
+ 'id' : IDL.Nat,
21
+ 'documentHash' : IDL.Text,
22
+ 'documentType' : IDL.Text,
23
+ 'contentType' : IDL.Opt(IDL.Text),
24
+ 'propertyId' : IDL.Nat,
25
+ 'fileName' : IDL.Opt(IDL.Text),
26
+ 'fileSize' : IDL.Opt(IDL.Nat),
27
+ 'isVerified' : IDL.Bool,
28
+ 'lastVerificationId' : IDL.Opt(IDL.Nat),
29
+ 'storageDocumentId' : IDL.Opt(IDL.Nat),
30
+ 'uploadedAt' : Time,
31
+ 'uploadedBy' : IDL.Principal,
32
+ 'transactionId' : IDL.Opt(IDL.Nat),
33
+ });
34
+ const OscarIssue = IDL.Record({
35
+ 'field' : IDL.Opt(IDL.Text),
36
+ 'code' : IDL.Text,
37
+ 'message' : IDL.Text,
38
+ 'severity' : IDL.Variant({
39
+ 'warning' : IDL.Null,
40
+ 'info' : IDL.Null,
41
+ 'error' : IDL.Null,
42
+ }),
43
+ });
44
+ const DataMismatch = IDL.Record({
45
+ 'field' : IDL.Text,
46
+ 'found' : IDL.Text,
47
+ 'expected' : IDL.Text,
48
+ });
49
+ const OscarVerificationDetails = IDL.Record({
50
+ 'documentType' : IDL.Text,
51
+ 'requiresSolicitorReview' : IDL.Bool,
52
+ 'extractedData' : IDL.Text,
53
+ 'issues' : IDL.Vec(OscarIssue),
54
+ 'mismatches' : IDL.Vec(DataMismatch),
55
+ 'confidence' : IDL.Nat,
56
+ 'analysisTimestamp' : Time,
57
+ });
58
+ const VerificationMethod = IDL.Variant({
59
+ 'oscar_ai' : OscarVerificationDetails,
60
+ 'passport_dcs' : IDL.Null,
61
+ 'commercial_api' : IDL.Text,
62
+ 'system_hash_only' : IDL.Null,
63
+ 'manual_solicitor' : IDL.Null,
64
+ 'dvla_api' : IDL.Null,
65
+ });
66
+ const DocumentVerification = IDL.Record({
67
+ 'id' : IDL.Nat,
68
+ 'documentType' : IDL.Text,
69
+ 'verificationDate' : Time,
70
+ 'expiresAt' : IDL.Opt(Time),
71
+ 'failureReason' : IDL.Opt(IDL.Text),
72
+ 'propertyId' : IDL.Nat,
73
+ 'hashVerified' : IDL.Bool,
74
+ 'notes' : IDL.Opt(IDL.Text),
75
+ 'documentId' : IDL.Nat,
76
+ 'isValid' : IDL.Bool,
77
+ 'expectedHash' : IDL.Text,
78
+ 'calculatedHash' : IDL.Text,
79
+ 'verifiedBy' : IDL.Principal,
80
+ 'verificationMethod' : VerificationMethod,
81
+ });
82
+ const LRDocumentType = IDL.Variant({
83
+ 'LandChargesSearchK16' : IDL.Null,
84
+ 'OfficialSearchCertificate' : IDL.Null,
85
+ 'SearchOfPartCertificate' : IDL.Null,
86
+ 'RegisterExtract' : IDL.Null,
87
+ 'OfficialCopyRegister' : IDL.Null,
88
+ 'LocalAuthoritySearch' : IDL.Null,
89
+ 'OfficialCopyTitlePlan' : IDL.Null,
90
+ 'CompletionConfirmation' : IDL.Null,
91
+ 'AP1Acknowledgement' : IDL.Null,
92
+ 'RequisitionNotice' : IDL.Null,
93
+ });
94
+ const LRDocumentSummary = IDL.Record({
95
+ 'documentType' : LRDocumentType,
96
+ 'isVerified' : IDL.Bool,
97
+ 'isCurrent' : IDL.Bool,
98
+ 'landRegistryReference' : IDL.Opt(IDL.Text),
99
+ 'validUntil' : IDL.Opt(IDL.Int),
100
+ });
101
+ const TransactionVerificationSummary = IDL.Record({
102
+ 'missingDocuments' : IDL.Vec(IDL.Text),
103
+ 'expiredDocuments' : IDL.Nat,
104
+ 'hasOfficialSearch' : IDL.Bool,
105
+ 'titleNumber' : IDL.Text,
106
+ 'allDocumentsVerified' : IDL.Bool,
107
+ 'readyForSubmission' : IDL.Bool,
108
+ 'readyForCompletion' : IDL.Bool,
109
+ 'officialSearchValid' : IDL.Bool,
110
+ 'allLRDocumentsCurrent' : IDL.Bool,
111
+ 'verifiedDocuments' : IDL.Nat,
112
+ 'daysUntilSearchExpiry' : IDL.Opt(IDL.Int),
113
+ 'lrDocuments' : IDL.Vec(LRDocumentSummary),
114
+ 'officialSearchExpiry' : IDL.Opt(IDL.Int),
115
+ 'readyForExchange' : IDL.Bool,
116
+ 'unverifiedDocuments' : IDL.Nat,
117
+ 'totalDocuments' : IDL.Nat,
118
+ 'transactionId' : IDL.Text,
119
+ });
120
+ const Result_4 = IDL.Variant({
121
+ 'ok' : TransactionVerificationSummary,
122
+ 'err' : IDL.Text,
123
+ });
124
+ const Result_3 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
125
+ const Result = IDL.Variant({ 'ok' : DocumentVerification, 'err' : IDL.Text });
126
+ const OfficialCopyVerification = IDL.Record({
127
+ 'documentAge' : IDL.Nat,
128
+ 'hashVerified' : IDL.Bool,
129
+ 'issuedAt' : IDL.Int,
130
+ 'titleNumberMatches' : IDL.Bool,
131
+ 'isCurrent' : IDL.Bool,
132
+ 'copyType' : LRDocumentType,
133
+ 'verifiedAt' : IDL.Int,
134
+ 'verifiedBy' : IDL.Principal,
135
+ });
136
+ const Result_2 = IDL.Variant({
137
+ 'ok' : OfficialCopyVerification,
138
+ 'err' : IDL.Text,
139
+ });
140
+ const PriorityStatus = IDL.Variant({
141
+ 'Active' : IDL.Null,
142
+ 'ExpiringImminently' : IDL.Null,
143
+ 'Unknown' : IDL.Null,
144
+ 'Expired' : IDL.Null,
145
+ });
146
+ const OSCertificateVerification = IDL.Record({
147
+ 'priorityStatus' : PriorityStatus,
148
+ 'registerChangedFlag' : IDL.Opt(IDL.Bool),
149
+ 'advisoryEntries' : IDL.Vec(IDL.Text),
150
+ 'hashVerified' : IDL.Bool,
151
+ 'priorityExpiry' : IDL.Opt(IDL.Int),
152
+ 'titleNumberMatches' : IDL.Bool,
153
+ 'daysRemaining' : IDL.Opt(IDL.Int),
154
+ 'verifiedAt' : IDL.Int,
155
+ 'verifiedBy' : IDL.Principal,
156
+ });
157
+ const Result_1 = IDL.Variant({
158
+ 'ok' : OSCertificateVerification,
159
+ 'err' : IDL.Text,
160
+ });
161
+ const OscarVerificationInput = IDL.Record({
162
+ 'documentType' : IDL.Text,
163
+ 'requiresSolicitorReview' : IDL.Bool,
164
+ 'extractedData' : IDL.Text,
165
+ 'issues' : IDL.Vec(OscarIssue),
166
+ 'mismatches' : IDL.Vec(DataMismatch),
167
+ 'confidence' : IDL.Nat,
168
+ });
169
+ return IDL.Service({
170
+ 'deleteDocument' : IDL.Func(
171
+ [IDL.Nat],
172
+ [IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text })],
173
+ [],
174
+ ),
175
+ 'getAuditLogs' : IDL.Func([], [IDL.Vec(AuditLog)], ['query']),
176
+ 'getConfiguration' : IDL.Func(
177
+ [],
178
+ [
179
+ IDL.Record({
180
+ 'userManagement' : IDL.Opt(IDL.Principal),
181
+ 'documentStorage' : IDL.Opt(IDL.Principal),
182
+ }),
183
+ ],
184
+ ['query'],
185
+ ),
186
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
187
+ 'fetchDocument' : IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], []),
188
+ 'fetchDocumentVerifications' : IDL.Func(
189
+ [IDL.Nat],
190
+ [IDL.Vec(DocumentVerification)],
191
+ [],
192
+ ),
193
+ 'fetchPropertyDocuments' : IDL.Func(
194
+ [IDL.Nat],
195
+ [IDL.Vec(DocumentMetadata)],
196
+ [],
197
+ ),
198
+ 'fetchUnverifiedDocuments' : IDL.Func(
199
+ [IDL.Nat],
200
+ [IDL.Vec(DocumentMetadata)],
201
+ [],
202
+ ),
203
+ 'fetchVerification' : IDL.Func(
204
+ [IDL.Nat],
205
+ [IDL.Opt(DocumentVerification)],
206
+ [],
207
+ ),
208
+ 'fetchVerificationsByTransaction' : IDL.Func(
209
+ [IDL.Nat],
210
+ [IDL.Vec(DocumentVerification)],
211
+ [],
212
+ ),
213
+ 'getDocument' : IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], ['query']),
214
+ 'getDocumentVerifications' : IDL.Func(
215
+ [IDL.Nat],
216
+ [IDL.Vec(DocumentVerification)],
217
+ ['query'],
218
+ ),
219
+ 'getOscarVerificationDetails' : IDL.Func(
220
+ [IDL.Nat],
221
+ [IDL.Opt(OscarVerificationDetails)],
222
+ ['query'],
223
+ ),
224
+ 'getPropertyDocuments' : IDL.Func(
225
+ [IDL.Nat],
226
+ [IDL.Vec(DocumentMetadata)],
227
+ ['query'],
228
+ ),
229
+ 'getRecentAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
230
+ 'getStats' : IDL.Func(
231
+ [],
232
+ [
233
+ IDL.Record({
234
+ 'totalVerifications' : IDL.Nat,
235
+ 'totalAuditLogs' : IDL.Nat,
236
+ 'verifiedDocuments' : IDL.Nat,
237
+ 'totalDocuments' : IDL.Nat,
238
+ }),
239
+ ],
240
+ ['query'],
241
+ ),
242
+ 'getTransactionVerificationSummary' : IDL.Func(
243
+ [IDL.Text, IDL.Text],
244
+ [Result_4],
245
+ [],
246
+ ),
247
+ 'getUnverifiedDocuments' : IDL.Func(
248
+ [IDL.Nat],
249
+ [IDL.Vec(DocumentMetadata)],
250
+ ['query'],
251
+ ),
252
+ 'getVerification' : IDL.Func(
253
+ [IDL.Nat],
254
+ [IDL.Opt(DocumentVerification)],
255
+ ['query'],
256
+ ),
257
+ 'getVerificationsByTransaction' : IDL.Func(
258
+ [IDL.Nat],
259
+ [IDL.Vec(DocumentVerification)],
260
+ ['query'],
261
+ ),
262
+ 'getVerificationsByVerifier' : IDL.Func(
263
+ [IDL.Principal],
264
+ [IDL.Vec(DocumentVerification)],
265
+ ['query'],
266
+ ),
267
+ 'recordAuditEntry' : IDL.Func(
268
+ [
269
+ ActorType,
270
+ IDL.Opt(IDL.Principal),
271
+ IDL.Text,
272
+ IDL.Nat,
273
+ IDL.Text,
274
+ IDL.Bool,
275
+ ],
276
+ [Result_3],
277
+ [],
278
+ ),
279
+ 'registerDocument' : IDL.Func(
280
+ [
281
+ IDL.Nat,
282
+ IDL.Opt(IDL.Nat),
283
+ IDL.Text,
284
+ IDL.Text,
285
+ IDL.Opt(IDL.Nat),
286
+ IDL.Opt(IDL.Text),
287
+ IDL.Opt(IDL.Nat),
288
+ IDL.Opt(IDL.Text),
289
+ ],
290
+ [IDL.Nat],
291
+ [],
292
+ ),
293
+ 'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [], []),
294
+ 'setUserManagementCanister' : IDL.Func([IDL.Principal], [], []),
295
+ 'verifyDocument' : IDL.Func([IDL.Nat], [IDL.Bool], []),
296
+ 'verifyDocumentWithHash' : IDL.Func(
297
+ [IDL.Nat, IDL.Opt(IDL.Text)],
298
+ [Result],
299
+ [],
300
+ ),
301
+ 'verifyOfficialCopy' : IDL.Func(
302
+ [IDL.Nat, IDL.Text, IDL.Nat],
303
+ [Result_2],
304
+ [],
305
+ ),
306
+ 'verifyOfficialSearchCertificate' : IDL.Func(
307
+ [IDL.Nat, IDL.Text, IDL.Opt(IDL.Text)],
308
+ [Result_1],
309
+ [],
310
+ ),
311
+ 'verifyWithCommercialAPI' : IDL.Func(
312
+ [IDL.Nat, IDL.Text, IDL.Text],
313
+ [Result],
314
+ [],
315
+ ),
316
+ 'verifyWithDVLA' : IDL.Func([IDL.Nat, IDL.Text], [Result], []),
317
+ 'verifyWithOscar' : IDL.Func(
318
+ [IDL.Nat, OscarVerificationInput],
319
+ [Result],
320
+ [],
321
+ ),
322
+ 'verifyWithPassportDCS' : IDL.Func([IDL.Nat, IDL.Text], [Result], []),
323
+ });
232
324
  };
233
325
  export const init = ({ IDL }) => { return []; };
234
- //# sourceMappingURL=document_verification.did.js.map