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