@propxchain/core-client 0.2.1-canary.20 → 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 -20
  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 -195
  39. package/src/canisters/user_management/user_management.did.d.ts +267 -191
  40. package/src/canisters/user_management/user_management.did.js +352 -237
@@ -1,82 +1,159 @@
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
- 'metadata' : string,
9
- 'timestamp' : Time,
10
- 'success' : boolean,
11
- 'documentId' : bigint,
12
- 'actorPrincipal' : Principal,
13
- }
14
- export interface DocumentProof {
15
- 'id' : bigint,
16
- 'verified' : boolean,
17
- 'contentType' : string,
18
- 'fileHash' : string,
19
- 'fileName' : string,
20
- 'fileSize' : bigint,
21
- 'storageLocation' : string,
22
- 'docType' : string,
23
- 'uploadedAt' : Time,
24
- 'uploadedBy' : Principal,
25
- 'transactionId' : [] | [string],
26
- }
27
- export type Result = { 'ok' : boolean } |
28
- { 'err' : string };
29
- export type Result_1 = { 'ok' : string } |
30
- { 'err' : string };
31
- export type Result_2 = { 'ok' : bigint } |
32
- { 'err' : string };
33
- export type Result_3 = {
34
- 'ok' : {
35
- 'id' : bigint,
36
- 'contentType' : string,
37
- 'fileHash' : string,
38
- 'fileName' : string,
39
- 'fileSize' : bigint,
40
- 'totalChunks' : bigint,
41
- 'docType' : string,
42
- 'uploadedAt' : bigint,
43
- 'uploadedBy' : Principal,
44
- 'transactionId' : [] | [string],
45
- }
46
- } |
47
- { 'err' : string };
48
- export type Time = bigint;
49
- export interface _SERVICE {
50
- 'deleteDocument' : ActorMethod<[bigint, string], Result_1>,
51
- 'generateCSRFToken' : ActorMethod<[], string>,
52
- 'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
53
- 'getCSRFToken' : ActorMethod<[], [] | [string]>,
54
- 'getCycles' : ActorMethod<[], bigint>,
55
- 'getDocumentMetadata' : ActorMethod<[bigint], Result_3>,
56
- 'getDocumentProof' : ActorMethod<[bigint], [] | [DocumentProof]>,
57
- 'getMyAuditLogs' : ActorMethod<[Principal], Array<AuditLog>>,
58
- 'getRecentAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
59
- 'getStorageStats' : ActorMethod<
60
- [],
61
- {
62
- 'averageFileSizeBytes' : bigint,
63
- 'totalSizeBytes' : bigint,
64
- 'verifiedDocuments' : bigint,
65
- 'totalDocuments' : bigint,
66
- }
67
- >,
68
- 'getTransactionDocuments' : ActorMethod<[string], Array<DocumentProof>>,
69
- 'getTransactionManagerCanister' : ActorMethod<[], [] | [Principal]>,
70
- 'getUserManagementCanister' : ActorMethod<[], [] | [Principal]>,
71
- 'markDocumentDeleted' : ActorMethod<[bigint, string], Result_1>,
72
- 'registerDocumentProof' : ActorMethod<
73
- [string, string, bigint, string, string, [] | [string], string, string],
74
- Result_2
75
- >,
76
- 'setTransactionManagerCanister' : ActorMethod<[Principal, string], Result_1>,
77
- 'setUserManagementCanister' : ActorMethod<[Principal, string], Result_1>,
78
- 'validateCSRFToken' : ActorMethod<[string], boolean>,
79
- 'verifyDocumentHash' : ActorMethod<[bigint, string, string], Result>,
80
- }
81
- export declare const idlFactory: IDL.InterfaceFactory;
82
- 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
+ 'metadata' : string,
13
+ 'delegatedBy' : [] | [Principal],
14
+ 'timestamp' : Time,
15
+ 'success' : boolean,
16
+ 'documentId' : bigint,
17
+ 'actorPrincipal' : Principal,
18
+ }
19
+ export interface DocumentProof {
20
+ 'id' : bigint,
21
+ 'verified' : boolean,
22
+ 'uploadedChunks' : bigint,
23
+ 'contentType' : string,
24
+ 'titleNumber' : [] | [string],
25
+ 'fileHash' : string,
26
+ 'fileName' : string,
27
+ 'fileSize' : bigint,
28
+ 'documentSource' : DocumentSource,
29
+ 'totalChunks' : bigint,
30
+ 'fetchedFromApi' : boolean,
31
+ 'apiCostPence' : [] | [bigint],
32
+ 'landRegistryReference' : [] | [string],
33
+ 'storageLocation' : string,
34
+ 'docType' : string,
35
+ 'uploadedAt' : Time,
36
+ 'uploadedBy' : Principal,
37
+ 'validUntil' : [] | [bigint],
38
+ 'transactionId' : [] | [string],
39
+ }
40
+ export type DocumentSource = { 'UserUploaded' : null } |
41
+ { 'LandRegistryAPI' : null } |
42
+ { 'LandRegistryNotification' : null } |
43
+ { 'SystemGenerated' : null };
44
+ export type Result = { 'ok' : boolean } |
45
+ { 'err' : string };
46
+ export type Result_1 = {
47
+ 'ok' : {
48
+ 'uploadedChunks' : bigint,
49
+ 'totalChunks' : bigint,
50
+ 'isComplete' : boolean,
51
+ }
52
+ } |
53
+ { 'err' : string };
54
+ export type Result_2 = { 'ok' : string } |
55
+ { 'err' : string };
56
+ export type Result_3 = { 'ok' : bigint } |
57
+ { 'err' : string };
58
+ export type Result_4 = {
59
+ 'ok' : {
60
+ 'uploadedChunks' : bigint,
61
+ 'totalChunks' : bigint,
62
+ 'missingChunks' : Array<bigint>,
63
+ 'isComplete' : boolean,
64
+ }
65
+ } |
66
+ { 'err' : string };
67
+ export type Result_5 = {
68
+ 'ok' : {
69
+ 'id' : bigint,
70
+ 'contentType' : string,
71
+ 'fileHash' : string,
72
+ 'fileName' : string,
73
+ 'fileSize' : bigint,
74
+ 'totalChunks' : bigint,
75
+ 'docType' : string,
76
+ 'uploadedAt' : bigint,
77
+ 'uploadedBy' : Principal,
78
+ 'transactionId' : [] | [string],
79
+ }
80
+ } |
81
+ { 'err' : string };
82
+ export type Result_6 = { 'ok' : Uint8Array | number[] } |
83
+ { 'err' : string };
84
+ export type Time = bigint;
85
+ export interface _SERVICE {
86
+ 'deleteDocument' : ActorMethod<[bigint, string], Result_2>,
87
+ 'downloadDocumentChunk' : ActorMethod<[bigint, bigint], Result_6>,
88
+ 'generateCSRFToken' : ActorMethod<[], string>,
89
+ 'getAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
90
+ 'getCSRFToken' : ActorMethod<[], [] | [string]>,
91
+ 'getCycles' : ActorMethod<[], bigint>,
92
+ 'getDocumentByLandRegistryReference' : ActorMethod<
93
+ [string],
94
+ [] | [DocumentProof]
95
+ >,
96
+ 'getDocumentMetadata' : ActorMethod<[bigint], Result_5>,
97
+ 'getDocumentProof' : ActorMethod<[bigint], [] | [DocumentProof]>,
98
+ 'getDocumentUploadStatus' : ActorMethod<[bigint], Result_4>,
99
+ 'getDocumentVerificationCanister' : ActorMethod<[], [] | [Principal]>,
100
+ 'getExpiredLandRegistryDocuments' : ActorMethod<[], Array<DocumentProof>>,
101
+ 'getLandRegistryCanister' : ActorMethod<[], [] | [Principal]>,
102
+ 'getLandRegistryDocumentsForTitle' : ActorMethod<
103
+ [string],
104
+ Array<DocumentProof>
105
+ >,
106
+ 'getLandRegistryDocumentsForTransaction' : ActorMethod<
107
+ [string],
108
+ Array<DocumentProof>
109
+ >,
110
+ 'getMyAuditLogs' : ActorMethod<[Principal], Array<AuditLog>>,
111
+ 'getRecentAuditLogs' : ActorMethod<[bigint], Array<AuditLog>>,
112
+ 'getStorageStats' : ActorMethod<
113
+ [],
114
+ {
115
+ 'averageFileSizeBytes' : bigint,
116
+ 'totalSizeBytes' : bigint,
117
+ 'verifiedDocuments' : bigint,
118
+ 'totalDocuments' : bigint,
119
+ }
120
+ >,
121
+ 'getTransactionDocuments' : ActorMethod<[string], Array<DocumentProof>>,
122
+ 'getTransactionManagerCanister' : ActorMethod<[], [] | [Principal]>,
123
+ 'getUserManagementCanister' : ActorMethod<[], [] | [Principal]>,
124
+ 'markDocumentDeleted' : ActorMethod<[bigint, string], Result_2>,
125
+ 'recordAuditEntry' : ActorMethod<
126
+ [ActorType, [] | [Principal], string, bigint, boolean, string],
127
+ Result_3
128
+ >,
129
+ 'registerDocumentProof' : ActorMethod<
130
+ [string, string, bigint, string, string, [] | [string], string, string],
131
+ Result_3
132
+ >,
133
+ 'registerLandRegistryDocument' : ActorMethod<
134
+ [
135
+ string,
136
+ string,
137
+ string,
138
+ string,
139
+ bigint,
140
+ string,
141
+ string,
142
+ [] | [bigint],
143
+ bigint,
144
+ ],
145
+ Result_3
146
+ >,
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>,
151
+ 'uploadDocumentChunk' : ActorMethod<
152
+ [bigint, bigint, Uint8Array | number[], string],
153
+ Result_1
154
+ >,
155
+ 'validateCSRFToken' : ActorMethod<[string], boolean>,
156
+ 'verifyDocumentHash' : ActorMethod<[bigint, string, string], Result>,
157
+ }
158
+ export declare const idlFactory: IDL.InterfaceFactory;
159
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,121 +1,230 @@
1
- export const idlFactory = ({ IDL }) => {
2
- const Result_1 = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
3
- const Time = IDL.Int;
4
- const AuditLog = IDL.Record({
5
- 'id' : IDL.Nat,
6
- 'action' : IDL.Text,
7
- 'metadata' : IDL.Text,
8
- 'timestamp' : Time,
9
- 'success' : IDL.Bool,
10
- 'documentId' : IDL.Nat,
11
- 'actorPrincipal' : IDL.Principal,
12
- });
13
- const Result_3 = IDL.Variant({
14
- 'ok' : IDL.Record({
15
- 'id' : IDL.Nat,
16
- 'contentType' : IDL.Text,
17
- 'fileHash' : IDL.Text,
18
- 'fileName' : IDL.Text,
19
- 'fileSize' : IDL.Nat,
20
- 'totalChunks' : IDL.Nat,
21
- 'docType' : IDL.Text,
22
- 'uploadedAt' : IDL.Int,
23
- 'uploadedBy' : IDL.Principal,
24
- 'transactionId' : IDL.Opt(IDL.Text),
25
- }),
26
- 'err' : IDL.Text,
27
- });
28
- const DocumentProof = IDL.Record({
29
- 'id' : IDL.Nat,
30
- 'verified' : IDL.Bool,
31
- 'contentType' : IDL.Text,
32
- 'fileHash' : IDL.Text,
33
- 'fileName' : IDL.Text,
34
- 'fileSize' : IDL.Nat,
35
- 'storageLocation' : IDL.Text,
36
- 'docType' : IDL.Text,
37
- 'uploadedAt' : Time,
38
- 'uploadedBy' : IDL.Principal,
39
- 'transactionId' : IDL.Opt(IDL.Text),
40
- });
41
- const Result_2 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
42
- const Result = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
43
- return IDL.Service({
44
- 'deleteDocument' : IDL.Func([IDL.Nat, IDL.Text], [Result_1], []),
45
- 'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
46
- 'getAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
47
- 'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
48
- 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
49
- 'getDocumentMetadata' : IDL.Func([IDL.Nat], [Result_3], ['query']),
50
- 'getDocumentProof' : IDL.Func(
51
- [IDL.Nat],
52
- [IDL.Opt(DocumentProof)],
53
- ['query'],
54
- ),
55
- 'getMyAuditLogs' : IDL.Func(
56
- [IDL.Principal],
57
- [IDL.Vec(AuditLog)],
58
- ['query'],
59
- ),
60
- 'getRecentAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
61
- 'getStorageStats' : IDL.Func(
62
- [],
63
- [
64
- IDL.Record({
65
- 'averageFileSizeBytes' : IDL.Nat,
66
- 'totalSizeBytes' : IDL.Nat,
67
- 'verifiedDocuments' : IDL.Nat,
68
- 'totalDocuments' : IDL.Nat,
69
- }),
70
- ],
71
- ['query'],
72
- ),
73
- 'getTransactionDocuments' : IDL.Func(
74
- [IDL.Text],
75
- [IDL.Vec(DocumentProof)],
76
- ['query'],
77
- ),
78
- 'getTransactionManagerCanister' : IDL.Func(
79
- [],
80
- [IDL.Opt(IDL.Principal)],
81
- ['query'],
82
- ),
83
- 'getUserManagementCanister' : IDL.Func(
84
- [],
85
- [IDL.Opt(IDL.Principal)],
86
- ['query'],
87
- ),
88
- 'markDocumentDeleted' : IDL.Func([IDL.Nat, IDL.Text], [Result_1], []),
89
- 'registerDocumentProof' : IDL.Func(
90
- [
91
- IDL.Text,
92
- IDL.Text,
93
- IDL.Nat,
94
- IDL.Text,
95
- IDL.Text,
96
- IDL.Opt(IDL.Text),
97
- IDL.Text,
98
- IDL.Text,
99
- ],
100
- [Result_2],
101
- [],
102
- ),
103
- 'setTransactionManagerCanister' : IDL.Func(
104
- [IDL.Principal, IDL.Text],
105
- [Result_1],
106
- [],
107
- ),
108
- 'setUserManagementCanister' : IDL.Func(
109
- [IDL.Principal, IDL.Text],
110
- [Result_1],
111
- [],
112
- ),
113
- 'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
114
- 'verifyDocumentHash' : IDL.Func(
115
- [IDL.Nat, IDL.Text, IDL.Text],
116
- [Result],
117
- [],
118
- ),
119
- });
120
- };
121
- export const init = ({ IDL }) => { return []; };
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 });
4
+ const ActorType = IDL.Variant({
5
+ 'agent' : IDL.Null,
6
+ 'systemActor' : IDL.Null,
7
+ 'user' : IDL.Null,
8
+ });
9
+ const Time = IDL.Int;
10
+ const AuditLog = IDL.Record({
11
+ 'id' : IDL.Nat,
12
+ 'action' : IDL.Text,
13
+ 'actorType' : ActorType,
14
+ 'metadata' : IDL.Text,
15
+ 'delegatedBy' : IDL.Opt(IDL.Principal),
16
+ 'timestamp' : Time,
17
+ 'success' : IDL.Bool,
18
+ 'documentId' : IDL.Nat,
19
+ 'actorPrincipal' : IDL.Principal,
20
+ });
21
+ const DocumentSource = IDL.Variant({
22
+ 'UserUploaded' : IDL.Null,
23
+ 'LandRegistryAPI' : IDL.Null,
24
+ 'LandRegistryNotification' : IDL.Null,
25
+ 'SystemGenerated' : IDL.Null,
26
+ });
27
+ const DocumentProof = IDL.Record({
28
+ 'id' : IDL.Nat,
29
+ 'verified' : IDL.Bool,
30
+ 'uploadedChunks' : IDL.Nat,
31
+ 'contentType' : IDL.Text,
32
+ 'titleNumber' : IDL.Opt(IDL.Text),
33
+ 'fileHash' : IDL.Text,
34
+ 'fileName' : IDL.Text,
35
+ 'fileSize' : IDL.Nat,
36
+ 'documentSource' : DocumentSource,
37
+ 'totalChunks' : IDL.Nat,
38
+ 'fetchedFromApi' : IDL.Bool,
39
+ 'apiCostPence' : IDL.Opt(IDL.Nat),
40
+ 'landRegistryReference' : IDL.Opt(IDL.Text),
41
+ 'storageLocation' : IDL.Text,
42
+ 'docType' : IDL.Text,
43
+ 'uploadedAt' : Time,
44
+ 'uploadedBy' : IDL.Principal,
45
+ 'validUntil' : IDL.Opt(IDL.Int),
46
+ 'transactionId' : IDL.Opt(IDL.Text),
47
+ });
48
+ const Result_5 = IDL.Variant({
49
+ 'ok' : IDL.Record({
50
+ 'id' : IDL.Nat,
51
+ 'contentType' : IDL.Text,
52
+ 'fileHash' : IDL.Text,
53
+ 'fileName' : IDL.Text,
54
+ 'fileSize' : IDL.Nat,
55
+ 'totalChunks' : IDL.Nat,
56
+ 'docType' : IDL.Text,
57
+ 'uploadedAt' : IDL.Int,
58
+ 'uploadedBy' : IDL.Principal,
59
+ 'transactionId' : IDL.Opt(IDL.Text),
60
+ }),
61
+ 'err' : IDL.Text,
62
+ });
63
+ const Result_4 = IDL.Variant({
64
+ 'ok' : IDL.Record({
65
+ 'uploadedChunks' : IDL.Nat,
66
+ 'totalChunks' : IDL.Nat,
67
+ 'missingChunks' : IDL.Vec(IDL.Nat),
68
+ 'isComplete' : IDL.Bool,
69
+ }),
70
+ 'err' : IDL.Text,
71
+ });
72
+ const Result_3 = IDL.Variant({ 'ok' : IDL.Nat, 'err' : IDL.Text });
73
+ const Result_1 = IDL.Variant({
74
+ 'ok' : IDL.Record({
75
+ 'uploadedChunks' : IDL.Nat,
76
+ 'totalChunks' : IDL.Nat,
77
+ 'isComplete' : IDL.Bool,
78
+ }),
79
+ 'err' : IDL.Text,
80
+ });
81
+ const Result = IDL.Variant({ 'ok' : IDL.Bool, 'err' : IDL.Text });
82
+ return IDL.Service({
83
+ 'deleteDocument' : IDL.Func([IDL.Nat, IDL.Text], [Result_2], []),
84
+ 'downloadDocumentChunk' : IDL.Func([IDL.Nat, IDL.Nat], [Result_6], []),
85
+ 'generateCSRFToken' : IDL.Func([], [IDL.Text], []),
86
+ 'getAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
87
+ 'getCSRFToken' : IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
88
+ 'getCycles' : IDL.Func([], [IDL.Nat], ['query']),
89
+ 'getDocumentByLandRegistryReference' : IDL.Func(
90
+ [IDL.Text],
91
+ [IDL.Opt(DocumentProof)],
92
+ ['query'],
93
+ ),
94
+ 'getDocumentMetadata' : IDL.Func([IDL.Nat], [Result_5], ['query']),
95
+ 'getDocumentProof' : IDL.Func(
96
+ [IDL.Nat],
97
+ [IDL.Opt(DocumentProof)],
98
+ ['query'],
99
+ ),
100
+ 'getDocumentUploadStatus' : IDL.Func([IDL.Nat], [Result_4], ['query']),
101
+ 'getDocumentVerificationCanister' : IDL.Func(
102
+ [],
103
+ [IDL.Opt(IDL.Principal)],
104
+ ['query'],
105
+ ),
106
+ 'getExpiredLandRegistryDocuments' : IDL.Func(
107
+ [],
108
+ [IDL.Vec(DocumentProof)],
109
+ ['query'],
110
+ ),
111
+ 'getLandRegistryCanister' : IDL.Func(
112
+ [],
113
+ [IDL.Opt(IDL.Principal)],
114
+ ['query'],
115
+ ),
116
+ 'getLandRegistryDocumentsForTitle' : IDL.Func(
117
+ [IDL.Text],
118
+ [IDL.Vec(DocumentProof)],
119
+ ['query'],
120
+ ),
121
+ 'getLandRegistryDocumentsForTransaction' : IDL.Func(
122
+ [IDL.Text],
123
+ [IDL.Vec(DocumentProof)],
124
+ ['query'],
125
+ ),
126
+ 'getMyAuditLogs' : IDL.Func(
127
+ [IDL.Principal],
128
+ [IDL.Vec(AuditLog)],
129
+ ['query'],
130
+ ),
131
+ 'getRecentAuditLogs' : IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
132
+ 'getStorageStats' : IDL.Func(
133
+ [],
134
+ [
135
+ IDL.Record({
136
+ 'averageFileSizeBytes' : IDL.Nat,
137
+ 'totalSizeBytes' : IDL.Nat,
138
+ 'verifiedDocuments' : IDL.Nat,
139
+ 'totalDocuments' : IDL.Nat,
140
+ }),
141
+ ],
142
+ ['query'],
143
+ ),
144
+ 'getTransactionDocuments' : IDL.Func(
145
+ [IDL.Text],
146
+ [IDL.Vec(DocumentProof)],
147
+ ['query'],
148
+ ),
149
+ 'getTransactionManagerCanister' : IDL.Func(
150
+ [],
151
+ [IDL.Opt(IDL.Principal)],
152
+ ['query'],
153
+ ),
154
+ 'getUserManagementCanister' : IDL.Func(
155
+ [],
156
+ [IDL.Opt(IDL.Principal)],
157
+ ['query'],
158
+ ),
159
+ 'markDocumentDeleted' : IDL.Func([IDL.Nat, IDL.Text], [Result_2], []),
160
+ 'recordAuditEntry' : IDL.Func(
161
+ [
162
+ ActorType,
163
+ IDL.Opt(IDL.Principal),
164
+ IDL.Text,
165
+ IDL.Nat,
166
+ IDL.Bool,
167
+ IDL.Text,
168
+ ],
169
+ [Result_3],
170
+ [],
171
+ ),
172
+ 'registerDocumentProof' : IDL.Func(
173
+ [
174
+ IDL.Text,
175
+ IDL.Text,
176
+ IDL.Nat,
177
+ IDL.Text,
178
+ IDL.Text,
179
+ IDL.Opt(IDL.Text),
180
+ IDL.Text,
181
+ IDL.Text,
182
+ ],
183
+ [Result_3],
184
+ [],
185
+ ),
186
+ 'registerLandRegistryDocument' : IDL.Func(
187
+ [
188
+ IDL.Text,
189
+ IDL.Text,
190
+ IDL.Text,
191
+ IDL.Text,
192
+ IDL.Nat,
193
+ IDL.Text,
194
+ IDL.Text,
195
+ IDL.Opt(IDL.Int),
196
+ IDL.Nat,
197
+ ],
198
+ [Result_3],
199
+ [],
200
+ ),
201
+ 'setDocumentVerificationCanister' : IDL.Func(
202
+ [IDL.Principal],
203
+ [Result_2],
204
+ [],
205
+ ),
206
+ 'setLandRegistryCanister' : IDL.Func([IDL.Principal], [Result_2], []),
207
+ 'setTransactionManagerCanister' : IDL.Func(
208
+ [IDL.Principal, IDL.Text],
209
+ [Result_2],
210
+ [],
211
+ ),
212
+ 'setUserManagementCanister' : IDL.Func(
213
+ [IDL.Principal, IDL.Text],
214
+ [Result_2],
215
+ [],
216
+ ),
217
+ 'uploadDocumentChunk' : IDL.Func(
218
+ [IDL.Nat, IDL.Nat, IDL.Vec(IDL.Nat8), IDL.Text],
219
+ [Result_1],
220
+ [],
221
+ ),
222
+ 'validateCSRFToken' : IDL.Func([IDL.Text], [IDL.Bool], []),
223
+ 'verifyDocumentHash' : IDL.Func(
224
+ [IDL.Nat, IDL.Text, IDL.Text],
225
+ [Result],
226
+ [],
227
+ ),
228
+ });
229
+ };
230
+ export const init = ({ IDL }) => { return []; };