@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,7 +1,159 @@
1
- export function idlFactory({ IDL }: {
2
- IDL: any;
3
- }): any;
4
- export function init({ IDL }: {
5
- IDL: any;
6
- }): never[];
7
- //# sourceMappingURL=document_storage.did.d.ts.map
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 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,151 +1,230 @@
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 });
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([IDL.Text], [IDL.Opt(DocumentProof)], ['query']),
90
- 'getDocumentMetadata': IDL.Func([IDL.Nat], [Result_5], ['query']),
91
- 'getDocumentProof': IDL.Func([IDL.Nat], [IDL.Opt(DocumentProof)], ['query']),
92
- 'getDocumentUploadStatus': IDL.Func([IDL.Nat], [Result_4], ['query']),
93
- 'getDocumentVerificationCanister': IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
94
- 'getExpiredLandRegistryDocuments': IDL.Func([], [IDL.Vec(DocumentProof)], ['query']),
95
- 'getLandRegistryCanister': IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
96
- 'getLandRegistryDocumentsForTitle': IDL.Func([IDL.Text], [IDL.Vec(DocumentProof)], ['query']),
97
- 'getLandRegistryDocumentsForTransaction': IDL.Func([IDL.Text], [IDL.Vec(DocumentProof)], ['query']),
98
- 'getMyAuditLogs': IDL.Func([IDL.Principal], [IDL.Vec(AuditLog)], ['query']),
99
- 'getRecentAuditLogs': IDL.Func([IDL.Nat], [IDL.Vec(AuditLog)], ['query']),
100
- 'getStorageStats': IDL.Func([], [
101
- IDL.Record({
102
- 'averageFileSizeBytes': IDL.Nat,
103
- 'totalSizeBytes': IDL.Nat,
104
- 'verifiedDocuments': IDL.Nat,
105
- 'totalDocuments': IDL.Nat,
106
- }),
107
- ], ['query']),
108
- 'getTransactionDocuments': IDL.Func([IDL.Text], [IDL.Vec(DocumentProof)], ['query']),
109
- 'getTransactionManagerCanister': IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
110
- 'getUserManagementCanister': IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
111
- 'markDocumentDeleted': IDL.Func([IDL.Nat, IDL.Text], [Result_2], []),
112
- 'recordAuditEntry': IDL.Func([
113
- ActorType,
114
- IDL.Opt(IDL.Principal),
115
- IDL.Text,
116
- IDL.Nat,
117
- IDL.Bool,
118
- IDL.Text,
119
- ], [Result_3], []),
120
- 'registerDocumentProof': IDL.Func([
121
- IDL.Text,
122
- IDL.Text,
123
- IDL.Nat,
124
- IDL.Text,
125
- IDL.Text,
126
- IDL.Opt(IDL.Text),
127
- IDL.Text,
128
- IDL.Text,
129
- ], [Result_3], []),
130
- 'registerLandRegistryDocument': IDL.Func([
131
- IDL.Text,
132
- IDL.Text,
133
- IDL.Text,
134
- IDL.Text,
135
- IDL.Nat,
136
- IDL.Text,
137
- IDL.Text,
138
- IDL.Opt(IDL.Int),
139
- IDL.Nat,
140
- ], [Result_3], []),
141
- 'setDocumentVerificationCanister': IDL.Func([IDL.Principal], [Result_2], []),
142
- 'setLandRegistryCanister': IDL.Func([IDL.Principal], [Result_2], []),
143
- 'setTransactionManagerCanister': IDL.Func([IDL.Principal, IDL.Text], [Result_2], []),
144
- 'setUserManagementCanister': IDL.Func([IDL.Principal, IDL.Text], [Result_2], []),
145
- 'uploadDocumentChunk': IDL.Func([IDL.Nat, IDL.Nat, IDL.Vec(IDL.Nat8), IDL.Text], [Result_1], []),
146
- 'validateCSRFToken': IDL.Func([IDL.Text], [IDL.Bool], []),
147
- 'verifyDocumentHash': IDL.Func([IDL.Nat, IDL.Text, IDL.Text], [Result], []),
148
- });
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
+ });
149
229
  };
150
230
  export const init = ({ IDL }) => { return []; };
151
- //# sourceMappingURL=document_storage.did.js.map