@open-charging-cloud/wwcp-poi 0.2.0 → 0.3.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.
- package/CHANGELOG.md +836 -498
- package/README.md +44 -32
- package/dist/crypto/ber.d.ts +48 -0
- package/dist/crypto/ber.d.ts.map +1 -0
- package/dist/crypto/certificates.d.ts +21 -0
- package/dist/crypto/certificates.d.ts.map +1 -0
- package/dist/crypto/curves.d.ts +25 -0
- package/dist/crypto/curves.d.ts.map +1 -0
- package/dist/crypto/ecc.d.ts +34 -0
- package/dist/crypto/ecc.d.ts.map +1 -0
- package/dist/crypto/publicKeys.d.ts +51 -0
- package/dist/crypto/publicKeys.d.ts.map +1 -0
- package/dist/crypto/rsa.d.ts +30 -0
- package/dist/crypto/rsa.d.ts.map +1 -0
- package/dist/encoding/text.d.ts +9 -0
- package/dist/encoding/text.d.ts.map +1 -1
- package/dist/evTaler/amounts.d.ts +89 -0
- package/dist/evTaler/amounts.d.ts.map +1 -0
- package/dist/evTaler/contractTerms.d.ts +107 -0
- package/dist/evTaler/contractTerms.d.ts.map +1 -0
- package/dist/evTaler/meterValue.d.ts +65 -0
- package/dist/evTaler/meterValue.d.ts.map +1 -0
- package/dist/evTaler/payURI.d.ts +28 -0
- package/dist/evTaler/payURI.d.ts.map +1 -0
- package/dist/evTaler/settlement.d.ts +85 -0
- package/dist/evTaler/settlement.d.ts.map +1 -0
- package/dist/evTaler/step.d.ts +72 -0
- package/dist/evTaler/step.d.ts.map +1 -0
- package/dist/history/apply.d.ts +6 -1
- package/dist/history/apply.d.ts.map +1 -1
- package/dist/history/changeSet.d.ts +18 -2
- package/dist/history/changeSet.d.ts.map +1 -1
- package/dist/history/checkpoint.d.ts +7 -0
- package/dist/history/checkpoint.d.ts.map +1 -1
- package/dist/history/commit.d.ts +13 -1
- package/dist/history/commit.d.ts.map +1 -1
- package/dist/history/elements.d.ts +19 -0
- package/dist/history/elements.d.ts.map +1 -0
- package/dist/history/history.d.ts +46 -6
- package/dist/history/history.d.ts.map +1 -1
- package/dist/history/preconditions.d.ts +22 -0
- package/dist/history/preconditions.d.ts.map +1 -0
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9061 -1449
- package/dist/index.js.map +1 -1
- package/dist/json/canonical.d.ts.map +1 -1
- package/dist/keys.d.ts.map +1 -1
- package/dist/network/certificates.d.ts +16 -4
- package/dist/network/certificates.d.ts.map +1 -1
- package/dist/network/countries.d.ts +16 -0
- package/dist/network/countries.d.ts.map +1 -0
- package/dist/network/evTaler.d.ts +1 -14
- package/dist/network/evTaler.d.ts.map +1 -1
- package/dist/network/identifications.d.ts +6 -6
- package/dist/network/identifications.d.ts.map +1 -1
- package/dist/network/measurementPublicKey.d.ts +7 -0
- package/dist/network/measurementPublicKey.d.ts.map +1 -0
- package/dist/network/offers.d.ts +53 -0
- package/dist/network/offers.d.ts.map +1 -0
- package/dist/network/partyKeys.d.ts +8 -5
- package/dist/network/partyKeys.d.ts.map +1 -1
- package/dist/network/poiJSON.d.ts +172 -0
- package/dist/network/poiJSON.d.ts.map +1 -0
- package/dist/network/poiValues.d.ts +48 -0
- package/dist/network/poiValues.d.ts.map +1 -0
- package/dist/network/reading.d.ts +46 -0
- package/dist/network/reading.d.ts.map +1 -0
- package/dist/network/references.d.ts +36 -0
- package/dist/network/references.d.ts.map +1 -0
- package/dist/network/roamingNetwork.d.ts +10 -11
- package/dist/network/roamingNetwork.d.ts.map +1 -1
- package/dist/network/timeZones.d.ts +8 -0
- package/dist/network/timeZones.d.ts.map +1 -0
- package/dist/network/tree.d.ts +14 -0
- package/dist/network/tree.d.ts.map +1 -1
- package/dist/network/versionTexts.d.ts +1 -7
- package/dist/network/versionTexts.d.ts.map +1 -1
- package/dist/network/writtenForm.d.ts.map +1 -1
- package/dist/proofs/priceStatement.d.ts.map +1 -1
- package/dist/verifier/checkpoints.d.ts +6 -0
- package/dist/verifier/checkpoints.d.ts.map +1 -1
- package/package.json +14 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type JSONValue } from '../json/value.ts';
|
|
2
2
|
import { RoamingNetwork } from '../network/roamingNetwork.ts';
|
|
3
3
|
import type { TrustAnchor } from '../proofs/trustAnchor.ts';
|
|
4
|
-
import { Commit } from './commit.ts';
|
|
4
|
+
import { Commit, type RoleSignature } from './commit.ts';
|
|
5
5
|
import { Checkpoint } from './checkpoint.ts';
|
|
6
6
|
import { EpochProfiles, type Epoch, type EpochLink } from './epoch.ts';
|
|
7
7
|
/** A version with the commit leading to it. */
|
|
@@ -19,9 +19,30 @@ export interface HistoryOptions {
|
|
|
19
19
|
* is the version before, unknown for the commit of a snapshot. Required for a signed commit.
|
|
20
20
|
*/
|
|
21
21
|
readonly verifyCommit?: (commit: Commit, before: RoamingNetwork | undefined, after: RoamingNetwork) => void;
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Refuses a checkpoint whose signatures are not those required, e.g. of the roaming network operator by its quorum and
|
|
24
|
+
* of the witnesses trusted here (`verifyCheckpointSignatures`), and returns those of its signatures that verify: the
|
|
25
|
+
* checkpoint is taken with them only, the first of each key and role, the others left out, not refused (POI3-ISSUES.md
|
|
26
|
+
* S39), and the roles it must be signed in are counted among them. Returning `undefined`, every signature verifies.
|
|
27
|
+
* Required for a signed checkpoint.
|
|
28
|
+
*/
|
|
29
|
+
readonly verifyCheckpoint?: (checkpoint: Checkpoint) => readonly RoleSignature[] | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The roles a commit must be signed in, e.g. `roamingNetworkOperator` or `leader` (`RequiredSignatureRoles` of WWCP_POI
|
|
32
|
+
* 12e993a, POI3-ISSUES.md S24): each by a signature whose key the version the commit leads to lets sign in it, once
|
|
33
|
+
* `verifyCommit` verified the signatures (`keyMaySignIn`).
|
|
34
|
+
*/
|
|
35
|
+
readonly requiredSignatureRoles?: readonly string[];
|
|
36
|
+
/** The roles a checkpoint must be signed in, e.g. `roamingNetworkOperator` or `witness`, by signatures `verifyCheckpoint` verified. */
|
|
37
|
+
readonly requiredCheckpointSignatureRoles?: readonly string[];
|
|
24
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Whether the key of the given signature may sign in its role, as far as the given version tells it
|
|
41
|
+
* (`RoamingNetworkCommitSignatureRoles.KeyMaySignIn` of WWCP_POI 12e993a, S24): in the role of the roaming network operator
|
|
42
|
+
* a signing key certified for it, in the role of a charging station operator a signing key of the operator its signer
|
|
43
|
+
* names. Who leads or witnesses no version says: those roles are the verifier's to judge by the keys it trusts.
|
|
44
|
+
*/
|
|
45
|
+
export declare function keyMaySignIn(signature: RoleSignature, version: RoamingNetwork): boolean;
|
|
25
46
|
/**
|
|
26
47
|
* How a history starts from a snapshot of another server (10.5, *Anchored*): only anchored in the trust anchor of its
|
|
27
48
|
* roaming network, fail closed. A snapshot of a checkpoint is anchored by the checkpoint, signed as the roaming network
|
|
@@ -104,8 +125,26 @@ export declare class History {
|
|
|
104
125
|
private anchorCheckpoint;
|
|
105
126
|
/** Refuses a signed commit without a verifier of commit signatures, as `CheckSignatures` of WWCP_POI; verifies it otherwise. */
|
|
106
127
|
private verifyCommitSignatures;
|
|
107
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* The checkpoint as it is taken, with the signatures that verify here (`TryAddCheckpoint` and
|
|
130
|
+
* `TryVerifyCheckpointSignatures` of WWCP_POI 399b7c8, POI3-ISSUES.md S39): a signed one without a verifier of checkpoint
|
|
131
|
+
* signatures is refused, as WWCP_POI refuses it; otherwise `verifyCheckpoint` verifies it, and of the signatures it
|
|
132
|
+
* verified the first of each key and role is kept. One it did not verify, invalid or by a key not trusted here, is left
|
|
133
|
+
* out, not refused, so that nobody blocks a checkpoint by adding a signature, and a witness trusted elsewhere and not
|
|
134
|
+
* here keeps none from it. Refused when it is not signed in a required role by one that is kept, saying why the first
|
|
135
|
+
* one was left out.
|
|
136
|
+
*/
|
|
108
137
|
private verifyCheckpointSignatures;
|
|
138
|
+
/**
|
|
139
|
+
* Refuses a commit not signed as required, without verifying a signature (`SignedAsRequiredError`): signed without a
|
|
140
|
+
* verifier of commit signatures, or not signed in a required role.
|
|
141
|
+
*/
|
|
142
|
+
private checkSignedAsRequired;
|
|
143
|
+
/**
|
|
144
|
+
* Refuses a commit not signed in a required role by a key the given version, the one it leads to, lets sign in it
|
|
145
|
+
* (`RequiredRolesError`): a role is no more than what a signature says, unless its key may sign in it.
|
|
146
|
+
*/
|
|
147
|
+
private checkRequiredRoles;
|
|
109
148
|
/** Refuses a commit of another epoch, identified or signed otherwise than its profiles say (`CommitEpochError`). */
|
|
110
149
|
private checkCommitEpoch;
|
|
111
150
|
/** Refuses a version whose operator states its keys with algorithms the epoch does not accept (`VersionEpochError`). */
|
|
@@ -130,8 +169,9 @@ export declare class History {
|
|
|
130
169
|
/**
|
|
131
170
|
* Takes the next checkpoint of the line (10.1): of this roaming network and epoch, its commit one this history holds
|
|
132
171
|
* with its revision and ETags, following the latest checkpoint taken (sequence one more, naming it), its commits those
|
|
133
|
-
* since the commit of the previous checkpoint (all since the root for the first one this history takes),
|
|
134
|
-
* signatures
|
|
172
|
+
* since the commit of the previous checkpoint (all since the root for the first one this history takes), signed in the
|
|
173
|
+
* roles required by signatures that verify here. A final checkpoint names the head, or the commit of the checkpoint
|
|
174
|
+
* before it alone (11.2). Returns it as taken: with the signatures verified here only (S39).
|
|
135
175
|
*/
|
|
136
176
|
takeCheckpoint(value: JSONValue | Checkpoint): Checkpoint;
|
|
137
177
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/history/history.ts"],"names":[],"mappings":"AAkBA,OAAO,
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/history/history.ts"],"names":[],"mappings":"AAkBA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI1E,OAAO,EAAE,cAAc,EAAE,MAAsB,8B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BxB,wHAAwH;IACxH,OAAO,CAAC,iBAAiB;IAUzB;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAmB5B,OAAO,CAAC,wBAAwB;IAiBhC,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,SAAS;IAOjB;;;;OAIG;IACI,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO;IAoDjD,iEAAiE;IAC1D,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAKvD;;;;;;OAMG;IACI,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU;IA4DhE;;;OAGG;IACI,gBAAgB,IAAI,OAAO;IAqBlC;;;;OAIG;IACI,cAAc,CAAC,OAAO,GAAE,cAA6B,GAAG,OAAO;CAczE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type JSONObject, type JSONValue } from '../json/value.ts';
|
|
2
|
+
import { type ETag } from '../etags.ts';
|
|
3
|
+
/** The context of a precondition, where it is given. */
|
|
4
|
+
export declare const PRECONDITION_CONTEXT: string;
|
|
5
|
+
/** A precondition of a change set: the entity of a type and identification still has the given ETag. */
|
|
6
|
+
export interface Precondition {
|
|
7
|
+
readonly entityType: string;
|
|
8
|
+
readonly entityId: string;
|
|
9
|
+
readonly eTag: ETag;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The preconditions of a change set as WWCP_POI3 reads them (`RoamingNetworkPrecondition.TryParse`): an array of objects,
|
|
13
|
+
* each with its entity type and identification and its ETag, written in hex; refused in its words, which name only the
|
|
14
|
+
* index of the precondition it does not read.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parsePreconditions(value: JSONValue | undefined): Precondition[];
|
|
17
|
+
/**
|
|
18
|
+
* The error, when a precondition does not hold in the given content of a version (`TryCheckPreconditions`): the entity it
|
|
19
|
+
* names does not exist, or has another ETag.
|
|
20
|
+
*/
|
|
21
|
+
export declare function brokenPrecondition(content: JSONObject, preconditions: readonly Precondition[]): string | undefined;
|
|
22
|
+
//# sourceMappingURL=preconditions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preconditions.d.ts","sourceRoot":"","sources":["../../src/history/preconditions.ts"],"names":[],"mappings":"AAmBA,OAAO,EAA0B,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE3F,OAAO,EAA6C,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAanF,wDAAwD;AACxD,eAAO,MAAM,oBAAoB,QAAoD,CAAC;AAEtF,wGAAwG;AACxG,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,UAAU,EAAG,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAK,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAS,IAAI,CAAC;CAC9B;AAGD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,EAAE,CAiC/E;AAyGD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,GAAG,SAAS,CAqBlH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,11 +24,11 @@ export { hash, type HashAlgorithm } from './crypto/hash.ts';
|
|
|
24
24
|
export { SIGNATURE_ALGORITHMS, verifySignature, type SignatureAlgorithm } from './crypto/signature.ts';
|
|
25
25
|
export { KeyUsages, POIPublicKey, type KeyUsage } from './keys.ts';
|
|
26
26
|
export { cborETag, etagToJSON, etagToText, jsonETag, parseETag, parseETags, sameETag, sameETags, type ETag, type ETagFormat } from './etags.ts';
|
|
27
|
-
export { auditPath, leafHash, merkleRoot, merkleRootOfLeafHashes, nodeHash, rootFromAuditPath } from './merkle.ts';
|
|
27
|
+
export { auditPath, leafHash, merkleRoot, merkleRootOfLeafHashes, nodeHash, rootFromAuditPath, type MerkleTreeHead } from './merkle.ts';
|
|
28
28
|
export { RoamingNetwork, RoamingNetworkOperator, ROAMING_NETWORK_CONTEXT } from './network/roamingNetwork.ts';
|
|
29
29
|
export { EV_TALER_EXCHANGE_CONTEXT, EV_TALER_MERCHANT_CONTEXT, EV_TALER_PAYMENT_MEANS, EV_TALER_PAYMENT_OPTION, evTalerMerchantOf, isTalerPublicKey, paymentOptionName, type EVTalerExchange, type EVTalerMerchant } from './network/evTaler.ts';
|
|
30
30
|
export { effectiveContent, effectiveChargingStationOperator } from './network/effective.ts';
|
|
31
|
-
export { CHILD_ARRAYS, effectiveTreeETag, entityDigest, prunedTree, skeleton } from './network/tree.ts';
|
|
31
|
+
export { CHILD_ARRAYS, effectiveTreeETag, entityDigest, givesCompletely, prunedTree, sizeOf, skeleton, type PrunedTree, type TreeNodeKind } from './network/tree.ts';
|
|
32
32
|
export { TrustContext, type TrustEvaluation, type TrustEvaluationOptions } from './proofs/trustContext.ts';
|
|
33
33
|
export { TrustAnchor, TRUST_ANCHOR_CONTEXT, TRUST_ANCHOR_QR_PREFIX, type I18NText } from './proofs/trustAnchor.ts';
|
|
34
34
|
export { KeyStatement, KEY_STATEMENT_CONTEXT, type KeyStatementSignature } from './proofs/keyStatement.ts';
|
|
@@ -37,10 +37,11 @@ export { Attestation, ATTESTATION_CONTEXT } from './proofs/attestation.ts';
|
|
|
37
37
|
export { ChargingStationProof, PROOF_CONTEXT, type VerifiedProof } from './proofs/stationProof.ts';
|
|
38
38
|
export { MAX_PRICE_STATEMENT_SEQUENCE, PriceStatement, PriceStatementProof, parsePriceStatements, priceStatementChainOf, priceStatementsRoot, verifyCheckpointPriceStatements, verifyPriceStatementChain } from './proofs/priceStatement.ts';
|
|
39
39
|
export { Commit, SignatureRoles, COMMIT_CONTEXT, type RoleSignature } from './history/commit.ts';
|
|
40
|
-
export { ChangeSet, CHANGE_SET_CONTEXT, MERGE_CHANGE_SET_ID_PREFIX, changeSetIdentification, type Change, type ChangeKind, type ChangeSetSignature } from './history/changeSet.ts';
|
|
40
|
+
export { ChangeSet, CHANGE_SET_CONTEXT, MERGE_CHANGE_SET_ID_PREFIX, changeSetIdentification, type Change, type ChangeKind, type ChangeSetSignature, type ElementPathSegment } from './history/changeSet.ts';
|
|
41
|
+
export { type Precondition } from './history/preconditions.ts';
|
|
41
42
|
export { applyChangeSet, checkOwnership } from './history/apply.ts';
|
|
42
43
|
export { Checkpoint, CheckpointProof, commitsRoot, CHECKPOINT_CONTEXT } from './history/checkpoint.ts';
|
|
43
|
-
export { History, type EpochStatus, type HistoryOptions, type SnapshotOptions, type Version } from './history/history.ts';
|
|
44
|
+
export { History, keyMaySignIn, type EpochStatus, type HistoryOptions, type SnapshotOptions, type Version } from './history/history.ts';
|
|
44
45
|
export { EpochProfiles, FIRST_EPOCH, parseEpoch, parseEpochLink, sameEpoch, EPOCH_CONTEXT, EPOCH_LINK_CONTEXT, EPOCH_PROFILES_CONTEXT, STYX_CANONICAL_JSON, type Epoch, type EpochLink } from './history/epoch.ts';
|
|
45
46
|
export { ArchiveSegment, parseArchiveSegmentInfo, verifySegmentLine, type ArchiveSegmentInfo } from './history/archive.ts';
|
|
46
47
|
export { QIDigitalDocument, QIDigitalSignature } from './qidigital/document.ts';
|
|
@@ -53,6 +54,12 @@ export { OperatorTrust } from './verifier/trust.ts';
|
|
|
53
54
|
export { verifyVersion, describeVersion, type VerifiedVersion } from './verifier/version.ts';
|
|
54
55
|
export { verifyChargingStation, verifyPriceStatements, type Manufactured, type NamedCertificate, type NamedTransparencySoftware, type VerifiedChargingStation, type VerifiedPrice } from './verifier/chargingStation.ts';
|
|
55
56
|
export { evTalerExchangesAt, evTalerTariffOf } from './verifier/evTaler.ts';
|
|
57
|
+
export { EVTalerRates, NetDecimal, minorUnitDigits, roundToNearest, roundUp, talerAmountOf, writeAmount, writeDecimal } from './evTaler/amounts.ts';
|
|
58
|
+
export { EVTalerSignedMeterValue, verifyMeterValue, type EVTalerMeasurementKey, type EVTalerMeterReading, type EVTalerMeterValueVerifier, type EVTalerVerifiedMeterValue } from './evTaler/meterValue.ts';
|
|
59
|
+
export { EVTalerCovers, EVTalerStep, EV_TALER_STEP_CONTEXT, isEVTalerSessionId, type EVTalerCoversUnit, type EVTalerStepData } from './evTaler/step.ts';
|
|
60
|
+
export { EVTalerPayURI, sameBaseURL } from './evTaler/payURI.ts';
|
|
61
|
+
export { EVTalerAmountChecks, EVTalerContractTerms, evTalerTariff, type EVTalerAmountCheck, type EVTalerContractExchange, type EVTalerVerifiedStep } from './evTaler/contractTerms.ts';
|
|
62
|
+
export { EVTalerSettlement, EV_TALER_SETTLEMENT_CONTEXT, type EVTalerSettledOrder, type EVTalerSettlementVerification } from './evTaler/settlement.ts';
|
|
56
63
|
export { parseTrustedWitnesses, verifyCheckpointLine, verifyCheckpointSignatures, type CheckpointSignatures, type TrustedWitness } from './verifier/checkpoints.ts';
|
|
57
64
|
export { parseEvidence, verifyEvidence, type Evidence, type VerifiedEvidence } from './verifier/evidence.ts';
|
|
58
65
|
export { POIClient, type CheckedChargingStation, type Fetch } from './client.ts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,OAAO,EAAE,MAA0B,aAAa,CAAC;AAGhF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAA6B,mBAAmB,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,MAAa,iBAAiB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACrG,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,SAAS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