@open-charging-cloud/chargy-gui 0.0.0-stage → 0.1.0

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 (170) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/LICENSE +661 -0
  3. package/README.md +48 -2
  4. package/SECURITY.md +21 -0
  5. package/dist/anchorKeyTrust.d.ts +9 -0
  6. package/dist/anchorKeyTrust.d.ts.map +1 -0
  7. package/dist/anchorKeyTrust.js +24 -0
  8. package/dist/anchorKeyTrust.js.map +1 -0
  9. package/dist/anchorKeyTrustView.d.ts +14 -0
  10. package/dist/anchorKeyTrustView.d.ts.map +1 -0
  11. package/dist/anchorKeyTrustView.js +95 -0
  12. package/dist/anchorKeyTrustView.js.map +1 -0
  13. package/dist/browserFiles.d.ts +5 -0
  14. package/dist/browserFiles.d.ts.map +1 -0
  15. package/dist/browserFiles.js +100 -0
  16. package/dist/browserFiles.js.map +1 -0
  17. package/dist/core/i18n.json +1518 -0
  18. package/dist/core/package.json +119 -0
  19. package/dist/core/validationRules.json +8 -0
  20. package/dist/domHelpers.d.ts +25 -0
  21. package/dist/domHelpers.d.ts.map +1 -0
  22. package/dist/domHelpers.js +212 -0
  23. package/dist/domHelpers.js.map +1 -0
  24. package/dist/historicalSessionPanel.d.ts +24 -0
  25. package/dist/historicalSessionPanel.d.ts.map +1 -0
  26. package/dist/historicalSessionPanel.js +108 -0
  27. package/dist/historicalSessionPanel.js.map +1 -0
  28. package/dist/index.d.ts +40 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +56 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/liveLinkTrust.d.ts +208 -0
  33. package/dist/liveLinkTrust.d.ts.map +1 -0
  34. package/dist/liveLinkTrust.js +452 -0
  35. package/dist/liveLinkTrust.js.map +1 -0
  36. package/dist/livePOISession.d.ts +38 -0
  37. package/dist/livePOISession.d.ts.map +1 -0
  38. package/dist/livePOISession.js +193 -0
  39. package/dist/livePOISession.js.map +1 -0
  40. package/dist/measurementDetailsRenderer.d.ts +25 -0
  41. package/dist/measurementDetailsRenderer.d.ts.map +1 -0
  42. package/dist/measurementDetailsRenderer.js +343 -0
  43. package/dist/measurementDetailsRenderer.js.map +1 -0
  44. package/dist/poiConsistencyView.d.ts +3 -0
  45. package/dist/poiConsistencyView.d.ts.map +1 -0
  46. package/dist/poiConsistencyView.js +14 -0
  47. package/dist/poiConsistencyView.js.map +1 -0
  48. package/dist/poiObservedHistory.d.ts +49 -0
  49. package/dist/poiObservedHistory.d.ts.map +1 -0
  50. package/dist/poiObservedHistory.js +205 -0
  51. package/dist/poiObservedHistory.js.map +1 -0
  52. package/dist/poiTransport.d.ts +12 -0
  53. package/dist/poiTransport.d.ts.map +1 -0
  54. package/dist/poiTransport.js +74 -0
  55. package/dist/poiTransport.js.map +1 -0
  56. package/dist/poiTrustContext.d.ts +134 -0
  57. package/dist/poiTrustContext.d.ts.map +1 -0
  58. package/dist/poiTrustContext.js +243 -0
  59. package/dist/poiTrustContext.js.map +1 -0
  60. package/dist/poiTrustLineage.d.ts +10 -0
  61. package/dist/poiTrustLineage.d.ts.map +1 -0
  62. package/dist/poiTrustLineage.js +47 -0
  63. package/dist/poiTrustLineage.js.map +1 -0
  64. package/dist/poiURLs.d.ts +5 -0
  65. package/dist/poiURLs.d.ts.map +1 -0
  66. package/dist/poiURLs.js +24 -0
  67. package/dist/poiURLs.js.map +1 -0
  68. package/dist/poiWitnessManagement.d.ts +3 -0
  69. package/dist/poiWitnessManagement.d.ts.map +1 -0
  70. package/dist/poiWitnessManagement.js +127 -0
  71. package/dist/poiWitnessManagement.js.map +1 -0
  72. package/dist/poiWitnessTrust.d.ts +26 -0
  73. package/dist/poiWitnessTrust.d.ts.map +1 -0
  74. package/dist/poiWitnessTrust.js +90 -0
  75. package/dist/poiWitnessTrust.js.map +1 -0
  76. package/dist/pricePublicationData.d.ts +19 -0
  77. package/dist/pricePublicationData.d.ts.map +1 -0
  78. package/dist/pricePublicationData.js +83 -0
  79. package/dist/pricePublicationData.js.map +1 -0
  80. package/dist/roamingNetworks.d.ts +14 -0
  81. package/dist/roamingNetworks.d.ts.map +1 -0
  82. package/dist/roamingNetworks.js +33 -0
  83. package/dist/roamingNetworks.js.map +1 -0
  84. package/dist/securityFingerprint.d.ts +16 -0
  85. package/dist/securityFingerprint.d.ts.map +1 -0
  86. package/dist/securityFingerprint.js +36 -0
  87. package/dist/securityFingerprint.js.map +1 -0
  88. package/dist/securityFingerprintView.d.ts +3 -0
  89. package/dist/securityFingerprintView.d.ts.map +1 -0
  90. package/dist/securityFingerprintView.js +61 -0
  91. package/dist/securityFingerprintView.js.map +1 -0
  92. package/dist/sessionEvidenceStore.d.ts +23 -0
  93. package/dist/sessionEvidenceStore.d.ts.map +1 -0
  94. package/dist/sessionEvidenceStore.js +81 -0
  95. package/dist/sessionEvidenceStore.js.map +1 -0
  96. package/dist/sessionMeterKeyView.d.ts +9 -0
  97. package/dist/sessionMeterKeyView.d.ts.map +1 -0
  98. package/dist/sessionMeterKeyView.js +55 -0
  99. package/dist/sessionMeterKeyView.js.map +1 -0
  100. package/dist/sessionPOIData.d.ts +49 -0
  101. package/dist/sessionPOIData.d.ts.map +1 -0
  102. package/dist/sessionPOIData.js +161 -0
  103. package/dist/sessionPOIData.js.map +1 -0
  104. package/dist/sessionPOIPanel.d.ts +50 -0
  105. package/dist/sessionPOIPanel.d.ts.map +1 -0
  106. package/dist/sessionPOIPanel.js +288 -0
  107. package/dist/sessionPOIPanel.js.map +1 -0
  108. package/dist/sessionPriceData.d.ts +17 -0
  109. package/dist/sessionPriceData.d.ts.map +1 -0
  110. package/dist/sessionPriceData.js +51 -0
  111. package/dist/sessionPriceData.js.map +1 -0
  112. package/dist/sessionPricePanel.d.ts +31 -0
  113. package/dist/sessionPricePanel.d.ts.map +1 -0
  114. package/dist/sessionPricePanel.js +222 -0
  115. package/dist/sessionPricePanel.js.map +1 -0
  116. package/dist/sessionUIState.d.ts +12 -0
  117. package/dist/sessionUIState.d.ts.map +1 -0
  118. package/dist/sessionUIState.js +33 -0
  119. package/dist/sessionUIState.js.map +1 -0
  120. package/dist/stationProofData.d.ts +38 -0
  121. package/dist/stationProofData.d.ts.map +1 -0
  122. package/dist/stationProofData.js +83 -0
  123. package/dist/stationProofData.js.map +1 -0
  124. package/dist/stationProofPanel.d.ts +44 -0
  125. package/dist/stationProofPanel.d.ts.map +1 -0
  126. package/dist/stationProofPanel.js +304 -0
  127. package/dist/stationProofPanel.js.map +1 -0
  128. package/dist/stationProofView.d.ts +9 -0
  129. package/dist/stationProofView.d.ts.map +1 -0
  130. package/dist/stationProofView.js +186 -0
  131. package/dist/stationProofView.js.map +1 -0
  132. package/dist/trustAnchorData.d.ts +40 -0
  133. package/dist/trustAnchorData.d.ts.map +1 -0
  134. package/dist/trustAnchorData.js +91 -0
  135. package/dist/trustAnchorData.js.map +1 -0
  136. package/dist/trustAnchorDataView.d.ts +13 -0
  137. package/dist/trustAnchorDataView.d.ts.map +1 -0
  138. package/dist/trustAnchorDataView.js +69 -0
  139. package/dist/trustAnchorDataView.js.map +1 -0
  140. package/dist/trustAnchorImport.d.ts +5 -0
  141. package/dist/trustAnchorImport.d.ts.map +1 -0
  142. package/dist/trustAnchorImport.js +34 -0
  143. package/dist/trustAnchorImport.js.map +1 -0
  144. package/dist/trustAnchorPreview.d.ts +37 -0
  145. package/dist/trustAnchorPreview.d.ts.map +1 -0
  146. package/dist/trustAnchorPreview.js +180 -0
  147. package/dist/trustAnchorPreview.js.map +1 -0
  148. package/dist/trustManagement.d.ts +34 -0
  149. package/dist/trustManagement.d.ts.map +1 -0
  150. package/dist/trustManagement.js +405 -0
  151. package/dist/trustManagement.js.map +1 -0
  152. package/dist/trustStore.d.ts +75 -0
  153. package/dist/trustStore.d.ts.map +1 -0
  154. package/dist/trustStore.js +408 -0
  155. package/dist/trustStore.js.map +1 -0
  156. package/dist/trustTransitionView.d.ts +5 -0
  157. package/dist/trustTransitionView.d.ts.map +1 -0
  158. package/dist/trustTransitionView.js +110 -0
  159. package/dist/trustTransitionView.js.map +1 -0
  160. package/dist/trustedPublicKeys.d.ts +4 -0
  161. package/dist/trustedPublicKeys.d.ts.map +1 -0
  162. package/dist/trustedPublicKeys.js +25 -0
  163. package/dist/trustedPublicKeys.js.map +1 -0
  164. package/dist/wwcpPoi.d.ts +2 -0
  165. package/dist/wwcpPoi.d.ts.map +1 -0
  166. package/dist/wwcpPoi.js +2 -0
  167. package/dist/wwcpPoi.js.map +1 -0
  168. package/documentation/AUDIT.md +262 -0
  169. package/images/NGI0_tag.svg +149 -0
  170. package/package.json +75 -4
@@ -0,0 +1,205 @@
1
+ import { Checkpoint, checkpointVersionObservation, parseJSON, applyVerifiedTrustTransition, compareObservedVersions, emptyObservedVersions, observedVersionsChecksum } from '@open-charging-cloud/wwcp-poi';
2
+ export const observedHistoryDatabase = 'ChargyPOIObservedHistory';
3
+ function checked(value) {
4
+ if (value === null || typeof value !== 'object')
5
+ throw new Error('Invalid stored version history');
6
+ const raw = value, state = raw['state'];
7
+ if (state === null || typeof state !== 'object' || !('version' in state) || state.version !== 1)
8
+ throw new Error('Invalid stored history schema');
9
+ const record = value;
10
+ const { checksum, ...body } = record;
11
+ if (typeof record.id !== 'string' || typeof record.policyId !== 'string' || typeof record.roamingNetworkId !== 'string' || typeof record.operatorId !== 'string' ||
12
+ typeof record.generation !== 'string' || !Number.isFinite(record.updatedAt) ||
13
+ checksum !== observedVersionsChecksum(body))
14
+ throw new Error('Stored version history integrity check failed');
15
+ if (record.state.points.some(point => point.kind === 'checkpoint' && point.rootDigest === undefined))
16
+ return seal({ ...record, state: { ...record.state, points: record.state.points.map(point => point.kind === 'checkpoint' && point.rootDigest === undefined ? checkpointVersionObservation(Checkpoint.parse(parseJSON(point.original))) : point) } });
17
+ return record;
18
+ }
19
+ function seal(input) {
20
+ const { checksum: _old, ...body } = input;
21
+ if (new TextEncoder().encode(JSON.stringify(body)).length > 16 * 1024 * 1024)
22
+ throw new Error('Local version history capacity reached');
23
+ return { ...body, checksum: observedVersionsChecksum(body) };
24
+ }
25
+ function empty(scope) {
26
+ return seal({ ...scope, generation: crypto.randomUUID(), updatedAt: Date.now(), state: emptyObservedVersions(), liveEvidence: {} });
27
+ }
28
+ function apply(record, scope, generation, points, mode, at, live) {
29
+ if (record.id !== scope.id || record.policyId !== scope.policyId || record.roamingNetworkId !== scope.roamingNetworkId || record.operatorId !== scope.operatorId || record.generation !== generation)
30
+ throw new Error('Local version-history scope changed or was reset during verification');
31
+ const comparison = compareObservedVersions(record.state, points, mode, at);
32
+ const liveEvidence = { ...record.liveEvidence };
33
+ if (comparison.accepted && mode === 'current' && live !== undefined)
34
+ liveEvidence[live.chain] = live.evidence;
35
+ return { record: seal({ ...record, state: comparison.state, updatedAt: at, liveEvidence }), comparison };
36
+ }
37
+ let connection;
38
+ let channel;
39
+ function notifyReset() {
40
+ if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function')
41
+ window.dispatchEvent(new Event('chargy-poi-history-reset'));
42
+ }
43
+ function resetChannel() {
44
+ if (channel === undefined && typeof window !== 'undefined' && typeof window.addEventListener === 'function' && typeof BroadcastChannel !== 'undefined') {
45
+ channel = new BroadcastChannel('chargy-poi-history');
46
+ channel.onmessage = (event) => {
47
+ if (event.data === 'reset')
48
+ notifyReset();
49
+ if (event.data === 'policy-change')
50
+ notifyPolicyChange();
51
+ if (event.data === 'witness-change')
52
+ notifyWitnessChange();
53
+ // A message only invalidates local work. It carries no trusted state or verdict.
54
+ if (event.data !== null && typeof event.data === 'object' && 'type' in event.data && event.data.type === 'observations')
55
+ window.dispatchEvent(new Event('chargy-poi-observations-changed'));
56
+ };
57
+ }
58
+ }
59
+ function notifyPolicyChange() { if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function')
60
+ window.dispatchEvent(new Event('chargy-poi-policy-change')); }
61
+ export function broadcastTrustPolicyChange() { resetChannel(); notifyPolicyChange(); channel?.postMessage('policy-change'); }
62
+ function notifyWitnessChange() { if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function')
63
+ window.dispatchEvent(new Event('chargy-poi-witness-change')); }
64
+ export function broadcastWitnessPolicyChange() { resetChannel(); notifyWitnessChange(); channel?.postMessage('witness-change'); }
65
+ export class POIObservedHistoryStore {
66
+ async transition(scope, generation, verified, at) {
67
+ const result = await this.transaction('readwrite', (store, done, fail) => {
68
+ const request = store.get(scope.id);
69
+ request.onsuccess = () => {
70
+ try {
71
+ const record = checked(request.result);
72
+ apply(record, scope, generation, [], 'historical', at);
73
+ const report = applyVerifiedTrustTransition(record.state, verified, at);
74
+ store.put(seal({ ...record, state: report.state, updatedAt: at }));
75
+ done({ report, changed: JSON.stringify(record.state) !== JSON.stringify(report.state) });
76
+ }
77
+ catch (error) {
78
+ fail(error);
79
+ }
80
+ };
81
+ });
82
+ if (result.changed)
83
+ channel?.postMessage({ type: 'observations', scopeId: scope.id });
84
+ return result.report;
85
+ }
86
+ async open() {
87
+ resetChannel();
88
+ connection ??= new Promise((resolve, reject) => {
89
+ if (typeof indexedDB === 'undefined') {
90
+ reject(new Error('Persistent version history unavailable'));
91
+ return;
92
+ }
93
+ const request = indexedDB.open(observedHistoryDatabase, 1);
94
+ let blocked = false;
95
+ request.onupgradeneeded = () => { request.result.createObjectStore('scopes', { keyPath: 'id' }); };
96
+ request.onblocked = () => { blocked = true; reject(new Error('Version history storage blocked by another tab')); };
97
+ request.onerror = () => { reject(request.error ?? new Error('Version history storage unavailable')); };
98
+ request.onsuccess = () => { const db = request.result; if (blocked) {
99
+ db.close();
100
+ return;
101
+ } db.onversionchange = () => { db.close(); connection = undefined; }; db.onclose = () => { connection = undefined; }; resolve(db); };
102
+ }).catch((error) => { connection = undefined; throw error; });
103
+ return connection;
104
+ }
105
+ async transaction(mode, run, signal) {
106
+ const db = await this.open();
107
+ signal?.throwIfAborted();
108
+ return new Promise((resolve, reject) => {
109
+ const tx = db.transaction('scopes', mode);
110
+ let answer;
111
+ let failure;
112
+ const abort = () => { try {
113
+ tx.abort();
114
+ }
115
+ catch { /* Completed. */ } };
116
+ const fail = (error) => { failure = error; abort(); };
117
+ signal?.addEventListener('abort', abort, { once: true });
118
+ tx.oncomplete = () => { signal?.removeEventListener('abort', abort); if (answer === undefined)
119
+ reject(new Error('Version history returned no result'));
120
+ else
121
+ resolve(answer.value); };
122
+ tx.onabort = () => { signal?.removeEventListener('abort', abort); reject(failure instanceof Error ? failure : tx.error ?? new Error('Version history operation cancelled')); };
123
+ try {
124
+ run(tx.objectStore('scopes'), value => { answer = { value }; }, fail);
125
+ }
126
+ catch (error) {
127
+ fail(error);
128
+ }
129
+ });
130
+ }
131
+ async begin(scope) {
132
+ return this.transaction('readwrite', (store, done, fail) => {
133
+ const request = store.get(scope.id);
134
+ request.onsuccess = () => { try {
135
+ const record = request.result === undefined ? empty(scope) : checked(request.result);
136
+ if (request.result === undefined)
137
+ store.put(record);
138
+ done(record);
139
+ }
140
+ catch (error) {
141
+ fail(error);
142
+ } };
143
+ });
144
+ }
145
+ async observe(scope, generation, points, mode, at, live, signal) {
146
+ const result = await this.transaction('readwrite', (store, done, fail) => {
147
+ const request = store.get(scope.id);
148
+ request.onsuccess = () => {
149
+ try {
150
+ const before = checked(request.result), result = apply(before, scope, generation, points, mode, at, live);
151
+ // Include newly supplied links and succession, not timestamps/live audit exports.
152
+ const changed = JSON.stringify(before.state) !== JSON.stringify(result.record.state);
153
+ store.put(result.record);
154
+ done({ report: result.comparison, changed });
155
+ }
156
+ catch (error) {
157
+ fail(error);
158
+ }
159
+ };
160
+ }, signal);
161
+ // Only other documents receive the hint, after commit. Identical rechecks cannot echo.
162
+ if (result.changed)
163
+ channel?.postMessage({ type: 'observations', scopeId: scope.id });
164
+ return result.report;
165
+ }
166
+ async list() {
167
+ return this.transaction('readonly', (store, done, fail) => { const request = store.getAll(); request.onsuccess = () => { try {
168
+ done(request.result.map(checked));
169
+ }
170
+ catch (error) {
171
+ fail(error);
172
+ } }; });
173
+ }
174
+ async reset(id) {
175
+ await this.transaction('readwrite', (store, done, fail) => { const request = store.get(id); request.onsuccess = () => { try {
176
+ const record = checked(request.result);
177
+ store.put(empty(record));
178
+ done(true);
179
+ }
180
+ catch (error) {
181
+ fail(error);
182
+ } }; });
183
+ notifyReset();
184
+ channel?.postMessage('reset');
185
+ }
186
+ }
187
+ /** Explicit test repository with the same comparison rules; production never falls back to memory. */
188
+ export class MemoryPOIObservedHistory {
189
+ records = new Map();
190
+ async transition(scope, generation, verified, at) {
191
+ const record = checked(this.records.get(scope.id));
192
+ apply(record, scope, generation, [], 'historical', at);
193
+ const report = applyVerifiedTrustTransition(record.state, verified, at);
194
+ this.records.set(scope.id, seal({ ...record, state: report.state, updatedAt: at }));
195
+ return Promise.resolve(report);
196
+ }
197
+ async begin(scope) { const record = this.records.get(scope.id) ?? empty(scope); this.records.set(scope.id, record); return Promise.resolve(record); }
198
+ async observe(scope, generation, points, mode, at, live, signal) {
199
+ signal?.throwIfAborted();
200
+ const result = apply(checked(this.records.get(scope.id)), scope, generation, points, mode, at, live);
201
+ this.records.set(scope.id, result.record);
202
+ return Promise.resolve(result.comparison);
203
+ }
204
+ }
205
+ //# sourceMappingURL=poiObservedHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poiObservedHistory.js","sourceRoot":"","sources":["../src/poiObservedHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,4BAA4B,EAAC,SAAS,EAAC,4BAA4B,EAAC,uBAAuB,EAAC,qBAAqB,EAAC,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AAGpM,MAAM,CAAC,MAAM,uBAAuB,GAAC,0BAA0B,CAAC;AAahE,SAAS,OAAO,CAAC,KAAa;IAC1B,IAAG,KAAK,KAAG,IAAI,IAAE,OAAO,KAAK,KAAG,QAAQ;QAAC,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAC3F,MAAM,GAAG,GAAC,KAA+B,EAAC,KAAK,GAAC,GAAG,CAAC,OA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;QAAA,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAC,IAAI,CAAC,EAAC,GAAG,MAAM,EAAC,KAAK,EAAC,MAAM,CAAC,KAAK,EAAC,SAAS,EAAC,EAAE,EAAC,CAAC,CAAC,CAAC;QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACpL,CAAC;IACM,KAAK,CAAC,KAAK,CAAC,KAAsB,IAAkC,MAAM,MAAM,GAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAC,MAAM,CAAC,CAAC,CAAA,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA,CAAC;IAC5L,KAAK,CAAC,OAAO,CAAC,KAAsB,EAAC,UAAiB,EAAC,MAAoC,EAAC,IAA2B,EAAC,EAAS,EACpI,IAAsD,EAAC,MAAmB;QAC1E,MAAM,EAAE,cAAc,EAAE,CAAC;QAAA,MAAM,MAAM,GAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAC,KAAK,EAAC,UAAU,EAAC,MAAM,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,CAAC,CAAC;QAAA,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC7M,CAAC;CACJ"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Returns the default fetch implementation used by WWCP POI loaders when no
3
+ * per-call `options.fetch` override is provided.
4
+ */
5
+ export declare function getDefaultPOIFetch(): typeof fetch;
6
+ /**
7
+ * Overrides the default fetch implementation used by WWCP POI loaders (for
8
+ * example, Electron's main-process bridge in ChargyDesktopApp).
9
+ */
10
+ export declare function setDefaultPOIFetch(fetchFn: typeof fetch): void;
11
+ export declare function readResponseWithinLimit(response: Response, maxPayloadBytes: number): Promise<Uint8Array>;
12
+ //# sourceMappingURL=poiTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poiTransport.d.ts","sourceRoot":"","sources":["../src/poiTransport.ts"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,KAAK,CAEjD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,KAAK,GAAG,IAAI,CAE9D;AAED,wBAAsB,uBAAuB,CAAC,QAAQ,EAAS,QAAQ,EACzB,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAgE1F"}
@@ -0,0 +1,74 @@
1
+ /*
2
+ * Copyright (c) 2018-2026 GraphDefined GmbH <achim.friedland@graphdefined.com>
3
+ * This file is part of ChargyGUI <https://github.com/OpenChargingCloud/ChargyGUI.TS>
4
+ *
5
+ * Licensed under the Affero GPL license, Version 3.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.gnu.org/licenses/agpl.html
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ let defaultPOIFetch = (input, init) => globalThis.fetch(input, init);
18
+ /**
19
+ * Returns the default fetch implementation used by WWCP POI loaders when no
20
+ * per-call `options.fetch` override is provided.
21
+ */
22
+ export function getDefaultPOIFetch() {
23
+ return defaultPOIFetch;
24
+ }
25
+ /**
26
+ * Overrides the default fetch implementation used by WWCP POI loaders (for
27
+ * example, Electron's main-process bridge in ChargyDesktopApp).
28
+ */
29
+ export function setDefaultPOIFetch(fetchFn) {
30
+ defaultPOIFetch = fetchFn;
31
+ }
32
+ export async function readResponseWithinLimit(response, maxPayloadBytes) {
33
+ const contentLengthHeader = response.headers.get("content-length");
34
+ if (contentLengthHeader != null) {
35
+ const contentLength = Number(contentLengthHeader);
36
+ if (Number.isFinite(contentLength) &&
37
+ contentLength > maxPayloadBytes) {
38
+ throw new Error("External verification payload exceeds configured limit.");
39
+ }
40
+ }
41
+ if (response.body == null) {
42
+ const data = new Uint8Array(await response.arrayBuffer());
43
+ if (data.byteLength > maxPayloadBytes)
44
+ throw new Error("External verification payload exceeds configured limit.");
45
+ return data;
46
+ }
47
+ const reader = response.body.getReader();
48
+ const chunks = new Array();
49
+ let length = 0;
50
+ try {
51
+ for (;;) {
52
+ const { done, value } = await reader.read();
53
+ if (done)
54
+ break;
55
+ length += value.byteLength;
56
+ if (length > maxPayloadBytes) {
57
+ await reader.cancel();
58
+ throw new Error("External verification payload exceeds configured limit.");
59
+ }
60
+ chunks.push(value);
61
+ }
62
+ }
63
+ finally {
64
+ reader.releaseLock();
65
+ }
66
+ const data = new Uint8Array(length);
67
+ let offset = 0;
68
+ for (const chunk of chunks) {
69
+ data.set(chunk, offset);
70
+ offset += chunk.byteLength;
71
+ }
72
+ return data;
73
+ }
74
+ //# sourceMappingURL=poiTransport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poiTransport.js","sourceRoot":"","sources":["../src/poiTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,IAAI,eAAe,GAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAEnF;;;GAGG;AACH,MAAM,UAAU,kBAAkB;IAC9B,OAAO,eAAe,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAqB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AC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;IACL,CAAC;YAED,CAAC;QACG,MAAM,CAAC,WAAW,EAAE,CAAC;IACzB,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,KAAK,MAAM,KAAK,IAAI,MAAM,EAC1B,CAAC;QACG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC;IAC/B,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
@@ -0,0 +1,134 @@
1
+ import type { ObservationScope, ObservedHistoryRepository } from './poiObservedHistory.js';
2
+ import { verifyChargingDocumentKeys, OperatorTrust, TrustAnchor, TrustContext, HistoricalTrustContext } from '@open-charging-cloud/wwcp-poi';
3
+ import type { ObservedVersions, VersionObservation, VersionComparison, SessionPriceRequest, SessionPriceVerification, EpochProfiles, VerifiedTrustTransition } from '@open-charging-cloud/wwcp-poi';
4
+ import type { JSONValue, POIPublicKey, VerifiedChargingStation, VerifiedMeterKeyBinding, MeasurementKeyFormat, HistoricalMeterVerification } from '@open-charging-cloud/wwcp-poi';
5
+ import type { StoredTrustAnchorData } from './trustAnchorData.js';
6
+ import type { StoredTrustAnchor, TrustStore } from './trustStore.js';
7
+ import type { WitnessPolicyRepository } from './poiWitnessTrust.js';
8
+ /** An immutable report at evaluatedAt, never a reusable authorization token or a stored green flag. */
9
+ export interface POITrustContext {
10
+ readonly epoch?: number;
11
+ readonly epochProfiles?: EpochProfiles;
12
+ readonly verifiedTransitions?: readonly VerifiedTrustTransition[];
13
+ readonly effectivePolicyId?: string;
14
+ readonly verification: TrustContext;
15
+ readonly anchorPolicyId: string;
16
+ /** Conservatively scoped to this exact bootstrap policy until verified succession is supported. */
17
+ readonly networkIdentity: string;
18
+ readonly roamingNetworkId: string;
19
+ readonly roamingNetworkOperatorId: string;
20
+ readonly keyStatementDigest: string;
21
+ readonly evaluatedAt: number;
22
+ readonly validUntil: number;
23
+ readonly requiredConsensus: number;
24
+ /** Original holder positions are retained, including empty groups. */
25
+ readonly authorizedHolders: readonly (readonly string[])[];
26
+ readonly evidence: {
27
+ readonly bootstrapAnchorQRCode?: string;
28
+ readonly anchorQRCode: string;
29
+ readonly keyStatement: StoredTrustAnchorData;
30
+ };
31
+ }
32
+ export interface POIHistoricalContext extends Omit<POITrustContext, 'verification'> {
33
+ readonly verification: HistoricalTrustContext;
34
+ }
35
+ /** Reparse original evidence; callers cannot substitute a pre-parsed statement or cached verification result. */
36
+ export declare function createPOITrustContext(anchor: TrustAnchor, document: StoredTrustAnchorData, record: StoredTrustAnchor | undefined, bundled: readonly POIPublicKey[], deleted: ReadonlySet<string>, at?: number): POITrustContext;
37
+ export declare class POIHistoryError extends Error {
38
+ readonly report: VersionComparison;
39
+ constructor(report: VersionComparison);
40
+ }
41
+ export interface POIObservationTicket {
42
+ readonly context: POITrustContext | POIHistoricalContext;
43
+ readonly scope: ObservationScope;
44
+ readonly generation: string;
45
+ readonly historical: boolean;
46
+ readonly observed: ObservedVersions;
47
+ }
48
+ /** Storage-backed gateway. Every call reads current local decisions in one transaction; no authorization cache. */
49
+ export declare class POITrustService {
50
+ private readonly store;
51
+ private readonly bundled;
52
+ private readonly now;
53
+ private readonly history;
54
+ private readonly witnessPolicies;
55
+ previewTrustTransition(policyId: string, text: string, acceptedAt?: number): Promise<{
56
+ readonly record: StoredTrustAnchor;
57
+ readonly deleted: ReadonlySet<string>;
58
+ readonly context: POITrustContext;
59
+ readonly transition: VerifiedTrustTransition;
60
+ readonly consistency: VersionComparison;
61
+ readonly acceptedAt: string;
62
+ }>;
63
+ validateTransitionAppend(record: StoredTrustAnchor, deleted: ReadonlySet<string>, text: string, acceptedAt: string): void;
64
+ verifyLiveDocumentKeys(policyId: string, proof: JSONValue, request: {
65
+ readonly evseId: string;
66
+ readonly operatorId: string;
67
+ readonly at: number;
68
+ }, signal?: AbortSignal): Promise<ReturnType<typeof verifyChargingDocumentKeys>>;
69
+ private stationPoint;
70
+ private authenticatedCheckpoints;
71
+ constructor(store: Pick<TrustStore, 'trustSnapshot'>, bundled: readonly POIPublicKey[], now?: () => number, history?: ObservedHistoryRepository, witnessPolicies?: WitnessPolicyRepository);
72
+ assertPublicationPolicy(revision: string): Promise<void>;
73
+ resolve(anchorPolicyId: string): Promise<POITrustContext>;
74
+ resolveHistorical(anchorPolicyId: string): Promise<POIHistoricalContext>;
75
+ beginObservations(anchorPolicyId: string, historical?: boolean, signal?: AbortSignal): Promise<POIObservationTicket>;
76
+ recordObservations(ticket: POIObservationTicket, points: readonly VersionObservation[], mode: 'current' | 'historical', options?: {
77
+ readonly signal?: AbortSignal | undefined;
78
+ readonly live?: {
79
+ readonly chain: string;
80
+ readonly evidence: string;
81
+ };
82
+ readonly validUntil?: number;
83
+ }): Promise<VersionComparison>;
84
+ private checkpoints;
85
+ verifyCurrentCheckpoints(anchorPolicyId: string, entries: readonly {
86
+ readonly checkpoint: JSONValue;
87
+ readonly operator: JSONValue;
88
+ }[]): Promise<VersionComparison>;
89
+ verifyCurrentPrices(anchorPolicyId: string, proof: JSONValue, statements: readonly JSONValue[], evseId: string): Promise<{
90
+ readonly consistency: VersionComparison;
91
+ }>;
92
+ verifyOperator(anchorPolicyId: string, operator: JSONValue): Promise<{
93
+ readonly context: POITrustContext;
94
+ readonly trust: OperatorTrust;
95
+ }>;
96
+ verifyMeterKey(anchorPolicyId: string, proof: JSONValue, request: {
97
+ readonly evseId: string;
98
+ readonly meterSerialNumber: string;
99
+ readonly keyFormat: MeasurementKeyFormat;
100
+ }, signal?: AbortSignal): Promise<{
101
+ readonly context: POITrustContext;
102
+ readonly binding: VerifiedMeterKeyBinding;
103
+ }>;
104
+ verifyHistoricalMeterEvidence(anchorPolicyId: string, evidence: JSONValue, request: {
105
+ readonly evseId: string;
106
+ readonly meterSerialNumber: string;
107
+ readonly measurementTimes: readonly number[];
108
+ readonly keyFormat: MeasurementKeyFormat;
109
+ }, signal?: AbortSignal): Promise<{
110
+ readonly context: POIHistoricalContext;
111
+ readonly evidence: HistoricalMeterVerification;
112
+ readonly consistency: VersionComparison;
113
+ }>;
114
+ verifySessionPriceEvidence(anchorPolicyId: string, evidence: JSONValue, request: SessionPriceRequest, relatedCheckpoints?: readonly {
115
+ readonly checkpoint: JSONValue;
116
+ readonly operator: JSONValue;
117
+ }[], signal?: AbortSignal): Promise<{
118
+ readonly context: POIHistoricalContext;
119
+ readonly price: SessionPriceVerification;
120
+ readonly consistency: VersionComparison;
121
+ readonly publicationPolicyRevision: string;
122
+ }>;
123
+ /** Integration seam only: no fetching, station selection, caching or ChargyCore handoff here. */
124
+ verifyStation(anchorPolicyId: string, value: JSONValue, subject: {
125
+ readonly evseId: string;
126
+ } | {
127
+ readonly chargingStationId: string;
128
+ }, signal?: AbortSignal): Promise<{
129
+ readonly context: POITrustContext;
130
+ readonly station: VerifiedChargingStation;
131
+ readonly consistency?: VersionComparison;
132
+ }>;
133
+ }
134
+ //# sourceMappingURL=poiTrustContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poiTrustContext.d.ts","sourceRoot":"","sources":["../src/poiTrustContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,yBAAyB,EAAC,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAA8B,0BAA0B,EAAmR,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,sBAAsB,EAAqI,MAAM,+BAA+B,CAAC;AAE7jB,OAAO,KAAK,EAAC,gBAAgB,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,mBAAmB,EAAC,wBAAwB,EAAE,aAAa,EAAC,uBAAuB,EAAC,MAAM,+BAA+B,CAAC;AAC7L,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,+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