@oneaddress/partner-sdk 1.2.0 → 1.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 ADDED
@@ -0,0 +1,59 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@oneaddress/partner-sdk` are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.3.0]
9
+
10
+ The D5 "no cleartext" dispatch release. Dispatches no longer carry a cleartext
11
+ `customer` block, blind-index `customer_match`, or cleartext `letter_of_authority`
12
+ by default — consumer identity, the account number, the IDV reference, and the
13
+ signed consent are all recovered by decrypting per-partner encrypted material.
14
+
15
+ ### Added
16
+
17
+ - **D5 session-envelope decryption.** `decryptSession(share, envelopeB64, privateKeyPem, partnerId)`
18
+ unwraps a per-partner `session_key_share` and decrypts the `session_envelope`
19
+ to recover the structured `SessionData` (new address, account number,
20
+ verified name, known names, and `id_verification_ref`). `transformSession`
21
+ is the KMS/HSM re-encryption counterpart.
22
+ - **`loa_encrypted` / `loa_ref` — structured D5 Letter of Authority.** New
23
+ standalone helpers `decryptLoaEncrypted`, `verifyD5LOA`, `d5LoaRef`, and
24
+ `canonicalD5LoaForm`, plus the `OneAddressD5LOA` type. Decrypt the signed
25
+ consent, verify its ECDSA P-256 signature, and recompute the `loa_ref` to
26
+ echo back in your `/api/confirm` callback. These are now also exported from
27
+ `@oneaddress/partner-sdk/edge` so Cloudflare Workers / Next.js Edge partners
28
+ can verify the LOA standalone, without the full `createOneAddressHandler`
29
+ factory.
30
+ - **Blind-index matching (`customer_match`).** For partners who opt into
31
+ blind-index matching, dispatches carry a `customer_match` block instead of a
32
+ cleartext `customer`. New `computeBlindIndex` / `normalizeForBlindIndex`
33
+ helpers compute the salted indexes (email, name, account number) under your
34
+ portal-issued blind-index secret. Exactly one of `customer` / `customer_match`
35
+ is present on any given dispatch.
36
+ - **Additional key-wrap schemes for `session_key_share`.** Alongside the default
37
+ ECDH-ES (P-256) wrap, `decryptSession` now supports:
38
+ - `RSA-OAEP-256+A256GCM` — for partners whose KMS/HSM key is RSA.
39
+ - `MLKEM768X25519+HKDF-SHA256+A256GCM` — post-quantum hybrid wrap
40
+ (X-Wing = ML-KEM-768 + X25519).
41
+ - **Multi-language parity.** The D5 decryption + LOA verification flow now has
42
+ reference implementations in Go, Python, Java, and C# to match the TypeScript
43
+ SDK.
44
+
45
+ ### Changed
46
+
47
+ - **`OneAddressIdVerification` type corrected (zero-knowledge fix).** The
48
+ cleartext `id_verification` block no longer declares `verification_ref` or
49
+ `certificate_id` — those fields never travel in the clear. The immutable IDV
50
+ handle now lives inside the encrypted `session_envelope` and is exposed as
51
+ `SessionData.id_verification_ref` after you decrypt it. The cleartext block
52
+ carries only `{ method, verified_at, verified, platform }`, where `method` is
53
+ `identity_document` (or `mock` in sandbox builds). The README "Identity
54
+ verification attestation" section has been updated to read the ref from the
55
+ decrypted `SessionData` rather than the outer payload.
56
+
57
+ ## [1.2.0]
58
+
59
+ - Initial public D5-preview release with session-envelope decryption helpers.