@propxchain/core-client 0.4.0-canary.39 → 0.5.0-canary.42

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 (35) hide show
  1. package/dist/canisters/document_storage/document_storage.did.d.ts +31 -21
  2. package/dist/canisters/document_storage/document_storage.did.js +31 -21
  3. package/dist/canisters/document_verification/document_verification.did.d.ts +9 -9
  4. package/dist/canisters/document_verification/document_verification.did.js +28 -28
  5. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
  6. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts +1 -0
  7. package/dist/canisters/ledger_manager/ledger_manager.did.js +2 -5
  8. package/dist/canisters/property_registry/property_registry.did.d.ts +7 -3
  9. package/dist/canisters/property_registry/property_registry.did.js +12 -4
  10. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts +90 -42
  11. package/dist/canisters/transaction_manager/transaction_manager.did.js +117 -40
  12. package/dist/canisters/user_management/user_management.did.d.ts +65 -18
  13. package/dist/canisters/user_management/user_management.did.js +90 -19
  14. package/dist/mock.js +1 -1
  15. package/package.json +1 -1
  16. package/src/canisters/document_storage/document_storage.did +32 -21
  17. package/src/canisters/document_storage/document_storage.did.d.ts +31 -21
  18. package/src/canisters/document_storage/document_storage.did.js +31 -21
  19. package/src/canisters/document_verification/document_verification.did +6 -6
  20. package/src/canisters/document_verification/document_verification.did.d.ts +9 -9
  21. package/src/canisters/document_verification/document_verification.did.js +28 -28
  22. package/src/canisters/land_registry_integration/land_registry_integration.did.js +23 -139
  23. package/src/canisters/ledger_manager/ledger_manager.did +2 -1
  24. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +1 -0
  25. package/src/canisters/ledger_manager/ledger_manager.did.js +2 -5
  26. package/src/canisters/property_registry/property_registry.did +7 -3
  27. package/src/canisters/property_registry/property_registry.did.d.ts +7 -3
  28. package/src/canisters/property_registry/property_registry.did.js +12 -4
  29. package/src/canisters/transaction_manager/transaction_manager.did +104 -48
  30. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +90 -42
  31. package/src/canisters/transaction_manager/transaction_manager.did.js +117 -40
  32. package/src/canisters/user_management/user_management.did +62 -19
  33. package/src/canisters/user_management/user_management.did.d.ts +65 -18
  34. package/src/canisters/user_management/user_management.did.js +90 -19
  35. package/src/mock.ts +1 -1
@@ -41,9 +41,17 @@ export type DocumentSource = { 'UserUploaded' : null } |
41
41
  { 'LandRegistryAPI' : null } |
42
42
  { 'LandRegistryNotification' : null } |
43
43
  { 'SystemGenerated' : null };
44
- export type Result = { 'ok' : boolean } |
44
+ export type Result = {
45
+ 'ok' : {
46
+ 'matches' : boolean,
47
+ 'computedHash' : string,
48
+ 'registeredHash' : string,
49
+ }
50
+ } |
45
51
  { 'err' : string };
46
- export type Result_1 = {
52
+ export type Result_1 = { 'ok' : boolean } |
53
+ { 'err' : string };
54
+ export type Result_2 = {
47
55
  'ok' : {
48
56
  'uploadedChunks' : bigint,
49
57
  'totalChunks' : bigint,
@@ -51,11 +59,11 @@ export type Result_1 = {
51
59
  }
52
60
  } |
53
61
  { 'err' : string };
54
- export type Result_2 = { 'ok' : string } |
62
+ export type Result_3 = { 'ok' : string } |
55
63
  { 'err' : string };
56
- export type Result_3 = { 'ok' : bigint } |
64
+ export type Result_4 = { 'ok' : bigint } |
57
65
  { 'err' : string };
58
- export type Result_4 = {
66
+ export type Result_5 = {
59
67
  'ok' : {
60
68
  'uploadedChunks' : bigint,
61
69
  'totalChunks' : bigint,
@@ -64,9 +72,10 @@ export type Result_4 = {
64
72
  }
65
73
  } |
66
74
  { 'err' : string };
67
- export type Result_5 = {
75
+ export type Result_6 = {
68
76
  'ok' : {
69
77
  'id' : bigint,
78
+ 'verified' : boolean,
70
79
  'contentType' : string,
71
80
  'fileHash' : string,
72
81
  'fileName' : string,
@@ -79,12 +88,12 @@ export type Result_5 = {
79
88
  }
80
89
  } |
81
90
  { 'err' : string };
82
- export type Result_6 = { 'ok' : Uint8Array | number[] } |
91
+ export type Result_7 = { 'ok' : Uint8Array | number[] } |
83
92
  { 'err' : string };
84
93
  export type Time = bigint;
85
94
  export interface _SERVICE {
86
- 'deleteDocument' : ActorMethod<[bigint, string], Result_2>,
87
- 'downloadDocumentChunk' : ActorMethod<[bigint, bigint], Result_6>,
95
+ 'deleteDocument' : ActorMethod<[bigint, string], Result_3>,
96
+ 'downloadDocumentChunk' : ActorMethod<[bigint, bigint], Result_7>,
88
97
  'generateCSRFToken' : ActorMethod<[], string>,
89
98
  'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
90
99
  'getCSRFToken' : ActorMethod<[], [] | [string]>,
@@ -93,9 +102,9 @@ export interface _SERVICE {
93
102
  [string],
94
103
  [] | [DocumentProof]
95
104
  >,
96
- 'getDocumentMetadata' : ActorMethod<[bigint], Result_5>,
105
+ 'getDocumentMetadata' : ActorMethod<[bigint], Result_6>,
97
106
  'getDocumentProof' : ActorMethod<[bigint], [] | [DocumentProof]>,
98
- 'getDocumentUploadStatus' : ActorMethod<[bigint], Result_4>,
107
+ 'getDocumentUploadStatus' : ActorMethod<[bigint], Result_5>,
99
108
  'getDocumentVerificationCanister' : ActorMethod<[], [] | [Principal]>,
100
109
  'getExpiredLandRegistryDocuments' : ActorMethod<[], Array<DocumentProof>>,
101
110
  'getLandRegistryCanister' : ActorMethod<[], [] | [Principal]>,
@@ -121,14 +130,14 @@ export interface _SERVICE {
121
130
  'getTransactionDocuments' : ActorMethod<[string], Array<DocumentProof>>,
122
131
  'getTransactionManagerCanister' : ActorMethod<[], [] | [Principal]>,
123
132
  'getUserManagementCanister' : ActorMethod<[], [] | [Principal]>,
124
- 'markDocumentDeleted' : ActorMethod<[bigint, string], Result_2>,
133
+ 'markDocumentDeleted' : ActorMethod<[bigint, string], Result_3>,
125
134
  'recordAuditEntry' : ActorMethod<
126
135
  [ActorType, [] | [Principal], string, bigint, boolean, string],
127
- Result_3
136
+ Result_4
128
137
  >,
129
138
  'registerDocumentProof' : ActorMethod<
130
139
  [string, string, bigint, string, string, [] | [string], string, string],
131
- Result_3
140
+ Result_4
132
141
  >,
133
142
  'registerLandRegistryDocument' : ActorMethod<
134
143
  [
@@ -142,18 +151,19 @@ export interface _SERVICE {
142
151
  [] | [bigint],
143
152
  bigint,
144
153
  ],
145
- Result_3
154
+ Result_4
146
155
  >,
147
- 'setDocumentVerificationCanister' : ActorMethod<[Principal], Result_2>,
148
- 'setLandRegistryCanister' : ActorMethod<[Principal], Result_2>,
149
- 'setTransactionManagerCanister' : ActorMethod<[Principal, string], Result_2>,
150
- 'setUserManagementCanister' : ActorMethod<[Principal, string], Result_2>,
156
+ 'setDocumentVerificationCanister' : ActorMethod<[Principal], Result_3>,
157
+ 'setLandRegistryCanister' : ActorMethod<[Principal], Result_3>,
158
+ 'setTransactionManagerCanister' : ActorMethod<[Principal, string], Result_3>,
159
+ 'setUserManagementCanister' : ActorMethod<[Principal, string], Result_3>,
151
160
  'uploadDocumentChunk' : ActorMethod<
152
161
  [bigint, bigint, Uint8Array | number[], string],
153
- Result_1
162
+ Result_2
154
163
  >,
155
164
  'validateCSRFToken' : ActorMethod<[string], boolean>,
156
- 'verifyDocumentHash' : ActorMethod<[bigint, string, string], Result>,
165
+ 'verifyDocumentHash' : ActorMethod<[bigint, string, string], Result_1>,
166
+ 'verifyOnChainIntegrity' : ActorMethod<[bigint], Result>,
157
167
  }
158
168
  export declare const idlFactory: IDL.InterfaceFactory;
159
169
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,6 +1,6 @@
1
1
  export const idlFactory = ({ IDL }) => {
2
- const Result_2 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
3
- const Result_6 = IDL.Variant({ 'ok' : IDL.Vec(IDL.Nat8), 'err' : IDL.Text });
2
+ const Result_3 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
3
+ const Result_7 = IDL.Variant({ 'ok' : IDL.Vec(IDL.Nat8), 'err' : IDL.Text });
4
4
  const ActorType = IDL.Variant({
5
5
  'agent' : IDL.Null,
6
6
  'systemActor' : IDL.Null,
@@ -45,9 +45,10 @@ export const idlFactory = ({ IDL }) => {
45
45
  'validUntil' : IDL.Opt(IDL.Int),
46
46
  'transactionId' : IDL.Opt(IDL.Text),
47
47
  });
48
- const Result_5 = IDL.Variant({
48
+ const Result_6 = IDL.Variant({
49
49
  'ok' : IDL.Record({
50
50
  'id' : IDL.Nat,
51
+ 'verified' : IDL.Bool,
51
52
  'contentType' : IDL.Text,
52
53
  'fileHash' : IDL.Text,
53
54
  'fileName' : IDL.Text,
@@ -60,7 +61,7 @@ export const idlFactory = ({ IDL }) => {
60
61
  }),
61
62
  'err' : IDL.Text,
62
63
  });
63
- const Result_4 = IDL.Variant({
64
+ const Result_5 = IDL.Variant({
64
65
  'ok' : IDL.Record({
65
66
  'uploadedChunks' : IDL.Nat,
66
67
  'totalChunks' : IDL.Nat,
@@ -69,8 +70,8 @@ export const idlFactory = ({ IDL }) => {
69
70
  }),
70
71
  'err' : IDL.Text,
71
72
  });
72
- const Result_3 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
73
- const Result_1 = IDL.Variant({
73
+ const Result_4 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
74
+ const Result_2 = IDL.Variant({
74
75
  'ok' : IDL.Record({
75
76
  'uploadedChunks' : IDL.Nat,
76
77
  'totalChunks' : IDL.Nat,
@@ -78,10 +79,18 @@ export const idlFactory = ({ IDL }) => {
78
79
  }),
79
80
  'err' : IDL.Text,
80
81
  });
81
- const Result = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
82
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
83
+ const Result = IDL.Variant({
84
+ 'ok' : IDL.Record({
85
+ 'matches' : IDL.Bool,
86
+ 'computedHash' : IDL.Text,
87
+ 'registeredHash' : IDL.Text,
88
+ }),
89
+ 'err' : IDL.Text,
90
+ });
82
91
  return IDL.Service({
83
- 'deleteDocument' : IDL.Func([IDL.Nat, IDL.Text], [Result_2], []),
84
- 'downloadDocumentChunk' : IDL.Func([IDL.Nat, IDL.Nat], [Result_6], []),
92
+ 'deleteDocument' : IDL.Func([IDL.Nat, IDL.Text], [Result_3], []),
93
+ 'downloadDocumentChunk' : IDL.Func([IDL.Nat, IDL.Nat], [Result_7], []),
85
94
  'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
86
95
  'getAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
87
96
  'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
@@ -91,13 +100,13 @@ export const idlFactory = ({ IDL }) => {
91
100
  [IDL.Opt(DocumentProof)],
92
101
  ['query'],
93
102
  ),
94
- 'getDocumentMetadata' : IDL.Func([IDL.Nat], [Result_5], ['query']),
103
+ 'getDocumentMetadata' : IDL.Func([IDL.Nat], [Result_6], ['query']),
95
104
  'getDocumentProof' : IDL.Func(
96
105
  [IDL.Nat],
97
106
  [IDL.Opt(DocumentProof)],
98
107
  ['query'],
99
108
  ),
100
- 'getDocumentUploadStatus' : IDL.Func([IDL.Nat], [Result_4], ['query']),
109
+ 'getDocumentUploadStatus' : IDL.Func([IDL.Nat], [Result_5], ['query']),
101
110
  'getDocumentVerificationCanister' : IDL.Func(
102
111
  [],
103
112
  [IDL.Opt(IDL.Principal)],
@@ -156,7 +165,7 @@ export const idlFactory = ({ IDL }) => {
156
165
  [IDL.Opt(IDL.Principal)],
157
166
  ['query'],
158
167
  ),
159
- 'markDocumentDeleted' : IDL.Func([IDL.Nat, IDL.Text], [Result_2], []),
168
+ 'markDocumentDeleted' : IDL.Func([IDL.Nat, IDL.Text], [Result_3], []),
160
169
  'recordAuditEntry' : IDL.Func(
161
170
  [
162
171
  ActorType,
@@ -166,7 +175,7 @@ export const idlFactory = ({ IDL }) => {
166
175
  IDL.Bool,
167
176
  IDL.Text,
168
177
  ],
169
- [Result_3],
178
+ [Result_4],
170
179
  [],
171
180
  ),
172
181
  'registerDocumentProof' : IDL.Func(
@@ -180,7 +189,7 @@ export const idlFactory = ({ IDL }) => {
180
189
  IDL.Text,
181
190
  IDL.Text,
182
191
  ],
183
- [Result_3],
192
+ [Result_4],
184
193
  [],
185
194
  ),
186
195
  'registerLandRegistryDocument' : IDL.Func(
@@ -195,36 +204,37 @@ export const idlFactory = ({ IDL }) => {
195
204
  IDL.Opt(IDL.Int),
196
205
  IDL.Nat,
197
206
  ],
198
- [Result_3],
207
+ [Result_4],
199
208
  [],
200
209
  ),
201
210
  'setDocumentVerificationCanister' : IDL.Func(
202
211
  [IDL.Principal],
203
- [Result_2],
212
+ [Result_3],
204
213
  [],
205
214
  ),
206
- 'setLandRegistryCanister' : IDL.Func([IDL.Principal], [Result_2], []),
215
+ 'setLandRegistryCanister' : IDL.Func([IDL.Principal], [Result_3], []),
207
216
  'setTransactionManagerCanister' : IDL.Func(
208
217
  [IDL.Principal, IDL.Text],
209
- [Result_2],
218
+ [Result_3],
210
219
  [],
211
220
  ),
212
221
  'setUserManagementCanister' : IDL.Func(
213
222
  [IDL.Principal, IDL.Text],
214
- [Result_2],
223
+ [Result_3],
215
224
  [],
216
225
  ),
217
226
  'uploadDocumentChunk' : IDL.Func(
218
227
  [IDL.Nat, IDL.Nat, IDL.Vec(IDL.Nat8), IDL.Text],
219
- [Result_1],
228
+ [Result_2],
220
229
  [],
221
230
  ),
222
231
  'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
223
232
  'verifyDocumentHash' : IDL.Func(
224
233
  [IDL.Nat, IDL.Text, IDL.Text],
225
- [Result],
234
+ [Result_1],
226
235
  [],
227
236
  ),
237
+ 'verifyOnChainIntegrity' : IDL.Func([IDL.Nat], [Result], []),
228
238
  });
229
239
  };
230
240
  export const init = ({ IDL }) => { return []; };
@@ -161,15 +161,6 @@ export interface _SERVICE {
161
161
  { 'ok' : null } |
162
162
  { 'err' : string }
163
163
  >,
164
- 'getAuditLogs' : ActorMethod<[], Array<AuditLog>>,
165
- 'getConfiguration' : ActorMethod<
166
- [],
167
- {
168
- 'userManagement' : [] | [Principal],
169
- 'documentStorage' : [] | [Principal],
170
- }
171
- >,
172
- 'getCycles' : ActorMethod<[], bigint>,
173
164
  'fetchDocument' : ActorMethod<[bigint], [] | [DocumentMetadata]>,
174
165
  'fetchDocumentVerifications' : ActorMethod<
175
166
  [bigint],
@@ -182,6 +173,15 @@ export interface _SERVICE {
182
173
  [bigint],
183
174
  Array<DocumentVerification>
184
175
  >,
176
+ 'getAuditLogs' : ActorMethod<[], Array<AuditLog>>,
177
+ 'getConfiguration' : ActorMethod<
178
+ [],
179
+ {
180
+ 'userManagement' : [] | [Principal],
181
+ 'documentStorage' : [] | [Principal],
182
+ }
183
+ >,
184
+ 'getCycles' : ActorMethod<[], bigint>,
185
185
  'getDocument' : ActorMethod<[bigint], [] | [DocumentMetadata]>,
186
186
  'getDocumentVerifications' : ActorMethod<
187
187
  [bigint],
@@ -1,21 +1,5 @@
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
2
  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
3
  const DocumentMetadata = IDL.Record({
20
4
  'id' : IDL.Nat,
21
5
  'documentHash' : IDL.Text,
@@ -79,6 +63,22 @@ export const idlFactory = ({ IDL }) => {
79
63
  'verifiedBy' : IDL.Principal,
80
64
  'verificationMethod' : VerificationMethod,
81
65
  });
66
+ const ActorType = IDL.Variant({
67
+ 'agent' : IDL.Null,
68
+ 'systemActor' : IDL.Null,
69
+ 'user' : IDL.Null,
70
+ });
71
+ const AuditLog = IDL.Record({
72
+ 'id' : IDL.Nat,
73
+ 'action' : IDL.Text,
74
+ 'actorType' : ActorType,
75
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
76
+ 'performedBy' : IDL.Principal,
77
+ 'timestamp' : Time,
78
+ 'details' : IDL.Text,
79
+ 'success' : IDL.Bool,
80
+ 'documentId' : IDL.Nat,
81
+ });
82
82
  const LRDocumentType = IDL.Variant({
83
83
  'LandChargesSearchK16' : IDL.Null,
84
84
  'OfficialSearchCertificate' : IDL.Null,
@@ -172,18 +172,6 @@ export const idlFactory = ({ IDL }) => {
172
172
  [IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text })],
173
173
  [],
174
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
175
  'fetchDocument' : IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], []),
188
176
  'fetchDocumentVerifications' : IDL.Func(
189
177
  [IDL.Nat],
@@ -210,6 +198,18 @@ export const idlFactory = ({ IDL }) => {
210
198
  [IDL.Vec(DocumentVerification)],
211
199
  [],
212
200
  ),
201
+ 'getAuditLogs' : IDL.Func([], [IDL.Vec(AuditLog)], ['query']),
202
+ 'getConfiguration' : IDL.Func(
203
+ [],
204
+ [
205
+ IDL.Record({
206
+ 'userManagement' : IDL.Opt(IDL.Principal),
207
+ 'documentStorage' : IDL.Opt(IDL.Principal),
208
+ }),
209
+ ],
210
+ ['query'],
211
+ ),
212
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
213
213
  'getDocument' : IDL.Func([IDL.Nat], [IDL.Opt(DocumentMetadata)], ['query']),
214
214
  'getDocumentVerifications' : IDL.Func(
215
215
  [IDL.Nat],
@@ -61,35 +61,6 @@ export const idlFactory = ({ IDL }) => {
61
61
  'apiResponse' : IDL.Opt(LandRegistryAPIResponse),
62
62
  'transactionID' : IDL.Text,
63
63
  });
64
- const AuthenticationType = IDL.Variant({
65
- 'api_key' : IDL.Null,
66
- 'oauth2' : IDL.Null,
67
- });
68
- const Environment = IDL.Variant({
69
- 'sandbox' : IDL.Null,
70
- 'production' : IDL.Null,
71
- });
72
- const LandRegistryAPICredentials = IDL.Record({
73
- 'authenticationType' : AuthenticationType,
74
- 'lastValidated' : IDL.Int,
75
- 'apiEndpoint' : IDL.Text,
76
- 'apiKey' : IDL.Text,
77
- 'environment' : Environment,
78
- });
79
- const Result_2 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
80
- const ApplicationEnquiryResponse = IDL.Record({
81
- 'completedDate' : IDL.Opt(IDL.Text),
82
- 'status' : IDL.Text,
83
- 'httpStatus' : IDL.Nat,
84
- 'lastUpdated' : IDL.Text,
85
- 'applicationReference' : IDL.Text,
86
- 'notes' : IDL.Vec(IDL.Text),
87
- 'applicationDate' : IDL.Text,
88
- });
89
- const Result_12 = IDL.Variant({
90
- 'ok' : ApplicationEnquiryResponse,
91
- 'err' : IDL.Text,
92
- });
93
64
  const ActorType = IDL.Variant({
94
65
  'agent' : IDL.Null,
95
66
  'systemActor' : IDL.Null,
@@ -104,6 +75,10 @@ export const idlFactory = ({ IDL }) => {
104
75
  'caller' : IDL.Principal,
105
76
  'success' : IDL.Bool,
106
77
  });
78
+ const Environment = IDL.Variant({
79
+ 'sandbox' : IDL.Null,
80
+ 'production' : IDL.Null,
81
+ });
107
82
  const CredentialStatus = IDL.Record({
108
83
  'isExpired' : IDL.Bool,
109
84
  'isConfigured' : IDL.Bool,
@@ -111,13 +86,6 @@ export const idlFactory = ({ IDL }) => {
111
86
  'environment' : IDL.Opt(Environment),
112
87
  'daysSinceRotation' : IDL.Opt(IDL.Nat),
113
88
  });
114
- const ECDResponse = IDL.Record({
115
- 'httpStatus' : IDL.Nat,
116
- 'applicationReference' : IDL.Text,
117
- 'estimatedCompletionDate' : IDL.Text,
118
- 'confidence' : IDL.Opt(IDL.Text),
119
- });
120
- const Result_11 = IDL.Variant({ 'ok' : ECDResponse, 'err' : IDL.Text });
121
89
  const RateLimitInfo = IDL.Record({
122
90
  'callsThisHour' : IDL.Nat,
123
91
  'endpoint' : IDL.Text,
@@ -126,28 +94,6 @@ export const idlFactory = ({ IDL }) => {
126
94
  'callsToday' : IDL.Nat,
127
95
  'hourResetAt' : IDL.Int,
128
96
  });
129
- const ProprietorData = IDL.Record({
130
- 'title' : IDL.Opt(IDL.Text),
131
- 'decoration' : IDL.Opt(IDL.Text),
132
- 'forenames' : IDL.Opt(IDL.Text),
133
- 'surname' : IDL.Opt(IDL.Text),
134
- 'companyLocation' : IDL.Opt(IDL.Text),
135
- 'organisationType' : IDL.Opt(IDL.Text),
136
- 'proprietorName' : IDL.Text,
137
- 'sequence' : IDL.Nat,
138
- 'proprietorType' : IDL.Text,
139
- });
140
- const ProprietorNamesResponse = IDL.Record({
141
- 'httpStatus' : IDL.Nat,
142
- 'titleStatusCode' : IDL.Text,
143
- 'titleNumber' : IDL.Text,
144
- 'proprietors' : IDL.Vec(ProprietorData),
145
- 'titleStatus' : IDL.Text,
146
- });
147
- const Result_10 = IDL.Variant({
148
- 'ok' : ProprietorNamesResponse,
149
- 'err' : IDL.Text,
150
- });
151
97
  const CostSummary = IDL.Record({
152
98
  'entryCount' : IDL.Nat,
153
99
  'byEndpoint' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Nat)),
@@ -167,28 +113,17 @@ export const idlFactory = ({ IDL }) => {
167
113
  'successful' : IDL.Nat32,
168
114
  'failed' : IDL.Nat32,
169
115
  });
170
- const Result_9 = IDL.Variant({
171
- 'ok' : LandRegistryAPIResponse,
172
- 'err' : IDL.Text,
173
- });
174
- const Result_8 = IDL.Variant({ 'ok' : IDL.Nat32, 'err' : IDL.Text });
175
- const LRNotification = IDL.Record({
176
- 'titleNumber' : IDL.Opt(IDL.Text),
177
- 'metadata' : IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
178
- 'notificationType' : IDL.Text,
179
- 'applicationReference' : IDL.Opt(IDL.Text),
180
- 'receivedAt' : IDL.Int,
181
- 'message' : IDL.Text,
182
- });
183
116
  const Result_7 = IDL.Variant({
184
- 'ok' : IDL.Vec(LRNotification),
117
+ 'ok' : LandRegistryAPIResponse,
185
118
  'err' : IDL.Text,
186
119
  });
187
- const Result_6 = IDL.Variant({
120
+ const Result_6 = IDL.Variant({ 'ok' : IDL.Nat32, 'err' : IDL.Text });
121
+ const Result_5 = IDL.Variant({
188
122
  'ok' : OwnershipTransferPayload,
189
123
  'err' : IDL.Text,
190
124
  });
191
- const Result_5 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
125
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
126
+ const Result_4 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
192
127
  const OfficialSearchResponse = IDL.Record({
193
128
  'httpStatus' : IDL.Nat,
194
129
  'officialCopyTimestamp' : IDL.Opt(IDL.Text),
@@ -202,42 +137,11 @@ export const idlFactory = ({ IDL }) => {
202
137
  'priorityExpiry' : IDL.Text,
203
138
  'searchRef' : IDL.Text,
204
139
  });
205
- const Result_4 = IDL.Variant({
140
+ const Result_3 = IDL.Variant({
206
141
  'ok' : OfficialSearchResponse,
207
142
  'err' : IDL.Text,
208
143
  });
209
- const Result_3 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
210
- const AP1SubmissionRequest = IDL.Record({
211
- 'transfereeNames' : IDL.Vec(IDL.Text),
212
- 'transferAmount' : IDL.Nat,
213
- 'transferDate' : IDL.Text,
214
- 'titleNumber' : IDL.Text,
215
- 'transfereeAddress' : IDL.Text,
216
- 'propertyAddress' : IDL.Text,
217
- 'transferorAddress' : IDL.Text,
218
- 'blockchainProofHash' : IDL.Text,
219
- 'propertyPostcode' : IDL.Text,
220
- 'conveyancerReference' : IDL.Text,
221
- 'conveyancerAddress' : IDL.Text,
222
- 'conveyancerSRANumber' : IDL.Text,
223
- 'officialSearchRef' : IDL.Text,
224
- 'transfereeType' : IDL.Text,
225
- 'conveyancerName' : IDL.Text,
226
- 'transferorNames' : IDL.Vec(IDL.Text),
227
- 'applicationType' : IDL.Text,
228
- });
229
- const AP1SubmissionResponse = IDL.Record({
230
- 'httpStatus' : IDL.Nat,
231
- 'applicationReference' : IDL.Text,
232
- 'message' : IDL.Text,
233
- 'confirmationNumber' : IDL.Text,
234
- 'estimatedCompletionDate' : IDL.Opt(IDL.Text),
235
- 'scaleFePence' : IDL.Nat,
236
- });
237
- const Result_1 = IDL.Variant({
238
- 'ok' : AP1SubmissionResponse,
239
- 'err' : IDL.Text,
240
- });
144
+ const Result_2 = IDL.Variant({ 'ok' : IDL.Null, 'err' : IDL.Text });
241
145
  const HttpHeader = IDL.Record({ 'value' : IDL.Text, 'name' : IDL.Text });
242
146
  const HttpResponse = IDL.Record({
243
147
  'status' : IDL.Nat,
@@ -255,17 +159,10 @@ export const idlFactory = ({ IDL }) => {
255
159
  [IDL.Opt(LandRegistryTransactionRecord)],
256
160
  ['query'],
257
161
  ),
258
- 'configure_land_registry_api' : IDL.Func(
259
- [LandRegistryAPICredentials],
260
- [Result_2],
261
- [],
262
- ),
263
- 'getApplicationStatus' : IDL.Func([IDL.Text], [Result_12], []),
264
162
  'getAuditLog' : IDL.Func([], [IDL.Vec(AuditEntry)], ['query']),
265
163
  'getCredentialStatus' : IDL.Func([], [CredentialStatus], ['query']),
266
164
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
267
165
  'getDailySpend' : IDL.Func([], [IDL.Nat], ['query']),
268
- 'getEstimatedCompletionDate' : IDL.Func([IDL.Text], [Result_11], []),
269
166
  'getNotificationPollingStatus' : IDL.Func(
270
167
  [],
271
168
  [
@@ -282,7 +179,6 @@ export const idlFactory = ({ IDL }) => {
282
179
  [IDL.Vec(IDL.Tuple(IDL.Text, RateLimitInfo))],
283
180
  ['query'],
284
181
  ),
285
- 'getRegisteredProprietorNames' : IDL.Func([IDL.Text], [Result_10], []),
286
182
  'getTotalCosts' : IDL.Func([IDL.Int, IDL.Int], [CostSummary], ['query']),
287
183
  'get_all_pending_land_registry_submissions' : IDL.Func(
288
184
  [IDL.Text],
@@ -312,9 +208,8 @@ export const idlFactory = ({ IDL }) => {
312
208
  ],
313
209
  ['query'],
314
210
  ),
315
- 'get_lr_response' : IDL.Func([IDL.Text], [Result_9], ['query']),
316
- 'log_land_registry_error' : IDL.Func([IDL.Text, IDL.Text], [Result_8], []),
317
- 'pollNotifications' : IDL.Func([], [Result_7], []),
211
+ 'get_lr_response' : IDL.Func([IDL.Text], [Result_7], ['query']),
212
+ 'log_land_registry_error' : IDL.Func([IDL.Text, IDL.Text], [Result_6], []),
318
213
  'prepare_ownership_transfer_payload' : IDL.Func(
319
214
  [
320
215
  IDL.Text,
@@ -333,49 +228,38 @@ export const idlFactory = ({ IDL }) => {
333
228
  IDL.Int,
334
229
  IDL.Int,
335
230
  ],
336
- [Result_6],
231
+ [Result_5],
337
232
  [],
338
233
  ),
339
234
  'receive_land_registry_callback' : IDL.Func(
340
235
  [LandRegistryAPIResponse],
341
- [Result_2],
236
+ [Result_1],
342
237
  [],
343
238
  ),
344
239
  'recordAuditEntry' : IDL.Func(
345
240
  [ActorType, IDL.Opt(IDL.Principal), IDL.Text, IDL.Text, IDL.Bool],
346
- [Result_5],
241
+ [Result_4],
347
242
  [],
348
243
  ),
349
244
  'requestOfficialSearch' : IDL.Func(
350
245
  [IDL.Text, IDL.Text, IDL.Vec(IDL.Text), IDL.Text],
351
- [Result_4],
246
+ [Result_3],
352
247
  [],
353
248
  ),
354
249
  'retry_failed_land_registry_transmission' : IDL.Func(
355
250
  [IDL.Text],
356
- [Result_2],
357
- [],
358
- ),
359
- 'rotateCredentials' : IDL.Func([IDL.Text], [Result_3], []),
360
- 'send_to_land_registry' : IDL.Func([IDL.Text], [Result_2], []),
361
- 'setCredentials' : IDL.Func(
362
- [IDL.Text, IDL.Text, IDL.Text, Environment],
363
- [Result_3],
251
+ [Result_1],
364
252
  [],
365
253
  ),
366
- 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_3], []),
254
+ 'send_to_land_registry' : IDL.Func([IDL.Text], [Result_1], []),
255
+ 'setDailySpendLimit' : IDL.Func([IDL.Nat], [Result_2], []),
367
256
  'setNotificationPolling' : IDL.Func(
368
257
  [IDL.Bool, IDL.Opt(IDL.Nat)],
369
- [Result_3],
370
- [],
371
- ),
372
- 'setUserManagementCanisterId' : IDL.Func([IDL.Text], [Result_3], []),
373
- 'simulate_land_registry_processing' : IDL.Func([IDL.Text], [Result_2], []),
374
- 'submitApplicationToChangeRegister' : IDL.Func(
375
- [AP1SubmissionRequest, IDL.Text],
376
- [Result_1],
258
+ [Result_2],
377
259
  [],
378
260
  ),
261
+ 'setUserManagementCanisterId' : IDL.Func([IDL.Text], [Result_2], []),
262
+ 'simulate_land_registry_processing' : IDL.Func([IDL.Text], [Result_1], []),
379
263
  'transform' : IDL.Func([TransformArgs], [HttpResponse], ['query']),
380
264
  'validate_land_registry_connection' : IDL.Func([], [Result], []),
381
265
  'verify_land_registry_receipt' : IDL.Func([IDL.Text], [Result], []),
@@ -196,6 +196,7 @@ export interface _SERVICE {
196
196
  'setDailyBudget' : ActorMethod<[bigint], Result_1>,
197
197
  'setDocumentStorageCanister' : ActorMethod<[Principal], undefined>,
198
198
  'setDocumentVerificationCanister' : ActorMethod<[Principal], undefined>,
199
+ 'setMessageManagerCanister' : ActorMethod<[Principal], undefined>,
199
200
  'setMonthlyBudget' : ActorMethod<[bigint], Result_1>,
200
201
  'setPropertyRegistryCanister' : ActorMethod<[Principal], undefined>,
201
202
  'setTransactionManagerCanister' : ActorMethod<[Principal], undefined>,
@@ -195,11 +195,7 @@ export const idlFactory = ({ IDL }) => {
195
195
  ),
196
196
  'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
197
197
  'getDailyLRSpend' : IDL.Func([], [IDL.Nat], ['query']),
198
- 'getEventsByTransaction' : IDL.Func(
199
- [IDL.Text],
200
- [IDL.Vec(AuditEvent)],
201
- ['query'],
202
- ),
198
+ 'getEventsByTransaction' : IDL.Func([IDL.Text], [IDL.Vec(AuditEvent)], []),
203
199
  'getFailedAuditEvents' : IDL.Func([], [IDL.Vec(AuditEvent)], ['query']),
204
200
  'getGlobalBlockchainStats' : IDL.Func(
205
201
  [],
@@ -244,6 +240,7 @@ export const idlFactory = ({ IDL }) => {
244
240
  'setDailyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
245
241
  'setDocumentStorageCanister' : IDL.Func([IDL.Principal], [], []),
246
242
  'setDocumentVerificationCanister' : IDL.Func([IDL.Principal], [], []),
243
+ 'setMessageManagerCanister' : IDL.Func([IDL.Principal], [], []),
247
244
  'setMonthlyBudget' : IDL.Func([IDL.Nat], [Result_1], []),
248
245
  'setPropertyRegistryCanister' : IDL.Func([IDL.Principal], [], []),
249
246
  'setTransactionManagerCanister' : IDL.Func([IDL.Principal], [], []),