@propxchain/core-client 0.2.1 → 0.3.0-canary.23

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 (63) hide show
  1. package/README.md +2 -3
  2. package/dist/auth.d.ts +7 -7
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +5 -5
  5. package/dist/auth.js.map +1 -1
  6. package/dist/canisters/document_storage/document_storage.did.d.ts.map +1 -1
  7. package/dist/canisters/document_storage/document_storage.did.js +90 -21
  8. package/dist/canisters/document_storage/document_storage.did.js.map +1 -1
  9. package/dist/canisters/document_verification/document_verification.did.d.ts.map +1 -1
  10. package/dist/canisters/document_verification/document_verification.did.js +132 -0
  11. package/dist/canisters/document_verification/document_verification.did.js.map +1 -1
  12. package/dist/canisters/email_service/email_service.did.d.ts.map +1 -1
  13. package/dist/canisters/email_service/email_service.did.js +40 -0
  14. package/dist/canisters/email_service/email_service.did.js.map +1 -1
  15. package/dist/canisters/land_registry_integration/land_registry_integration.did.d.ts.map +1 -1
  16. package/dist/canisters/land_registry_integration/land_registry_integration.did.js +186 -12
  17. package/dist/canisters/land_registry_integration/land_registry_integration.did.js.map +1 -1
  18. package/dist/canisters/ledger_manager/ledger_manager.did.d.ts.map +1 -1
  19. package/dist/canisters/ledger_manager/ledger_manager.did.js +55 -0
  20. package/dist/canisters/ledger_manager/ledger_manager.did.js.map +1 -1
  21. package/dist/canisters/transaction_manager/transaction_manager.did.d.ts.map +1 -1
  22. package/dist/canisters/transaction_manager/transaction_manager.did.js +42 -4
  23. package/dist/canisters/transaction_manager/transaction_manager.did.js.map +1 -1
  24. package/dist/canisters/user_management/user_management.did.d.ts.map +1 -1
  25. package/dist/canisters/user_management/user_management.did.js +122 -2
  26. package/dist/canisters/user_management/user_management.did.js.map +1 -1
  27. package/dist/client.js +1 -1
  28. package/dist/client.js.map +1 -1
  29. package/dist/index.d.ts +1 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +1 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/mock.js +1 -1
  34. package/dist/mock.js.map +1 -1
  35. package/dist/types.d.ts +1 -1
  36. package/dist/types.d.ts.map +1 -1
  37. package/package.json +3 -6
  38. package/src/auth.ts +8 -9
  39. package/src/canisters/document_storage/document_storage.did +82 -12
  40. package/src/canisters/document_storage/document_storage.did.d.ts +86 -9
  41. package/src/canisters/document_storage/document_storage.did.js +128 -19
  42. package/src/canisters/document_verification/document_verification.did +150 -0
  43. package/src/canisters/document_verification/document_verification.did.d.ts +125 -1
  44. package/src/canisters/document_verification/document_verification.did.js +160 -0
  45. package/src/canisters/email_service/email_service.did +49 -0
  46. package/src/canisters/email_service/email_service.did.d.ts +49 -2
  47. package/src/canisters/email_service/email_service.did.js +68 -0
  48. package/src/canisters/land_registry_integration/land_registry_integration.did +118 -19
  49. package/src/canisters/land_registry_integration/land_registry_integration.did.d.ts +89 -19
  50. package/src/canisters/land_registry_integration/land_registry_integration.did.js +213 -11
  51. package/src/canisters/ledger_manager/ledger_manager.did +78 -0
  52. package/src/canisters/ledger_manager/ledger_manager.did.d.ts +66 -0
  53. package/src/canisters/ledger_manager/ledger_manager.did.js +75 -0
  54. package/src/canisters/transaction_manager/transaction_manager.did +98 -5
  55. package/src/canisters/transaction_manager/transaction_manager.did.d.ts +102 -4
  56. package/src/canisters/transaction_manager/transaction_manager.did.js +50 -4
  57. package/src/canisters/user_management/user_management.did +153 -3
  58. package/src/canisters/user_management/user_management.did.d.ts +121 -2
  59. package/src/canisters/user_management/user_management.did.js +166 -6
  60. package/src/client.ts +1 -1
  61. package/src/index.ts +2 -2
  62. package/src/mock.ts +1 -1
  63. package/src/types.ts +1 -1
@@ -2,17 +2,29 @@ import type { Principal } from '@dfinity/principal';
2
2
  import type { ActorMethod } from '@dfinity/agent';
3
3
  import type { IDL } from '@dfinity/candid';
4
4
 
5
- export type ContactType = { 'support' : null } |
5
+ export type ContactType = { 'lr_budget_alert' : null } |
6
+ { 'lr_application_submitted' : null } |
7
+ { 'message_notification' : null } |
8
+ { 'support' : null } |
6
9
  { 'partners' : null } |
7
- { 'sales' : null };
10
+ { 'sales' : null } |
11
+ { 'lr_search_expiry_warning' : null } |
12
+ { 'email_verification' : null } |
13
+ { 'lr_official_search_complete' : null } |
14
+ { 'lr_requisition_raised' : null } |
15
+ { 'lr_application_registered' : null } |
16
+ { 'lr_status_change' : null };
8
17
  export interface EmailNotification {
9
18
  'id' : bigint,
10
19
  'userType' : [] | [string],
11
20
  'contactType' : ContactType,
12
21
  'subject' : string,
13
22
  'partnerType' : [] | [string],
23
+ 'titleNumber' : [] | [string],
14
24
  'name' : string,
15
25
  'volume' : [] | [string],
26
+ 'propertyAddress' : [] | [string],
27
+ 'lrNotificationType' : [] | [string],
16
28
  'email' : string,
17
29
  'website' : [] | [string],
18
30
  'company' : [] | [string],
@@ -20,14 +32,49 @@ export interface EmailNotification {
20
32
  'timestamp' : bigint,
21
33
  'phone' : [] | [string],
22
34
  'processed' : boolean,
35
+ 'transactionId' : [] | [string],
23
36
  }
37
+ export type Result = { 'ok' : string } |
38
+ { 'err' : string };
39
+ export type Result_1 = { 'ok' : bigint } |
40
+ { 'err' : string };
24
41
  export interface _SERVICE {
42
+ 'checkAndSendExpiryWarnings' : ActorMethod<[bigint], Result_1>,
43
+ 'disableExpiryWarningTimer' : ActorMethod<[], Result>,
44
+ 'enableExpiryWarningTimer' : ActorMethod<[], Result>,
25
45
  'formatNotificationAsEmail' : ActorMethod<[bigint], [] | [string]>,
26
46
  'getAllNotifications' : ActorMethod<[], Array<EmailNotification>>,
47
+ 'getCycles' : ActorMethod<[], bigint>,
48
+ 'getExpiryWarningStatus' : ActorMethod<
49
+ [],
50
+ { 'timerActive' : boolean, 'lastCheckTime' : bigint }
51
+ >,
52
+ 'getLandRegistryNotifications' : ActorMethod<
53
+ [string],
54
+ Array<EmailNotification>
55
+ >,
27
56
  'getNotification' : ActorMethod<[bigint], [] | [EmailNotification]>,
57
+ 'getTransactionManagerCanister' : ActorMethod<[], string>,
28
58
  'getUnprocessedCount' : ActorMethod<[], bigint>,
59
+ 'getUnprocessedLRNotifications' : ActorMethod<[], Array<EmailNotification>>,
29
60
  'getUnprocessedNotifications' : ActorMethod<[], Array<EmailNotification>>,
61
+ 'getUserManagementCanister' : ActorMethod<[], string>,
30
62
  'markAsProcessed' : ActorMethod<[bigint], boolean>,
63
+ 'sendBudgetAlert' : ActorMethod<
64
+ [string, string, bigint, bigint, bigint],
65
+ bigint
66
+ >,
67
+ 'sendLandRegistryNotification' : ActorMethod<
68
+ [string, string, string, string, string, string, string],
69
+ bigint
70
+ >,
71
+ 'setTransactionManagerCanister' : ActorMethod<[string], Result>,
72
+ 'setUserManagementCanister' : ActorMethod<[string], Result>,
73
+ 'submitEmailVerification' : ActorMethod<[string, string, string], bigint>,
74
+ 'submitMessageNotification' : ActorMethod<
75
+ [string, string, string, string, string, string, string, string, string],
76
+ bigint
77
+ >,
31
78
  'submitPartnerInquiry' : ActorMethod<
32
79
  [string, string, string, string, string, string],
33
80
  bigint
@@ -1,8 +1,19 @@
1
1
  export const idlFactory = ({ IDL }) => {
2
+ const Result_1 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
3
+ const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
2
4
  const ContactType = IDL.Variant({
5
+ 'lr_budget_alert' : IDL.Null,
6
+ 'lr_application_submitted' : IDL.Null,
7
+ 'message_notification' : IDL.Null,
3
8
  'support' : IDL.Null,
4
9
  'partners' : IDL.Null,
5
10
  'sales' : IDL.Null,
11
+ 'lr_search_expiry_warning' : IDL.Null,
12
+ 'email_verification' : IDL.Null,
13
+ 'lr_official_search_complete' : IDL.Null,
14
+ 'lr_requisition_raised' : IDL.Null,
15
+ 'lr_application_registered' : IDL.Null,
16
+ 'lr_status_change' : IDL.Null,
6
17
  });
7
18
  const EmailNotification = IDL.Record({
8
19
  'id' : IDL.Nat,
@@ -10,8 +21,11 @@ export const idlFactory = ({ IDL }) => {
10
21
  'contactType' : ContactType,
11
22
  'subject' : IDL.Text,
12
23
  'partnerType' : IDL.Opt(IDL.Text),
24
+ 'titleNumber' : IDL.Opt(IDL.Text),
13
25
  'name' : IDL.Text,
14
26
  'volume' : IDL.Opt(IDL.Text),
27
+ 'propertyAddress' : IDL.Opt(IDL.Text),
28
+ 'lrNotificationType' : IDL.Opt(IDL.Text),
15
29
  'email' : IDL.Text,
16
30
  'website' : IDL.Opt(IDL.Text),
17
31
  'company' : IDL.Opt(IDL.Text),
@@ -19,8 +33,12 @@ export const idlFactory = ({ IDL }) => {
19
33
  'timestamp' : IDL.Int,
20
34
  'phone' : IDL.Opt(IDL.Text),
21
35
  'processed' : IDL.Bool,
36
+ 'transactionId' : IDL.Opt(IDL.Text),
22
37
  });
23
38
  return IDL.Service({
39
+ 'checkAndSendExpiryWarnings' : IDL.Func([IDL.Nat], [Result_1], []),
40
+ 'disableExpiryWarningTimer' : IDL.Func([], [Result], []),
41
+ 'enableExpiryWarningTimer' : IDL.Func([], [Result], []),
24
42
  'formatNotificationAsEmail' : IDL.Func(
25
43
  [IDL.Nat],
26
44
  [IDL.Opt(IDL.Text)],
@@ -31,18 +49,68 @@ export const idlFactory = ({ IDL }) => {
31
49
  [IDL.Vec(EmailNotification)],
32
50
  ['query'],
33
51
  ),
52
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
53
+ 'getExpiryWarningStatus' : IDL.Func(
54
+ [],
55
+ [IDL.Record({ 'timerActive' : IDL.Bool, 'lastCheckTime' : IDL.Int })],
56
+ ['query'],
57
+ ),
58
+ 'getLandRegistryNotifications' : IDL.Func(
59
+ [IDL.Text],
60
+ [IDL.Vec(EmailNotification)],
61
+ ['query'],
62
+ ),
34
63
  'getNotification' : IDL.Func(
35
64
  [IDL.Nat],
36
65
  [IDL.Opt(EmailNotification)],
37
66
  ['query'],
38
67
  ),
68
+ 'getTransactionManagerCanister' : IDL.Func([], [IDL.Text], ['query']),
39
69
  'getUnprocessedCount' : IDL.Func([], [IDL.Nat], ['query']),
70
+ 'getUnprocessedLRNotifications' : IDL.Func(
71
+ [],
72
+ [IDL.Vec(EmailNotification)],
73
+ ['query'],
74
+ ),
40
75
  'getUnprocessedNotifications' : IDL.Func(
41
76
  [],
42
77
  [IDL.Vec(EmailNotification)],
43
78
  ['query'],
44
79
  ),
80
+ 'getUserManagementCanister' : IDL.Func([], [IDL.Text], ['query']),
45
81
  'markAsProcessed' : IDL.Func([IDL.Nat], [IDL.Bool], []),
82
+ 'sendBudgetAlert' : IDL.Func(
83
+ [IDL.Text, IDL.Text, IDL.Nat, IDL.Nat, IDL.Nat],
84
+ [IDL.Nat],
85
+ [],
86
+ ),
87
+ 'sendLandRegistryNotification' : IDL.Func(
88
+ [IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
89
+ [IDL.Nat],
90
+ [],
91
+ ),
92
+ 'setTransactionManagerCanister' : IDL.Func([IDL.Text], [Result], []),
93
+ 'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
94
+ 'submitEmailVerification' : IDL.Func(
95
+ [IDL.Text, IDL.Text, IDL.Text],
96
+ [IDL.Nat],
97
+ [],
98
+ ),
99
+ 'submitMessageNotification' : IDL.Func(
100
+ [
101
+ IDL.Text,
102
+ IDL.Text,
103
+ IDL.Text,
104
+ IDL.Text,
105
+ IDL.Text,
106
+ IDL.Text,
107
+ IDL.Text,
108
+ IDL.Text,
109
+ IDL.Text,
110
+ ],
111
+ [IDL.Nat],
112
+ [],
113
+ ),
46
114
  'submitPartnerInquiry' : IDL.Func(
47
115
  [IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text, IDL.Text],
48
116
  [IDL.Nat],
@@ -1,3 +1,8 @@
1
+ type TransformArgs =
2
+ record {
3
+ context: blob;
4
+ response: HttpResponse;
5
+ };
1
6
  type TransactionStatus =
2
7
  variant {
3
8
  confirmed;
@@ -6,21 +11,36 @@ type TransactionStatus =
6
11
  requires_manual_review;
7
12
  sent_to_lr;
8
13
  };
9
- type Result_4 =
14
+ type Result_7 =
10
15
  variant {
11
16
  err: text;
12
17
  ok: LandRegistryAPIResponse;
13
18
  };
14
- type Result_3 =
19
+ type Result_6 =
15
20
  variant {
16
21
  err: text;
17
22
  ok: nat32;
18
23
  };
19
- type Result_2 =
24
+ type Result_5 =
20
25
  variant {
21
26
  err: text;
22
27
  ok: OwnershipTransferPayload;
23
28
  };
29
+ type Result_4 =
30
+ variant {
31
+ err: text;
32
+ ok: nat;
33
+ };
34
+ type Result_3 =
35
+ variant {
36
+ err: text;
37
+ ok: OfficialSearchResponse;
38
+ };
39
+ type Result_2 =
40
+ variant {
41
+ err: text;
42
+ ok;
43
+ };
24
44
  type Result_1 =
25
45
  variant {
26
46
  err: text;
@@ -31,6 +51,15 @@ type Result =
31
51
  err: text;
32
52
  ok: bool;
33
53
  };
54
+ type RateLimitInfo =
55
+ record {
56
+ callsThisHour: nat;
57
+ callsToday: nat;
58
+ dayResetAt: int;
59
+ endpoint: text;
60
+ hourResetAt: int;
61
+ lastCallAt: int;
62
+ };
34
63
  type Period =
35
64
  variant {
36
65
  day;
@@ -56,6 +85,20 @@ type OwnershipTransferPayload =
56
85
  transactionDate: int;
57
86
  transferID: text;
58
87
  };
88
+ type OfficialSearchResponse =
89
+ record {
90
+ advisoryEntries: vec text;
91
+ certificatePdfHash: opt text;
92
+ certificateTimestamp: text;
93
+ documentStorageId: opt nat;
94
+ httpStatus: nat;
95
+ officialCopyTimestamp: opt text;
96
+ priorityExpiry: text;
97
+ registerChangedSinceSearchFromDate: bool;
98
+ registeredProprietorNames: vec text;
99
+ resultContainsAdvisoryEntries: bool;
100
+ searchRef: text;
101
+ };
59
102
  type NewOwnerInfo =
60
103
  record {
61
104
  address: text;
@@ -94,14 +137,6 @@ type LandRegistryAPIResponse =
94
137
  responseID: text;
95
138
  status: LRStatus;
96
139
  };
97
- type LandRegistryAPICredentials =
98
- record {
99
- apiEndpoint: text;
100
- apiKey: text;
101
- authenticationType: AuthenticationType;
102
- environment: Environment;
103
- lastValidated: int;
104
- };
105
140
  type LRStatus =
106
141
  variant {
107
142
  failed;
@@ -109,28 +144,83 @@ type LRStatus =
109
144
  received;
110
145
  registered;
111
146
  };
147
+ type HttpResponse =
148
+ record {
149
+ body: blob;
150
+ headers: vec HttpHeader;
151
+ status: nat;
152
+ };
153
+ type HttpHeader =
154
+ record {
155
+ name: text;
156
+ value: text;
157
+ };
112
158
  type Environment =
113
159
  variant {
114
160
  production;
115
161
  sandbox;
116
162
  };
163
+ type CredentialStatus =
164
+ record {
165
+ daysSinceRotation: opt nat;
166
+ environment: opt Environment;
167
+ isConfigured: bool;
168
+ isExpired: bool;
169
+ lastRotated: opt int;
170
+ };
171
+ type CostSummary =
172
+ record {
173
+ byEndpoint: vec record {
174
+ text;
175
+ nat;
176
+ };
177
+ byTransaction: vec record {
178
+ text;
179
+ nat;
180
+ };
181
+ entryCount: nat;
182
+ totalPence: nat;
183
+ };
117
184
  type ConveyancerInfo =
118
185
  record {
119
186
  contactEmail: text;
120
187
  licenseNumber: text;
121
188
  name: text;
122
189
  };
123
- type AuthenticationType =
190
+ type AuditEntry =
191
+ record {
192
+ action: text;
193
+ actorType: ActorType;
194
+ caller: principal;
195
+ delegatedBy: opt principal;
196
+ details: text;
197
+ success: bool;
198
+ timestamp: int;
199
+ };
200
+ type ActorType =
124
201
  variant {
125
- api_key;
126
- oauth2;
202
+ agent;
203
+ systemActor;
204
+ user;
127
205
  };
128
206
  service : {
129
207
  check_land_registry_status: (transactionID: text) ->
130
208
  (opt LandRegistryTransactionRecord) query;
131
- configure_land_registry_api: (credentials: LandRegistryAPICredentials) ->
132
- (Result_1);
209
+ getAuditLog: () -> (vec AuditEntry) query;
210
+ getCredentialStatus: () -> (CredentialStatus) query;
133
211
  getCycles: () -> (nat) query;
212
+ getDailySpend: () -> (nat) query;
213
+ getNotificationPollingStatus: () ->
214
+ (record {
215
+ enabled: bool;
216
+ intervalSeconds: nat;
217
+ lastPollAt: int;
218
+ }) query;
219
+ getRateLimitStatus: () -> (vec record {
220
+ text;
221
+ RateLimitInfo;
222
+ }) query;
223
+ getTotalCosts: (fromDate: int, toDate: int) -> (CostSummary) query;
134
224
  get_all_pending_land_registry_submissions: (companyAccountID: text) ->
135
225
  (vec LandRegistryTransactionRecord) query;
136
226
  get_all_transactions: () ->
@@ -147,9 +237,9 @@ service : {
147
237
  environment: Environment;
148
238
  lastValidated: int;
149
239
  }) query;
150
- get_lr_response: (confirmationID: text) -> (Result_4) query;
240
+ get_lr_response: (confirmationID: text) -> (Result_7) query;
151
241
  log_land_registry_error: (transactionID: text, errorDetails: text) ->
152
- (Result_3);
242
+ (Result_6);
153
243
  prepare_ownership_transfer_payload: (transactionID: text,
154
244
  blockchainTransactionID: text, propertyAddress: text, postcode: text,
155
245
  titleNumber: text, previousOwner: text, newOwnerDetails: NewOwnerInfo,
@@ -157,13 +247,22 @@ service : {
157
247
  buyerSolicitorSignature: text, sellerSolicitorSignature: text,
158
248
  blockchainProofHash: text, blockchainCompletionProof: text,
159
249
  contractExchangeTimestamp: int, blockchainCompletionTimestamp: int) ->
160
- (Result_2);
250
+ (Result_5);
161
251
  receive_land_registry_callback: (callbackData: LandRegistryAPIResponse) ->
162
252
  (Result_1);
253
+ recordAuditEntry: (actorType: ActorType, delegatedBy: opt principal,
254
+ action: text, details: text, success: bool) -> (Result_4);
255
+ requestOfficialSearch: (titleNumber: text, searchFromDate: text,
256
+ proprietorNames: vec text, transactionId: text) -> (Result_3);
163
257
  retry_failed_land_registry_transmission: (transactionID: text) ->
164
258
  (Result_1);
165
259
  send_to_land_registry: (transactionID: text) -> (Result_1);
260
+ setDailySpendLimit: (limitPence: nat) -> (Result_2);
261
+ setNotificationPolling: (enabled: bool, intervalSeconds: opt nat) ->
262
+ (Result_2);
263
+ setUserManagementCanisterId: (canisterId: text) -> (Result_2);
166
264
  simulate_land_registry_processing: (confirmationNumber: text) -> (Result_1);
265
+ transform: (args: TransformArgs) -> (HttpResponse) query;
167
266
  validate_land_registry_connection: () -> (Result);
168
267
  verify_land_registry_receipt: (transactionID: text) -> (Result);
169
268
  }
@@ -2,26 +2,48 @@ import type { Principal } from '@dfinity/principal';
2
2
  import type { ActorMethod } from '@dfinity/agent';
3
3
  import type { IDL } from '@dfinity/candid';
4
4
 
5
- export type AuthenticationType = { 'api_key' : null } |
6
- { 'oauth2' : null };
5
+ export type ActorType = { 'agent' : null } |
6
+ { 'systemActor' : null } |
7
+ { 'user' : null };
8
+ export interface AuditEntry {
9
+ 'action' : string,
10
+ 'actorType' : ActorType,
11
+ 'delegatedBy' : [] | [Principal],
12
+ 'timestamp' : bigint,
13
+ 'details' : string,
14
+ 'caller' : Principal,
15
+ 'success' : boolean,
16
+ }
7
17
  export interface ConveyancerInfo {
8
18
  'name' : string,
9
19
  'contactEmail' : string,
10
20
  'licenseNumber' : string,
11
21
  }
22
+ export interface CostSummary {
23
+ 'entryCount' : bigint,
24
+ 'byEndpoint' : Array<[string, bigint]>,
25
+ 'totalPence' : bigint,
26
+ 'byTransaction' : Array<[string, bigint]>,
27
+ }
28
+ export interface CredentialStatus {
29
+ 'isExpired' : boolean,
30
+ 'isConfigured' : boolean,
31
+ 'lastRotated' : [] | [bigint],
32
+ 'environment' : [] | [Environment],
33
+ 'daysSinceRotation' : [] | [bigint],
34
+ }
12
35
  export type Environment = { 'sandbox' : null } |
13
36
  { 'production' : null };
37
+ export interface HttpHeader { 'value' : string, 'name' : string }
38
+ export interface HttpResponse {
39
+ 'status' : bigint,
40
+ 'body' : Uint8Array | number[],
41
+ 'headers' : Array<HttpHeader>,
42
+ }
14
43
  export type LRStatus = { 'processing' : null } |
15
44
  { 'received' : null } |
16
45
  { 'failed' : null } |
17
46
  { 'registered' : null };
18
- export interface LandRegistryAPICredentials {
19
- 'authenticationType' : AuthenticationType,
20
- 'lastValidated' : bigint,
21
- 'apiEndpoint' : string,
22
- 'apiKey' : string,
23
- 'environment' : Environment,
24
- }
25
47
  export interface LandRegistryAPIResponse {
26
48
  'status' : LRStatus,
27
49
  'registeredTimestamp' : [] | [bigint],
@@ -56,6 +78,19 @@ export interface NewOwnerInfo {
56
78
  'address' : string,
57
79
  'contactEmail' : string,
58
80
  }
81
+ export interface OfficialSearchResponse {
82
+ 'httpStatus' : bigint,
83
+ 'officialCopyTimestamp' : [] | [string],
84
+ 'advisoryEntries' : Array<string>,
85
+ 'documentStorageId' : [] | [bigint],
86
+ 'certificatePdfHash' : [] | [string],
87
+ 'registeredProprietorNames' : Array<string>,
88
+ 'certificateTimestamp' : string,
89
+ 'resultContainsAdvisoryEntries' : boolean,
90
+ 'registerChangedSinceSearchFromDate' : boolean,
91
+ 'priorityExpiry' : string,
92
+ 'searchRef' : string,
93
+ }
59
94
  export interface OwnershipTransferPayload {
60
95
  'transactionDate' : bigint,
61
96
  'postcode' : string,
@@ -77,31 +112,54 @@ export type Period = { 'day' : null } |
77
112
  { 'month' : null } |
78
113
  { 'week' : null } |
79
114
  { 'year' : null };
115
+ export interface RateLimitInfo {
116
+ 'callsThisHour' : bigint,
117
+ 'endpoint' : string,
118
+ 'dayResetAt' : bigint,
119
+ 'lastCallAt' : bigint,
120
+ 'callsToday' : bigint,
121
+ 'hourResetAt' : bigint,
122
+ }
80
123
  export type Result = { 'ok' : boolean } |
81
124
  { 'err' : string };
82
125
  export type Result_1 = { 'ok' : string } |
83
126
  { 'err' : string };
84
- export type Result_2 = { 'ok' : OwnershipTransferPayload } |
127
+ export type Result_2 = { 'ok' : null } |
128
+ { 'err' : string };
129
+ export type Result_3 = { 'ok' : OfficialSearchResponse } |
130
+ { 'err' : string };
131
+ export type Result_4 = { 'ok' : bigint } |
85
132
  { 'err' : string };
86
- export type Result_3 = { 'ok' : number } |
133
+ export type Result_5 = { 'ok' : OwnershipTransferPayload } |
87
134
  { 'err' : string };
88
- export type Result_4 = { 'ok' : LandRegistryAPIResponse } |
135
+ export type Result_6 = { 'ok' : number } |
136
+ { 'err' : string };
137
+ export type Result_7 = { 'ok' : LandRegistryAPIResponse } |
89
138
  { 'err' : string };
90
139
  export type TransactionStatus = { 'sent_to_lr' : null } |
91
140
  { 'requires_manual_review' : null } |
92
141
  { 'pending_api_call' : null } |
93
142
  { 'confirmed' : null } |
94
143
  { 'failed' : null };
144
+ export interface TransformArgs {
145
+ 'context' : Uint8Array | number[],
146
+ 'response' : HttpResponse,
147
+ }
95
148
  export interface _SERVICE {
96
149
  'check_land_registry_status' : ActorMethod<
97
150
  [string],
98
151
  [] | [LandRegistryTransactionRecord]
99
152
  >,
100
- 'configure_land_registry_api' : ActorMethod<
101
- [LandRegistryAPICredentials],
102
- Result_1
103
- >,
153
+ 'getAuditLog' : ActorMethod<[], Array<AuditEntry>>,
154
+ 'getCredentialStatus' : ActorMethod<[], CredentialStatus>,
104
155
  'getCycles' : ActorMethod<[], bigint>,
156
+ 'getDailySpend' : ActorMethod<[], bigint>,
157
+ 'getNotificationPollingStatus' : ActorMethod<
158
+ [],
159
+ { 'enabled' : boolean, 'intervalSeconds' : bigint, 'lastPollAt' : bigint }
160
+ >,
161
+ 'getRateLimitStatus' : ActorMethod<[], Array<[string, RateLimitInfo]>>,
162
+ 'getTotalCosts' : ActorMethod<[bigint, bigint], CostSummary>,
105
163
  'get_all_pending_land_registry_submissions' : ActorMethod<
106
164
  [string],
107
165
  Array<LandRegistryTransactionRecord>
@@ -121,8 +179,8 @@ export interface _SERVICE {
121
179
  }
122
180
  ]
123
181
  >,
124
- 'get_lr_response' : ActorMethod<[string], Result_4>,
125
- 'log_land_registry_error' : ActorMethod<[string, string], Result_3>,
182
+ 'get_lr_response' : ActorMethod<[string], Result_7>,
183
+ 'log_land_registry_error' : ActorMethod<[string, string], Result_6>,
126
184
  'prepare_ownership_transfer_payload' : ActorMethod<
127
185
  [
128
186
  string,
@@ -141,15 +199,27 @@ export interface _SERVICE {
141
199
  bigint,
142
200
  bigint,
143
201
  ],
144
- Result_2
202
+ Result_5
145
203
  >,
146
204
  'receive_land_registry_callback' : ActorMethod<
147
205
  [LandRegistryAPIResponse],
148
206
  Result_1
149
207
  >,
208
+ 'recordAuditEntry' : ActorMethod<
209
+ [ActorType, [] | [Principal], string, string, boolean],
210
+ Result_4
211
+ >,
212
+ 'requestOfficialSearch' : ActorMethod<
213
+ [string, string, Array<string>, string],
214
+ Result_3
215
+ >,
150
216
  'retry_failed_land_registry_transmission' : ActorMethod<[string], Result_1>,
151
217
  'send_to_land_registry' : ActorMethod<[string], Result_1>,
218
+ 'setDailySpendLimit' : ActorMethod<[bigint], Result_2>,
219
+ 'setNotificationPolling' : ActorMethod<[boolean, [] | [bigint]], Result_2>,
220
+ 'setUserManagementCanisterId' : ActorMethod<[string], Result_2>,
152
221
  'simulate_land_registry_processing' : ActorMethod<[string], Result_1>,
222
+ 'transform' : ActorMethod<[TransformArgs], HttpResponse>,
153
223
  'validate_land_registry_connection' : ActorMethod<[], Result>,
154
224
  'verify_land_registry_receipt' : ActorMethod<[string], Result>,
155
225
  }